Search Role Mining Tasks Based On Criteria

post

/oiri/api/v1/tasks/.search

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
request for role mining tasks search
Root Schema : schema
Type: object
Show Source
Nested Schema : page
Type: object
Show Source
Nested Schema : sort
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : RoleMiningJobSearchResponse
Type: object
Show Source
Nested Schema : jobs
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : input
Type: object
Show Source
Nested Schema : output
Type: object
Show Source
Nested Schema : criteria
Type: array
Show Source
Nested Schema : Criteria
Type: object
Show Source
Nested Schema : candidateRoles
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top

Examples

The following example shows how to search for role mining tasks based on criteria.

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
-H "Authorization: Bearer $token"\
"http://localhost:port/oiri/api/v1/tasks/.search" -d

Example of the Request Body

The following is an example of the request body.

{
"page":
   {"offset":0,
    "limit":10},
"sort":
   {"sortBy":"createdDate",
    "sortOrder":"DESC"},
"searchFilters": "status in (\"CREATED\")"
}

Example of the Response Body

The following is an example of the response body in JSON format.

{
"recordCount": 1,
"jobs": [
{
"id": "2",
"sourceId": null,
"sourceName": null,
"name": "SampleTask2",
"description": "SampleTask2 desc",
"type": "ROLE_MINING",
"status": "CREATED",
"message": null,
"createdDate": "2021-04-22T07:12:31.436679Z",
"createdBy": "RFROST",
"lastUpdatedDate": "2021-04-22T07:12:31.436679Z",
"startedDate": null,
"finishedData": null,
"input": {
"name": "SampleTask2",
"description": "SampleTask2 desc",
"candidateRolePrefix": "cr",
"criteria": [
{
"type": "user",
"filter": "organization in (\"VisCertOrg\")"
}
],
"candidateRoleCountIndicator": 3
},
"output": null
}
],
"limit": 10,
"offset": 0,
"count": 1,
"hasMore": false
}
Back to Top