It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket AD user number discrepancies

Jennifer Forrest Jan 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 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

Jennifer Forrest Jan 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 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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,875 views 1 19
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you