v3

latestOpenAPI 3.0.12026-07-31240345599.7 KB
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 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[]