Bitbucket AD user number discrepancies

We use AD to manage our 50 Bitbucket licenses.

In the Active Directory group, there are 46 users (some of which have never logged in)

When we log into Bitbucket, it shows that we have 49 users. 

Why is this? Where are the other 3 licenses? How can we update?

1 answer

0 vote
Jeremy Price Atlassian Team Jan 22, 2018

Hi Jennifer, 

Welcome to the community!

You can use the user-permission-debugger to display all users that are consuming a license and see if there are any local and/or unexpected users in there.  Depending on what you find there, you can troubleshoot where the extra users are coming from.

Thanks!

Jeremy Price

Bitbucket Server Support

It takes about two weeks for us to get a plug-in approved - is there another way to do this? 

Jeremy Price Atlassian Team Jan 22, 2018

Hi Jennifer, 

It's possible to query the database directly for that information, but it's not a trivial query since there isn't a single place that contains all the necessary information to calculate the permission for all users.  You can try the following:

select * from ( (select child_name as user_name from cwd_membership where parent_name in (select group_name from sta_global_permission where group_name is not null) and membership_type='GROUP_USER' and group_type='GROUP') union (select slug as user_name from sta_global_permissionjoin sta_normal_user on sta_global_permission.user_id = sta_normal_user.user_id) ) as tmp;

This should return the users you're looking for.  The most likely scenario is that there are some local admin accounts consuming licenses.

Thanks!

Jeremy Price

Bitbucket Server Support

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

2,047 views 1 5
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