Forums

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

REST API to get usernames within each Application,

Carl Van
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!
February 5, 2024

I can run the '/rest/api/2/applicationrole' REST call and get a count of how many licenses are used in each application. This is working fine.  I want to take it a little further and identify the people using the licenses.  Is it possible to use the "Default Group" concept, can i rely on all users HAVING to be in the default group? 

Example below, i can get the usercounts in the groups with applicationrole, could i think run a 2nd REST call to /rest/api/3/group/member and assume that each Active member in the group then represents the users consuming a license. Or can you consume a license but NOT be in the default group?

],
"name": "Jira Software",
"defaultGroups": [
"jira-software-users-carlman1"
],
"defaultGroupsDetails": [
{
"name": "jira-software-users-carlman1",
"groupId": "2c2e0eeb-0f68-4084-8d1b-a4eb7a430112",
"self": "https://carlman1.atlassian.net/rest/api/2/group?groupId=2c2e0eeb-0f68-4084-8d1b-a4eb7a430112"
}
],
"selectedByDefault": false,
"defined": true,
"numberOfSeats": 35000,
"remainingSeats": 34997,
"userCount": 3,
"userCountDescription": "users",
"hasUnlimitedSeats": false,
"platform": false

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events