Get My Permissions
GET {{baseUrl}}/rest/api/3/mypermissions?projectKey=<string>&projectId=<string>&issueKey=<string>&issueId=<string>&permissions=<string>&projectUuid=<string>&projectConfigurationUuid=<string>
Returns a list of permissions indicating which permissions the user has. Details of the user's permissions can be obtained in a global, project, or issue context.
The user is reported as having a project permission:
- in the global context, if the user has the project permission in any project.
- for a project, where the project permission is determined using issue data, if the user meets the permission's criteria for any issue in the project. Otherwise, if the user has the project permission in the project.
- for an issue, where a project permission is determined using issue data, if the user has the permission in the issue. Otherwise, if the user has the project permission in the project containing the issue.
This means that users may be shown as having an issue permission (such as EDIT_ISSUES) in the global context or a project context but may not have the permission for any or all issues. For example, if Reporters have the EDIT_ISSUES permission a user would be shown as having this permission in the global context or the context of a project, because any user can be a reporter. However, if they are not the user who reported the issue queried they would not have EDIT_ISSUES permission for that issue.
Global permissions are unaffected by context.
This operation can be accessed anonymously.
Permissions required: None.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
projectKey | string | The key of project. Ignored if projectId is provided. | |
projectId | string | The ID of project. | |
issueKey | string | The key of the issue. Ignored if issueId is provided. | |
issueId | string | The ID of the issue. | |
permissions | string | A list of permission keys. (Required) This parameter accepts a comma-separated list. To get the list of available permissions, use Get all permissions. | |
projectUuid | string | ||
projectConfigurationUuid | string |
RESPONSES
status: OK
{"permissions":{"EDIT_ISSUES":{"id":"12","key":"EDIT_ISSUES","name":"Edit Issues","type":"PROJECT","description":"Ability to edit issues.","havePermission":true}}}