Get a list of Roles

get

/access-governance/access-controls/20250331/roles

Returns details of all available roles with support for pagination.

Request

Query Parameters
  • Minimum Length: 1
    Maximum Length: 255
    A filter to return only resources that match the given approval workflow id.
  • Keyword to filter on. Only one keyword may be provided. Default is empty string.
  • Minimum Value: 1
    Maximum Value: 1000
    The maximum number of items to return.
    Default Value: 10
  • Minimum Length: 1
    A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
  • Minimum Length: 1
    Maximum Length: 255
    A filter to return only resources that match the given identityType.
    Allowed Values: [ "ANY", "NONE" ]
  • The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
    Default Value: timeCreated
    Allowed Values: [ "timeCreated", "displayName" ]
  • The sort order to use, either 'ASC' or 'DESC'.
    Allowed Values: [ "ASC", "DESC" ]
  • A filter to be used for finding entities with the given status.
    Default Value: ALL
    Allowed Values: [ "ALL", "ACTIVE", "DRAFT", "INACTIVE" ]
  • Minimum Length: 1
    Maximum Length: 255
    Identifier of the user who is performing the operation
Header Parameters
  • The client request ID for tracing. The only valid characters for request IDs are letters, numbers, underscore, and dash.
Back to Top

Response

Supported Media Types

200 Response

A list of Role Summaries
Headers
  • For pagination of a list of items. When paging through a list, if this header appears in the response, then a partial list might have been returned. Include this value as the `page` parameter for the subsequent GET request to get the next batch of items.
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : RoleCollection
Type: object
Results of a Role search. Contains both Role items and other data.
Show Source
Nested Schema : items
Type: array
List of Roles summary.
Show Source
Nested Schema : RoleSummary
Type: object
Role object summary.
Show Source
Nested Schema : IdInfo
Type: object
Generic identifying information object.
Show Source
Nested Schema : customAttributes
Type: object
Metadata associated with the access bundle
Show Source
Nested Schema : owners
Type: array
List of owner entities
Show Source
Nested Schema : PrimaryOwner
Type: object
Details of a primary Owner
Show Source
Nested Schema : tags
Type: array
List of tags attached to the Role
Show Source
Nested Schema : OwnerSummary
Type: object
Owner entity object
Show Source

400 Response

Bad Request
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

401 Response

Unauthorized
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

404 Response

Not Found
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

429 Response

Too Many Requests
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

500 Response

Internal Server Error
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

Default Response

Unknown Error
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source
Back to Top

Examples

The following example shows how to retrieve a list of roles by submitting a GET request.

cURL Example - Without Query Parameters

curl -i -X GET \
   -H "Authorization:Bearer <your access token>" \
 'https://${service-instance-url}/access-governance/access-controls/20250331/roles'

Example of the Response Body

The following example shows the contents of the response body in JSON format, including a list of all available roles:

{
  "items": [
    {
      "id": "7642ff7d-xxxx-45c4-88d4-db7d2e79e85f",
      "name": "UA External API Access Manager",
      "description": "Manages permissions for identities.",
      "status": "ACTIVE",
      "approvalWorkflowId": "NO_APPROVAL_REQUIRED",
      "createdBy": {
        "id": "globalId.125123c3-xxxx-4d6a-b6d4-6c0f6537bad2.18.02e36bbb4b201421b4xxx046b3ceb16a",
        "name": "Amel Maclead",
        "displayName": "Amel Maclead"
      },
      "requestableBy": "ANY",
      "timeCreated": "2025-04-24T06:55:26.546Z",
      "timeUpdated": "2025-04-24T06:55:26.546Z",
      "tags": ["UA Role"],
      "customAttributes": null,
      "primaryOwner": {
        "value": "globalId.125123c3-xxxx-4d6a-b6d4-6c0f6537bad2.18.02e36bbb4b201421b44aa046b3ceb16a",
        "displayName": "Amel Maclead"
      },
      "isOwner": true,
      "owners": null
    },
    {
      "id": "a5ee5a10-xxxx-4882-8ff9-c5277e94f9ce",
      "name": "UA External API Role - Account Manager",
      "description": "Responsible for updating and managing accounts.",
      "status": "ACTIVE",
      "approvalWorkflowId": "NO_APPROVAL_REQUIRED",
      "createdBy": {
        "id": "globalId.125123c3-xxxx-4d6a-b6d4-6c0f6537bad2.18.02e36bbb4b201421b44aa046b3ceb16a",
        "name": "Amel Maclead",
        "displayName": "Amel Maclead"
      },
      "requestableBy": "ANY",
      "timeCreated": "2025-04-24T06:27:26.011Z",
      "timeUpdated": "2025-04-24T06:39:11.143Z",
      "tags": ["UA Role"],
      "customAttributes": null,
      "primaryOwner": {
        "value": "globalId.125123c3-xxxx-4d6a-b6d4-6c0f6537bad2.18.02e36bbb4b201421b44aa046b3ceb16a",
        "displayName": "Amel Maclead"
      },
      "isOwner": true,
      "owners": null
    }
  ]
}
Back to Top