The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How do i set up alert whenever my Bitbucket licensed user limit reaches a number ?

saisn
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!
August 28, 2019

 

I need to setup a way to monitor if the user limit is reached or not for my Bitbucket.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Julius Davies _GitBoost_com_
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 Champions.
August 30, 2019

 

You can monitor the "/rest/api/1.0/admin/license" endpoint.  Documentation here: docs.atlassian.com

GET against that endpoint returns something like this, which includes your limit as well as your current active user count:

{
    "creationDate": 1331038800000,
    "purchaseDate": 1331038800000,
    "expiryDate": 1372493732817,
    "numberOfDaysBeforeExpiry": 0,
    "maintenanceExpiryDate": 1372493732817,
    "numberOfDaysBeforeMaintenanceExpiry": 0,
    "gracePeriodEndDate": 1372493732817,
    "numberOfDaysBeforeGracePeriodExpiry": 0,
    "maximumNumberOfUsers": 12,
    "unlimitedNumberOfUsers": false,
    "serverId": "<server ID embedded in license>",
    "supportEntitlementNumber": "<support entitlement number embedded in license>",
    "license": "<encoded license text>",
    "status": {
        "serverId": "<actual server ID>",
        "currentNumberOfUsers": 2
    }
}

   

(Note: since you're on Data Center I adjusted the tags on this question to "Bitbucket-Server" and "Data Center".  This question was originally tagged with "Bitbucket-Cloud" and "Cloud" which probably caused some confusion since that's a completely separate product with different capabilities and different REST endpoints).

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

Hi @saisn, welcome to the Community!

The user count can not grow without acknowledgment from the admin, as the admin needs to grant them permissions to his repositories. It's not possible for users to access a repository if they haven't been granted permissions first.

Are you contemplating any scenario where this would not be the case?

Hope the above explanation makes sense, let us know if something is not clear and we'll be happy to clarify.

Best regards,

Aa

saisn
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!
August 30, 2019

Hi @Ana Retamal 

Thanks.

 

Actually Nope, thats not what I was looking for. I am an admin and I grant permissions myself to other users.  Ours is a Datacenter edition with 500 user capacity. What I want is to be able to get notified when my limit reaches, lets say - 480 or 450 -- so I will know I have to either extend license or cleanup users etc.

 

Hope I am clear now 

TAGS
AUG Leaders

Atlassian Community Events