List privileges granted to a user

get

https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/users/{userId}/privilegeGrants

The API returns list of privileges given to the user ordered by name (ascending) by default.

Request

Path Parameters
Query Parameters
  • Minimum Value: 1
    Maximum Value: 2000
    For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. The api will return no more than the number specified as limit, but might not return that exact number.
    Default Value: 20
  • Exact name of Privilege to be filtered
    Example:
    MANAGE_TARGET_COMPLIANCE
  • Part of Privilege Name used to filter Privilege Grants
    Example:
    MANAGE
  • System generated page token of a page.
  • Security Class of the Privilege
    Example:
    JOB
  • The order of the result set with direction. Allowed sort field is name. Allowed directions are DESC and ASC
    Example:
    name:DESC

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Privilege Grants of the User returned successfully
Body ()
Root Schema : PrivilegeGrantCollection
Type: object
This is the representation of List of Privileges given to a User or to another Role.
Show Source
Nested Schema : items
Type: array
List of Privilege Grants
Show Source
Nested Schema : PrivilegeGrantSummary
Type: object
Privilege Grant to a User or to a Role
Show Source
Nested Schema : scope
Type: array
Read Only: true
Scope of the Privilege
Show Source
  • Allowed Values: [ "INSTANCE", "CLASS", "SYSTEM", "SET" ]
    This is the representation of scopes of privileges.
Example:
INSTANCE

400 Response

Bad Request
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error.
Show Source

401 Response

Unauthorized
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error.
Show Source

403 Response

Forbidden
Body ()
Root Schema : MissingPrivErrorResponse
Type: object
Response sent back as an Error in case required privileges are missing
Show Source
Match All
Response sent back as an Error in case required privileges are missing
Show Source
Nested Schema : missingPrivileges
Type: array
Privileges which are missing due to that the Error is occurred. This will have privilege internal name and display name only in the Privilege object
Show Source
Nested Schema : ErrorResponse
Type: object
Response sent back in the case of an error.
Show Source
Nested Schema : MissingPrivilegeSummary
Type: object
It represents a Privilege which is missing on a Resource to view or manage it.
Show Source

404 Response

Not Found
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error.
Show Source

500 Response

Internal Server Error
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error.
Show Source

503 Response

Service Unavailable
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error.
Show Source

Default Response

Unexpected Error
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error.
Show Source
Back to Top