In bitbucket.org we have created multiple groups to manage our users. Is there an easy way to see what groups a particular user is in? Without visiting each group and trying to find their name.
Hello Sean,
Bitbucket cloud allows a single user to be within multiple repos within and outside of the specified groups you create. (Meaning a user may be part of your repos and groups and also a member of additional external repos and groups). With this said, there is an API endpoint which will allow you to check a user within your team and return their highest level of permission granted. The endpoint would be /2.0/teams/{username}/permissions.
An example cURL call for this would be as follows:
curl -u username:token -X GET https://bitbucket.org/api/2.0/teams/{username}/permissions
I hope this proves helpful and you’re able to find where users have assigned permissions within groups.
Regards,
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.