Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket AD user number discrepancies

Jennifer Forrest January 22, 2018

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 votes
Jeremy Price
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 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

Jennifer Forrest January 22, 2018

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

Jeremy Price
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 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
TAGS
AUG Leaders

Atlassian Community Events