Custom user roles

Assign custom user role

Assignes a custom user role to a user.

  • The user should have admin role and custom user role right.
  • Assignment on the admin roles can be done through Atlassian Administration.
post/api/{cloudId}/v1/roles/assign

Request

  • Base URL
    https://api.atlassian.com/jsm/ops
  • URL
    https://api.atlassian.com/jsm/ops/api/{cloudId}/v1/roles/assign
  • 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, write:ops-config:jira-service-management

Request body

accountIdstring required

The accountId of the user to assign the role to.

roleIdstring required

The id of the role to assign.

Example request

{
  "accountId": "630a55c646556c72662aaaaa",
  "roleId": "44a48324-f5f9-45af-b8c9-02978aaaaaaa"
}

Response

Returned if the request is successful.

valuesobject[]

The list of response values.

_expandsstring[]

Changes

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