I want to get the permission schmes, permission and screen schemes for a particular project in jira using rest api
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.