Forums

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

Source of BitBucket license data

Luke James
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 1, 2018

I am trying to find the source of the following data retrieved via the following the REST endpoint rest/api/1.0/admin/license? using GET. I want to be able to sql query this rather than the REST resource.

 

currentNumberOfUsers = ??
maximumNumberOfUsers = ??

 Can anyone offer up anything?

1 answer

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 3, 2018

Stick to REST queries, they're far more easy.

If you must do it with SQL, then you need to read the cwd tables.  I think it's app_dir ones to work out what groups have access to stash, then the cwd_membership table to get a list of users in those groups, then cwd_user to check each user for their "enabled" flag.

Then for maximum users, you can't, as the licence is handled by data read from files on the disk and processed without the database. 

Luke James
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 4, 2018

Thank you Nic, its not quite matching up with my figures. What if I need to know more about each table, is there an online resource for this information?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events