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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

24,053 views 26 12
Join discussion

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