Get a list of Approval tasks

get

/access-governance/access-controls/20250331/approvals

Returns details of all available approval tasks with support for pagination.

Request

Query Parameters
  • The access request id to filter on. This parameter is required when assigneeId is not provided.
  • The global id for the assignee to filter on. This parameter is required when an accessRequestId is not provided.
  • Assignee scope to filter on. 'DIRECT' to filter on the tasks where the assignee id or authenticated user is the direct assignee, or 'INDIRECT' to filter on the tasks where the assignee has indirect approval rights.
    Allowed Values: [ "DIRECT", "INDIRECT" ]
  • Return only tasks due before the specified date.
  • Collection Format: multi
    List of tag filters to use. Each position in the array maps to the tag in the InstanceTags enum that is in the same position. Set the value to true to include instances that carry the tag. Set the value to false to exclude instances that carry the tag. Set the value to null in order to not apply the filter.
  • Keyword to use to filter against the names of the requestor and beneficiary.
  • 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.
  • Return only instances created after the specified date.
  • The field to sort by. Default sort by is 'dueDate'.
    Allowed Values: [ "requestor", "beneficiary", "dueDate", "access" ]
  • The sort order to use, either 'ASC' or 'DESC'.
    Allowed Values: [ "ASC", "DESC" ]
  • Collection Format: multi
    List of task statuses to filter on.
    • Allowed Values: [ "PENDING_APPROVAL", "APPROVED", "ASSIGNED", "MODIFIED", "REJECTED", "REMOVED", "DELETED", "INFO_REQUESTED", "EXTENSION_REQUESTED", "ESCALATED", "ERROR", "CANCELLED" ]
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 page of Task objects.
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 : TaskCollection
Type: object
Results of a task search.
Show Source
Nested Schema : items
Type: array
List of tasks.
Show Source
Nested Schema : Task
Type: object
The details of a process instance task.
Show Source
Nested Schema : InstanceContext
Type: object
Context data pertaining to the process instance.
Show Source
Nested Schema : TaskAction
Type: object
An action which can be performed for a given task.
Show Source
Nested Schema : assignmentAttributes
Type: object
Additional Properties Allowed
Show Source
Map for additional key, value string pairs.
Nested Schema : assignmentTags
Type: array
Assignment tags.
Show Source
  • Allowed Values: [ "SOD_VIOLATIONS", "EXPIRES_SOON", "EXTENSION_REQUEST" ]
Nested Schema : instanceVariables
Type: array
Client specific context.
Show Source
Nested Schema : timers
Type: array
Timers to update.
Show Source
Nested Schema : additionalProperties
Type: object
Show Source
Nested Schema : InstanceVariable
Type: object
Variable of process instance
Show Source
Nested Schema : value
Type: object
value assigned to the variable
Show Source
Nested Schema : InstanceTimer
Type: object
Timers of process instance
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 approval tasks. You need to pass either accessRequestId or assigneeId of an identity.

cURL Request Example

curl -i -X GET \
   -H "Authorization:Bearer <your access token>" \
 '${service-instance-url}/access-governance/access-controls/${version}/approvals?accessRequestId=${accessRequestId}'

Example of the Response Code

{
    "items": [
        {
            "id": "d7ca932f-xxxx-xxxx-a4f0-ce0355309ad8",
            "processId": "user",
            "instanceId": "ae3a3688-xxxx-4503-bdea-67ea8404114b:d7937d92-xxxx-xxxx-a4f0-ce0355309ad8",
            "requestId": "d2756914-xxxx-xxxx-bd2a-a31f131ce533",
            "assignee": "Betty Cook",
            "status": "PENDING_APPROVAL",
            "lastAction": null,
            "context": {
                "requestor": "Amel Maclead",
                "beneficiary": "Bill Clark",
                "assignmentName": "Database Basic Access Privilege",
                "assignmentType": "ACCESS_BUNDLE",
                "assignmentDescription": null,
                "assignmentAttributes": null,
                "assignmentTags": [],
                "timeOfExpiration": null,
                "justification": "Database Basic Privilege Approvals Request",
                "timeCreated": "2025-04-21T21:51:53.008Z",
                "instanceVariables": null,
                "message": null,
                "timers": null
            },
            "timeDue": "2025-04-28T21:51:55.953Z",
            "timeCreated": "2025-04-21T21:51:55.952Z",
            "timeCompleted": null
        }
    ]
}
Back to Top