List roles granted to a user

get

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

The API returns list of roles granted to a 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 Role Grant to be filtered
    Example:
    EM_ALL_OPERATOR
  • Part of Role Grant Name used to filter Role Grants
    Example:
    EM_ALL
  • System generated page token of a page.
  • 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

RoleGrants of the User returned successfully
Body ()
Root Schema : RoleGrantCollection
Type: object
This is the representation of List of Roles Grantsed to a User or to an another Role.
Show Source
Nested Schema : items
Type: array
The role grants
Show Source
Nested Schema : RoleGrantSummary
Type: object
Info about Role granted to a User or to an another Role
Show Source
  • Read Only: true
    Description about the Role
    Example: This Role is an Test Role
  • Read Only: true
    Unique identifier for a Role Grant
    Example: B0F9D83F6E313B03E0537013790ACA39
  • Read Only: true
    Flag says whether grant Role is a private role or not.
    Example: true
  • Read Only: true
    Flag says whether Private Role is granted as WITH_ADMIN, This is shown if the Role is a private role
    Example: true
  • links
  • Name of a Role
    Example: EM_ALL_ADMINISTRATOR
  • Read Only: true
    Owner / Creator of the Role
    Example: SYSMAN
  • Read Only: true
    Type of Role like EM Role, Oracle Defined Role, External Role
    Example: Oracle Defined Role

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