Bitbucket - LDAP user directory spam


      I just added LDAP Active Directory authentication to our local Bitbucket server and now all users from LDAP show up in the administrator->Users directory. This seems very inefficient because I only want to edit the users that are using the Bitbucket server. This also sucks because now it takes forever to open the user page.


Is there any way to disable showing LDAP users that aren't associated with Bitbucket in the users directory?


2 answers

5 votes
Jeff Thomas Atlassian Team Nov 17, 2015

Hi Kyle,

You can setup a more specific user filter on the directory so that only a subset of users are synced to Bitbucket Server. The filter by default includes all users that fall under the Base DN, but it can be changed in the directory configuration, under User Schema Settings look for User Object Filter

For example, the following filter will only sync users that are members of the CaptainPlanet group.


You'll want to update the above filter to be specific for your LDAP setup. More information configuring these filters can be found at Restricting LDAP Scope for User and Group Search. This is specific for Crowd, but the concept of the filter and testing it with Apache Directory Studio applies to Bitbucket Server.

I was hoping to have it show up more like Jira's user database but this will work. Thank you very much for your thorough answer.


Jeff Thomas Atlassian Team Nov 18, 2015

Hi Kyle, Could you provide more detail on showing up like JIRA's user database? I'm not sure I follow. If you're already aware, you can use JIRA as a User Server and connect Bitbucket to that so only those users are synced. More information at

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,949 views 7 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you