How to Retrieve Application Access of a User in Jira

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.

Purpose

To use REST API to retrieve Application Access of a given user in Jira.

Solution

  1. REST API call:

    <base url>/rest/api/2/user?username=admin&expand=applicationRoles

    (info) Please replace <base url> with the respective value.

  2. Example result:

    {
       "self":"<base url>/rest/api/2/user?username=admin",
       "key":"admin",
       "name":"admin",
       "emailAddress":"admin@example.com",
       "avatarUrls":{
          "48x48":"<base url>/secure/useravatar?avatarId=10122",
          "24x24":"<base url>/secure/useravatar?size=small&avatarId=10122",
          "16x16":"<base url>/secure/useravatar?size=xsmall&avatarId=10122",
          "32x32":"<base url>/secure/useravatar?size=medium&avatarId=10122"
       },
       "displayName":"Admin User [Local]",
       "active":true,
       "timeZone":"Asia/Kuala_Lumpur",
       "locale":"en_US",
       "groups":{
          "size":3,
          "items":[
    
          ]
       },
       "applicationRoles":{
          "size":2,
          "items":[
             {
                "key":"jira-servicedesk",
                "name":"Jira Service Management"
             },
             {
                "key":"jira-software",
                "name":"Jira Software"
             }
          ]
       },
       "expand":"groups,applicationRoles"
    }

Last modified on Nov 23, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.