Hi,
We are trying to disable the users who are inactive on bitbucket for a certain period of time. Using Rest API we are able to fetch the users who are inactive. Users are from an external directory and they are licensed users because of the groups. Can anyone please suggest how to disable the user either by using an API or database?
Hi Manoj
welcome to the Atlassian community.
One option is to remove the user from all groups he is member of
POST to this endpoint for removing users from groups (see also https://docs.atlassian.com/bitbucket-server/rest/7.21.0/bitbucket-rest.html#idp36)
/rest/api/1.0/admin/users/remove-group
{
"context": "username",
"itemName": "groupname"
}
Let me know if you that works
Cheers
Kurt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.