Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Delete users from Bitbucket that were created before connected with Active Directory

Henk Bos
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 10, 2018

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?

1 answer

0 votes
VICTOR-OSEGHALE
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 20, 2018

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events