Forums

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

Rest api to get the permmision schemes , permission and screen schmes used in a project in jira

Ronak Thakkar
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!
January 16, 2019

I want to get the permission schmes, permission and screen schemes for a particular project in jira using rest api

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 17, 2019

Hello Ronak,

The Jira REST API does have endpoints which can return permissions. If you’re wanting to return all permissions within Jira, then the endpoint you’re wanting to use is GET /rest/api/2//permissions. This will return all permissions that are present in the JIRA instance - Global, Project and the global ones added by plugins.

The schema for this endpoint will be as follows:

 {
"id": "https://docs.atlassian.com/jira/REST/schema/permissions#",
"title": "Permissions",
"type": "object",
"properties": {
"permissions": {
"type": "object",
"patternProperties": {
".+": {
"title": "Permission",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"GLOBAL",
"PROJECT"
]
},
"description": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}

I hope this proves helpful and you’re able to access the permissions you need.

Regards,
Stephen Sifers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events