Replicate permission Bitbucket on Sonar by users

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

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?

 
Thx,
Ann

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

Hi,

Nothing simple or easy springs to mind.

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

 
Ann

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 :slight_smile:

1 Like

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.