Get All Permission Schemes
GET {{baseUrl}}/rest/api/3/permissionscheme?expand=<string>
Returns all permission schemes.
About permission schemes and grants
A permission scheme is a collection of permission grants. A permission grant consists of a holder and a permission.
Holder object
The holder object contains information about the user or group being granted the permission. For example, the Administer projects permission is granted to a group named Teams in space administrators. In this case, the type is "type": "group", and the parameter is the group name, "parameter": "Teams in space administrators". The holder object is defined by the following properties:
-
typeIdentifies the user or group (see the list of types below). -
parameterThe value of this property depends on thetype. For example, if thetypeis a group, then you need to specify the group name.
The following types are available. The expected values for the parameter are given in parenthesis (some types may not have a parameter):
-
anyoneGrant for anonymous users. -
applicationRoleGrant for users with access to the specified application (application name). See Update product access settings for more information. -
assigneeGrant for the user currently assigned to an issue. -
groupGrant for the specified group (group name). -
groupCustomFieldGrant for a user in the group selected in the specified custom field (custom field ID). -
projectLeadGrant for a project lead. -
projectRoleGrant for the specified project role (project role ID). -
reporterGrant for the user who reported the issue. -
sd.customer.portal.onlyJira Service Desk only. Grants customers permission to access the customer portal but not Jira. See Customizing Jira Service Desk permissions for more information. -
userGrant for the specified user (user ID - historically this was the userkey but that is deprecated and the account ID should be used). -
userCustomFieldGrant for a user selected in the specified custom field (custom field ID).
Built-in permissions
The built-in Jira permissions are listed below. Apps can also define custom permissions. See the project permission and global permission module documentation for more information.
Project permissions
-
ADMINISTER_PROJECTS -
BROWSE_PROJECTS -
MANAGE_SPRINTS_PERMISSION(Jira Software only) -
SERVICEDESK_AGENT(Jira Service Desk only) -
VIEW_DEV_TOOLS(Jira Software only) -
VIEW_READONLY_WORKFLOW
Issue permissions
-
ASSIGNABLE_USER -
ASSIGN_ISSUES -
CLOSE_ISSUES -
CREATE_ISSUES -
DELETE_ISSUES -
EDIT_ISSUES -
LINK_ISSUES -
MODIFY_REPORTER -
MOVE_ISSUES -
RESOLVE_ISSUES -
SCHEDULE_ISSUES -
SET_ISSUE_SECURITY -
TRANSITION_ISSUES
Voters and watchers permissions
-
MANAGE_WATCHERS -
VIEW_VOTERS_AND_WATCHERS
Comments permissions
-
ADD_COMMENTS -
DELETE_ALL_COMMENTS -
DELETE_OWN_COMMENTS -
EDIT_ALL_COMMENTS -
EDIT_OWN_COMMENTS
Attachments permissions
-
CREATE_ATTACHMENTS -
DELETE_ALL_ATTACHMENTS -
DELETE_OWN_ATTACHMENTS
Time tracking permissions
-
DELETE_ALL_WORKLOGS -
DELETE_OWN_WORKLOGS -
EDIT_ALL_WORKLOGS -
EDIT_OWN_WORKLOGS -
WORK_ON_ISSUES
Permissions required: Permission to access Jira.
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
expand | string | Use expand to include additional information in the response. This parameter accepts a comma-separated list. Note that permissions are included when you specify any value. Expand options include: |
allReturns all expandable information.fieldReturns information about the custom field granted the permission.groupReturns information about the group that is granted the permission.permissionsReturns all permission grants for each permission scheme.projectRoleReturns information about the project role granted the permission.userReturns information about the user who is granted the permission. |
RESPONSES
status: OK
{"permissionSchemes":[{"id":10000,"self":"https://your-domain.atlassian.net/rest/api/3/permissionscheme/10000","name":"Example permission scheme","description":"description"}]}