# REST API to get usernames within each Application

**URL:** <https://community.developer.atlassian.com/t/rest-api-to-get-usernames-within-each-application/76997>\
**Category:** Jira Cloud\
**Tags:** application-roles\
**Created:** [February 6, 2024, 3:48pm UTC](https://community.developer.atlassian.com/t/rest-api-to-get-usernames-within-each-application/76997 "2024-02-06T15:48:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarlVan](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@CarlVan](https://community.developer.atlassian.com/u/CarlVan)\
**Post date:** [February 6, 2024, 3:48pm UTC](https://community.developer.atlassian.com/t/rest-api-to-get-usernames-within-each-application/76997/1 "2024-02-06T15:48:21Z")

</div>

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?

```json
"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

```
