Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get permissions for the logged in user

Returns all permissions in the system and whether the currently logged in user has them. You can optionally provide a specific context to get permissions for (projectKey OR projectId OR issueKey OR issueId)

GET/api/2/mypermissions
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Query parameters
issueIdstring

id of the issue to scope returned permissions for.

projectKeystring

key of project to scope returned permissions for.

issueKeystring

key of the issue to scope returned permissions for.

projectIdstring

id of project to scope returned permissions for.

Responses
200

Returns a list of all permissions in Jira and whether the user has them.

permissionsobject

A map of permission keys to permission objects.

400

Returned if the project or issue id is invalid.

401

Returned if request is on behalf of anonymous user.

404

Returned if the project or issue id or key is not found.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://jira.example.com/rest/api/2/mypermissions' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "permissions": {
    "EDIT_ISSUE": {
      "id": "EDIT_ISSUE",
      "type": "USER",
      "description": "Ability to edit issues.",
      "name": "Edit Issues",
      "havePermission": true
    }
  }
}

Was this page helpful?