Bamboo throws 'Access denied' when attempting to deploy

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

When attempting to deploy a release, 'Access denied Sorry, you have insufficient permissions to view the page' is seen in the browser. The user or group has proper permissions for the deployment project and environment.

The following appears in the atlassian-bamboo.log:

2016-08-18 12:32:45,399 INFO [http-nio-8085-exec-70] [AccessLogFilter] username GET http://bamboo/deploy/selectVersionForExecute.action?environmentId=11111111&returnUrl=/deploy/viewDeploymentProjectEnvironments.action?id=11111111 1052337kb
2016-08-18 12:32:45,416 WARN [http-nio-8085-exec-70] [AuthorizationLoggerListener] Authorization failed: org.acegisecurity.AccessDeniedException: Access is denied; authenticated principal: org.acegisecurity.adapters.PrincipalAcegiUserToken@e5aa7892: Username: username; Password: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_USER; secure object: ReflectiveMethodInvocation: public abstract java.util.List com.atlassian.bamboo.plan.cache.CachedPlanManager.getBranchesForChain(com.atlassian.bamboo.plan.PlanIdentifier); target is of class [com.atlassian.bamboo.plan.cache.CachedPlanManagerImpl]; configuration attributes: [ACL_BUILD_READ]

Cause

The user or group does not have proper permissions to the build plan.

Resolution

Despite having appropriate environment and deployment project permission, it is necessary for the user/group to have read permisssion to the respective build plan. Thus, grant 'View' permission to the affected user or group in the respective build plan and you should not see the error while deploying.


Last modified on Jan 5, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.