Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why there is number mismatch for licensed users

DTS Infra Admin July 24, 2019

Hello , 

I am using following atlassian KB page for getting licensed users .

https://confluence.atlassian.com/bitbucketserverkb/how-do-i-find-which-users-count-against-my-bitbucket-server-license-779171685.html

With the help of rest api i am getting around 4682 licensed users but when i am logging in to Stash as an administrator and checking then i can see there are 8436 licensed users . Why there is a mismatch . What i am doing wrong ?

 

This is my get request for getting licensed users :

 

https://<serverurl>/rest/api/1.0/users?permission=LICENSED_USER&limit=1000&start=28767

2 answers

0 votes
Bryan Turner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2019

@DTS Infra Admin

You’re running into a bug discussed on BSERV-7571 where users are dropped when you use a limit larger than 1/2 the configured max page size. The default max page size for users is 1000, so passing limit=1000 means users are getting dropped from the results. Try your query again using limit=500 (or less) and you’ll get the correct result.

I’ve split BSERV-11884 from BSERV-7571 to track fixing the paging.

Best regards,
Bryan Turner
Atlassian Bitbucket

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2019

Hi!

I've seen you submitted the same question via our Support portal, please continue collaborating with my colleagues until the resolution of the issue :) Once it's solved, don't forget to post the solution here so it can help other users!

Best regards,

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events