Get roles for a user

Overview

Use this API to retrieve all the roles associated with a user.

Permissions

Actor Permission
User All of the following are required:
  • If logged in user is a department user:
    • The user must have 'View user' permission on the user provided in the request.
  • If logged in user is a global user, one of the following is required:
    • User must have 'Administer' permission on the departments of the user provided in the request.
    • User must have one of following privileges: 'View partition resources', 'Manage partition resources'.
Client Application No additional permission is required.
SecurityoAuthUser or oAuthClient
Request
path Parameters
id
required
string <= 255 characters

id of object

Example: 1001
header Parameters
Accept-Language
required
string
Default: en-US

Language locale accepted by client (used for locale specific fields in resource representation and in error responses).

Enum: "en-US" "es-ES" "fr-FR" "it-IT" "de-DE" "nl-NL" "pt-BR" "pt-PT" "da-DK" "ru-RU" "fr-CA" "zh-CN" "ja-JP" "ko-KR" "sv-SE"
Responses
200

OK

204

No Content

  • No roles were found for the provided user.
400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

406

Not Acceptable

500

Internal server error

get/user/{id}/role
Request samples
Response samples
application/json
  • GET /core/usermgr/v3/user/1005/role
  • This example demonstrates the following:
    • Get user roles.
{
  • "role": [
    ]
}