ProjectView permissions are not applied when no specific project is given

Repro

  • Create a Service User
  • Create a new “Deployer Bot” role
  • Add to the new role - DeploymentCreate, DeploymentView, EnvironmentView, ProjectView, ReleaseCreate, ReleaseView, TaskView
  • Create a new team “Continuous Integration Servers” add the new “Deployer Bot” role on only a “test” environment but not other environments (we actually applied to two test environments), all project groups, don’t specify a project.
  • Test via an api key for the service user if you can GET on https://octopus.mydomain.com/api/projects/my-project-that-exists
  • Fails with “You do not have permission to perform this action. Please contact your Octopus administrator. Missing permission: ProjectView”

Expected:

  • Not specifying an project should, as documented, should allow all projects to be read

Further Details:

  • Edit the Team and explicitly specify the project that you are requesting
  • Retest and it works

Also If I remove the All Projects from Projects Group it now works as expected

v2018.6.6

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.