-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
10
-
Problem Definition
Considering that users can be programmatically created or provisioned from external user directory systems and that once the license count is exceeded Bitbucket becomes Read-Only, it is critical to monitor the license usage to quickly react when the active users is approaching the threshold or it is reached.
Suggested Solution
Provide JMX counters for monitoring the license details.
For example, Jira exposes the jira.license counter which provides the following:
The types of licenses you have, the number of active users, and the maximum number of users available for each license type.
Workaround
The Bitbucket REST API provides an endpoint to query for licensed users.
Here is an example
$ ADMIN_USER=admin $ ADMIN_PASS=admin $ curl -u $ADMIN_USER:$ADMIN_PASS -X GET <bitbucket_url>/rest/api/1.0/users?permission=LICENSED_USER > /tmp/users
More options are available on the How do I find which users count against my bitbucket server license article.
- is duplicated by
-
BSERV-11930 Expose License Count via JMX
- Closed
- is related to
-
BSERV-7571 User management - filtering to just active (licensed) Bitbucket users
- Closed
-
BSERV-11169 Exceeding license limit should not render the server Read-Only for Data Center
- Gathering Interest
- relates to
-
BSERV-12740 As a Bitbucket admin, I want to easily identify inactive users and bulk revoke their access
- Gathering Interest