Is there any way to get the maximum number of users of the current license?

Can I get the maximum of users until the license runs out via API or SQL? I would like to use this together with the stat of number of users I currently have to easily monitor when we're going to run out of licenses.

4 answers


  "creationDate": 1464703200000,
  "purchaseDate": 1464184800000,
  "expiryDate": 1495720800000,
  "numberOfDaysBeforeExpiry": 121,
  "maintenanceExpiryDate": 1495720800000,
  "numberOfDaysBeforeMaintenanceExpiry": 121,
  "gracePeriodEndDate": 1495720800000,
  "numberOfDaysBeforeGracePeriodExpiry": 121,
  "maximumNumberOfUsers": 1000,
  "unlimitedNumberOfUsers": false,
  "serverId": "XXXX-XXXX-XXXX-XXXX",
  "supportEntitlementNumber": "SEN-1234567",
  "license": "***",
  "status": {
    "currentNumberOfUsers": 859,
    "serverId": "XXXX-XXXX-XXXX-XXXX"

Works perfectly! Thank you!

Do you know if a similar API is available for Jira, confluence or bamboo? 

Unfortunately, no, we used only Bitbucket Server and we used this REST to monitor License limit, cos if Bitbucket exceeded license limit it momentally block all work in our company.

Hi, I am new to Bitbucket and looking for similar solution.

could anyone please tell me how to run above API script? where to run those script?

I guess this is to run via our RSST API browser, what should be the value for parameter and value option?

is that script is to filter out the inactive users in Bitbucket.


I want too see the MAXIMUM number of active users that I can have with the current license. The KB you linked queries the number of active users that I currently have,

0 vote
Tarun Sapra Community Champion Jan 25, 2017

Hello @Jesper Eneberg

To get the "maximum number of users" of the current license for JIRA, you can use the following KB article to query a plugin which would have the same maximum user license as JIRA.

In Bitbucket what is the difference between the "Size" returned from rest/api/1.0/users API and the current number of users in api/1.0/admin/license , I need to find the number of licensed users , which is the correct API i should use ? 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,258 views 26 12
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you