We used to work with Bitbucket and user registration in Bitbucket itself.
At any moment we started to connect Bitbucket with Active Directory and do our user registration in Active Directory.
Due to Auditing the security we found out, that 2 users created in Bitbucket, that are no employees anymore, still are present in Bitbucket. When we try to delete those users, it says "No user named ... was found". I guess it looks in Active Directory and there that user does not exist.
In Bitbucket those 2 users have directory "Stash Internal Directory" while all other users have "Active Directory server".
Does anyone know a way to delete these 2 users?
Hi Henk,
Thanks for reaching out here.
Try this API, is where USERNAME is the username the intended user to be deleted.
curl -u admin:password -X DELETE http://SERVER_URL/rest/api/1.0/admin/user?username=USERNAME
Reference to this is found in REST Resources Provided By: Bitbucket Server
Kind Regards,
Victor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.