hi,
I would like to ask how can I get a list of all repositories a specific user has permissions to.
My goal is, as part of user off-boarding, is to remove all the individual/explicit permission a specific user has in all repositories.
There is this one, but the user is restricted to the caller calling the API (and owner of the credentials).
There is also this one but I need to specify the repository as well.
My organization has 1000+ repos and I don't want to call bitbucket api 1000+ times just to check if the user has access to all of them.
In the UI (Bitbucket> workspace settings > User Directory > (select a user then click View Access) we can see list of repositories that use has permissions to. Hope there's an equivalent in REST API as well.
Please help.
Thanks in advance!