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
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
@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 TurnerAtlassian Bitbucket
It looks like you're new here. Sign in or register to get started.