permissions
get-all
Get all permissions
Returns all permissions, including:
- global permissions.
- project permissions.
- global permissions added by plugins.
This operation can be accessed anonymously.
Permissions required: None.
GET /rest/api/3/permissions
Example:
jr permissions get-allget-bulk
Get bulk permissions
Returns:
- for a list of global permissions, the global permissions granted to a user.
- for a list of project permissions and lists of projects and issues, for each project permission a list of the projects and issues a user can access or manipulate.
If no account ID is provided, the operation returns details for the logged in user.
Note that:
- Invalid project and issue IDs are ignored.
- A maximum of 1000 projects and 1000 issues can be checked.
- Null values in
globalPermissions,projectPermissions,projectPermissions.projects, andprojectPermissions.issuesare ignored. - Empty strings in
projectPermissions.permissionsare ignored.
Deprecation notice: The required OAuth 2.0 scopes will be updated on June 15, 2024.
- Classic:
read:jira-work - Granular:
read:permission:jira
This operation can be accessed anonymously.
Permissions required: Administer Jira global permission to check the permissions for other users, otherwise none. However, Connect apps can make a call from the app server to the product to obtain permission details for any user, without admin permission. This Connect app ability doesn't apply to calls made using AP.request() in a browser.
POST /rest/api/3/permissions/check
| Flag | Type | Required | Description |
|---|---|---|---|
--body | string | No | request body (JSON string, @file, or - for stdin) |
Example:
jr permissions get-bulkget-permitted-projects
Get permitted projects
Returns all the projects where the user is granted a list of project permissions.
This operation can be accessed anonymously.
Permissions required: None.
POST /rest/api/3/permissions/project
| Flag | Type | Required | Description |
|---|---|---|---|
--body | string | No | request body (JSON string, @file, or - for stdin) |
Example:
jr permissions get-permitted-projects