# Replicate permission Bitbucket on Sonar by users

**URL:** <https://community.sonarsource.com/t/replicate-permission-bitbucket-on-sonar-by-users/126444>\
**Category:** SonarQube Server / Community Build\
**Tags:** bitbucket, sonarqube\
**Created:** [September 24, 2024, 2:06pm UTC](https://community.sonarsource.com/t/replicate-permission-bitbucket-on-sonar-by-users/126444 "2024-09-24T14:06:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruna\_gabutti](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/bruna_gabutti/32/74052_2.png) [@bruna\_gabutti](https://community.sonarsource.com/u/bruna_gabutti)\
**Post date:** [September 24, 2024, 2:06pm UTC](https://community.sonarsource.com/t/replicate-permission-bitbucket-on-sonar-by-users/126444/1 "2024-09-24T14:06:14Z")

</div>

Sonarqube Community version 10.4  
Windows Server  
Hi, we have a process that scans all the repositories in our bitbucket workspace  
To access our Sonarqube we use bitbucket authentication  
We would like to replicate bitbucket visibility permission on Sonar projects.  
To do this we need to know, for each sonar user, the external ID so we can read their permissions on bitbucket, but at the moment the Sonar APIs do not return this information. Would it be possible that in the next release this information will be made available?  
Thank you in advance  
regards  
Bruna

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [September 25, 2024, 2:47pm UTC](https://community.sonarsource.com/t/replicate-permission-bitbucket-on-sonar-by-users/126444/2 "2024-09-25T14:47:14Z")

</div>

Hi Bruna,

There is a vanishingly small chance this change would be made in the next release.

And I’ll pass this on to the PMs. Meanwhile, are you on Bitbucket Server or Cloud?

&nbsp;  
Thx,  
Ann

---

<div class="post-metadata">

**Author:** ![bruna\_gabutti](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/bruna_gabutti/32/74052_2.png) [@bruna\_gabutti](https://community.sonarsource.com/u/bruna_gabutti)\
**Post date:** [September 25, 2024, 3:43pm UTC](https://community.sonarsource.com/t/replicate-permission-bitbucket-on-sonar-by-users/126444/4 "2024-09-25T15:43:48Z")

</div>

Hi Ann, we are on Bitbucket Cloud  
Do you have any suggestions on how to manage permissions on SQ by replicating those of Bitbucket?

thank you

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [September 25, 2024, 4:33pm UTC](https://community.sonarsource.com/t/replicate-permission-bitbucket-on-sonar-by-users/126444/5 "2024-09-25T16:33:37Z")

</div>

Hi,

Nothing simple or easy springs to mind.

> [@bruna\_gabutti](#):
>
> To do this we need to know, for each sonar user, the external ID so we can read their permissions

It looks like the hard part is identifying the user on both ends. Perhaps this can be done with the email address?

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![bruna\_gabutti](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/bruna_gabutti/32/74052_2.png) [@bruna\_gabutti](https://community.sonarsource.com/u/bruna_gabutti)\
**Post date:** [September 26, 2024, 7:57am UTC](https://community.sonarsource.com/t/replicate-permission-bitbucket-on-sonar-by-users/126444/6 "2024-09-26T07:57:13Z")

</div>

unfortunately not, I checked but the bitbucket APIs for users only work with UUID

it’s a big problem, so , i hope in a better future and in a SQ release with this info 🙂

---

<div class="post-metadata">

**Author:** ![nour.zerhouni](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/nour.zerhouni/32/50665_2.png) [@nour.zerhouni](https://community.sonarsource.com/u/nour.zerhouni)\
**Post date:** [October 31, 2024, 1:40pm UTC](https://community.sonarsource.com/t/replicate-permission-bitbucket-on-sonar-by-users/126444/9 "2024-10-31T13:40:30Z")

</div>

Thank you @bruna_gabutti for sharing your use case; it is duly noted.  
Unfortunately, as @ganncamp mentioned, we don’t have a solution just yet.  
However, member and permission synchronization with BitBucket is part of our plans for H2 next year.
