I have a repository inside my bitbucket workspace. In this i have a user "XYZ", i want to remove the privileges of this user from this specific repository via APIs.
G'day @Chaitanya Sharma
Is this user in groups? If yes, I believe what you are looking for is the following API endpoint:
DELETE https://api.bitbucket.org/1.0/groups/{workspace_id}/{group_slug}/members/{uuid}
However, if the user is in a group and you wish to remove a specific repository, then no, it's impossible. Removing the user from a group will remove access to all the group's repositories.
With that said, if the user access was granted directly to the repository, this can be removed by using the Delete an explicit user permission for a repository endpoint..
I hope this helps.
Regards,
Syahrul
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.