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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.