Custom user roles

Create custom user role

Creates a new custom user role.

  • The user should have admin role and custom user role right.
post/api/{cloudId}/v1/roles

Request

  • Base URL
    https://api.atlassian.com/jsm/ops
  • URL
    https://api.atlassian.com/jsm/ops/api/{cloudId}/v1/roles
  • Auth
    • HTTP basic
    • or OAuth 2
      Authorization code: https://auth.stg.atlassian.com/authorize
      Token URL: https://auth.stg.atlassian.com/oauth/token scopes: read:ops-config:jira-service-management

Request body

namestring required

The name of the custom user role.

grantedRightsstring[]

The list of rights to grant to the custom user role.

disallowedRightsstring[]

The list of rights to disallow to the custom user role.

Example request

{
  "name": "Pre req Rest Api 3",
  "grantedRights": [
    "alert-action",
    "alert-create",
    "alert-add-note"
  ],
  "disallowedRights": [
    "alert-delete"
  ]
}

Response

Returned if the request is successful.

messagestring

Changes

No recorded changes to this operation across all 5 revisions of this API.