Issue with Bamboo and Bitbucket Cloud Repository Registration Using Shared Credentials
Asked by ???SA:

### Environment {#toc-hId--2125328245}

* Bamboo Server 7.1.4
* Bitbucket Cloud

### Issue Description {#toc-hId-362184588}

While configuring a Bamboo plan environment, the repository to be used was added under the Default plan configuration \> Repositories menu.  
Currently, the method to connect Bamboo to Bitbucket Cloud involves adding an app password from the Bitbucket Cloud account and then adding this key under the Bamboo Shared Credentials menu, which allowed successful registration.  
However, as of September 6th, repository registration is failing for all IDs except for a specific ID's Shared Credentials. My account has admin privileges on both Bitbucket and Bamboo, but I am still unable to register repositories (this was previously working without any issues).  
The currently applied plans are still functional, but there is a problem when trying to register additional repositories.  
How can this be resolved?

#### **Error Details** {#toc-hId-1052746062}

2024-09-09 14:04:12,477 WARN \[http-nio-8085-exec-280\] \[AuthorizationLoggerListener\] Authorization failed: org.acegisecurity.AccessDeniedException: Access is denied; authenticated principal: org.acegisecurity.providers.anonymous.AnonymousAuthenticationToken@90556c3e: Username: anonymousUser; Password: \[PROTECTED\]; Authenticated: true; Details: org.acegisecurity.ui.WebAuthenticationDetails@1de6: RemoteIpAddress: 10.13.11.148; SessionId: null; Granted Authorities: ROLE_ANONYMOUS; secure object: com.atlassian.bamboo.webwork.StarterAction@2acba534; configuration attributes: \[WW_READ, GLOBAL_READ\]


Answers:
author: Shashank Kumar
body: Hello [???SA](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5152256),

Welcome to Atlassian community.

1. Can you provide a screen shot of the error which you are seeing ?

2. Is there anything else in the logs apart from the Warning message when you try to save the repository.

Regards,

Shashank Kumar

comments: author: ???SA
body: Hi [@Shashank Kumar](/t5/user/viewprofilepage/user-id/4693340) ,

1. ![screenshot-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/346703iD178B9D301CF0125/image-size/large?v=v2&px=999 "screenshot-1.png")

2. Here is some additional information.  

#### Error Details2024-09-11 11:09:31,999 WARN \[http-nio-8085-exec-26\] \[RESTCall\] Response from GET <https://api.bitbucket.org/2.0/workspaces/sreom/> (404)**2024-09-11 11:09:32,688 WARN \[http-nio-8085-exec-26\] \[RESTCall\] Response from GET <https://api.bitbucket.org/2.0/users/sreom/> (404)
2024-09-11 11:09:33,378 WARN \[http-nio-8085-exec-26\] \[RESTCall\] Response from GET <https://api.bitbucket.org/2.0/teams/sreom/> (404)
2024-09-11 11:09:33,636 WARN \[http-nio-8085-exec-9\] \[AuthorizationLoggerListener\] Authorization failed: org.acegisecurity.AccessDeniedException: Access is denied; authenticated principal: org.acegisecurity.providers.anonymous.AnonymousAuthenticationToken@90556c3e: Username: anonymousUser; Password: \[PROTECTED\]; Authenticated: true; Details: org.acegisecurity.ui.WebAuthenticationDetails@1de6: RemoteIpAddress: 10.13.11.148; SessionId: null; Granted Authorities: ROLE_ANONYMOUS; secure object: com.atlassian.bamboo.webwork.StarterAction@50dba756; configuration attributes: \[WW_READ, GLOBAL_READ\]** {#toc-hId-372751119}


author: Shashank Kumar
body: I think you are affected by this bug \> [BAM-20988 Invalid username when attempting to save a Bitbucket Cloud repository when no workspace exists that matches username](https://jira.atlassian.com/browse/BAM-20988)

Either you'll need to upgrade Bamboo or refer the workaround.

Regards,

Shashank Kumar

**\*please don't forget to Accept the answer if your query was answered\*\***


Tags: bitbucket-cloud