Get Pending Approvals
POST/getPendingApprovals
This API returns pending approval details for an approver (approver provided in username
parameter).
The Authorization
must have Bearer
followed by Token
.
Mandatory params:
username
Optional params:
requestkey
, max
, offset
, requestid
, requestedfor
, requestedby
, firstname
, lastname
, sort
- requestdate/duedate/requestid/requestkey, order
- asc/desc, submitdatestart
, submitdateend
, duedatestart
, duedateend
, requestcomments
, requestorigin
, endpoint
- list of endpoints, securitysystem
- list of securitysystems, assignee
- list of assignees, assigneeusername
- list of usernames, requesttype
- list of requesttypes, entitlementvaluekey
- list of entitlement value keys, hidecompletedapprovals
- true/ false (default is false).
Note : Searchable dates in the format MM/dd/yyyy. Sample for list of items - ["value1","value2"]
Request
- application/json
Body
Responses
- 200
Get Pending Approvals - SUCCESS
Response Headers
Access-Control-Allow-Credentials
string
Access-Control-Allow-Origin
string
Cache-Control
string
Date
string
Expires
string
Referrer-Policy
string
Server
string
Set-Cookie
string
Strict-Transport-Security
string
X-Content-Type-Options
string
X-Frame-Options
string
- application/json
- Schema
- Example (from schema)
- Get Pending Approvals - SUCCESS
Schema
Array [
Array [
Array [
]
Array [
]
]
]
results
object[]
accessRequestDetails
object[]
childTasks
object[]
accessdetails
object
parentTasks
object
tasksList
object[]
accessdetails
object
{
"count": 1,
"errorCode": "0",
"msg": "SUCCESS",
"results": [
{
"accessRequestCount": 1,
"accessRequestDetails": [
{
"accountname": "edwardemployee",
"childTasks": [
{
"Access": "ACCOUNTNAME|edwardemployee@@ENDPOINT|624@@",
"access": "testEntitlementPM",
"accessdetails": {
"description": "This role is for employees needing access to EP",
"displayname": "testEntitlementPM",
"entitlement_value": "testEntitlementPM"
},
"approvalstatus": "NEW",
"approvaltype": "Auto-Approve",
"assignee": [
[
"Saviynt AdminUser (admin)"
]
],
"businessjustification": "<span class=\"busjustformat\">[04/23/2020 UTC -Edward Employee(edwardemployee)] sdfsdf</span>",
"entTypeDescription": null,
"entTypeDisplayName": "Access",
"entitlement": "Access",
"parentRequestaccessKey": 6654,
"reqtype": "RequestAccess",
"requestaccessComments": "<span class=\"busjustformat\">[04/23/2020 UTC -Edward Employee(edwardemployee)] sdfsdf</span>",
"requestaccessEnddate": "",
"requestaccessKey": 6655,
"requestaccessStartdate": "2020-04-23T09:47:56Z",
"requestaccessStatus": "Pending Approval",
"requestdate": "2020-04-23 09:47:56.0",
"taskid": "2220058___810d1198-74b1-452f-8928-0f97a48ea04c",
"taskkey": 12247
}
],
"childTasksCount": 1,
"dynamicAttributes": [],
"endpoint": "Amigopod",
"endpointdisplayname": "Amigopod",
"modifyTasks": [],
"modifyTasksCount": 0,
"parentTasks": {
"accountname": "edwardemployee",
"approvalstatus": "NEW",
"endpoint": "Amigopod",
"endpointdisplayname": "Amigopod",
"requestedby": "edwardemployee",
"taskid": "2220058___311217e8-d3c7-439e-821e-304bfdebc8b4",
"taskkey": 12246
},
"requestedby": "edwardemployee",
"tasksList": [
{
"Access": "ACCOUNTNAME|edwardemployee@@ENDPOINT|624@@",
"access": "testEntitlementPM",
"accessdetails": {
"description": "This role is for employees needing access to EP",
"displayname": "testEntitlementPM",
"entitlement_value": "testEntitlementPM"
},
"approvalstatus": "NEW",
"approvaltype": "Auto-Approve",
"assignee": [
[
"Saviynt AdminUser (admin)"
]
],
"businessjustification": "<span class=\"busjustformat\">[04/23/2020 UTC -Edward Employee(edwardemployee)] sdfsdf</span>",
"entTypeDescription": null,
"entTypeDisplayName": "Access",
"entitlement": "Access",
"parentRequestaccessKey": 6654,
"reqtype": "RequestAccess",
"requestaccessComments": "<span class=\"busjustformat\">[04/23/2020 UTC -Edward Employee(edwardemployee)] sdfsdf</span>",
"requestaccessEnddate": "",
"requestaccessKey": 6655,
"requestaccessStartdate": "2020-04-23T09:47:56Z",
"requestaccessStatus": "Pending Approval",
"requestdate": "2020-04-23 09:47:56.0",
"taskid": "2220058___810d1198-74b1-452f-8928-0f97a48ea04c",
"taskkey": 12247
}
],
"tasksListCount": 1,
"typeOfRequest": "NEW"
}
],
"activityname": "Auto-Approve",
"assignee": "Saviynt AdminUser (admin)",
"comments": "",
"duedate": "2020-04-26 09:47:56",
"endpoints": "Amigopod",
"requestdate": "2020-04-23 09:47:56",
"requestee": "Edward Employee (edwardemployee)",
"requestid": "2210612",
"requestkey": 3484,
"requestor": "Edward Employee (edwardemployee)",
"requesttype": "New Account"
}
],
"totalApprovals": "1"
}
{
"count": 1,
"errorCode": "0",
"msg": "SUCCESS",
"results": [
{
"accessRequestCount": 1,
"accessRequestDetails": [
{
"accountname": "edwardemployee",
"childTasks": [
{
"Access": "ACCOUNTNAME|edwardemployee@@ENDPOINT|624@@",
"access": "testEntitlementPM",
"accessdetails": {
"description": "This role is for employees needing access to EP",
"displayname": "testEntitlementPM",
"entitlement_value": "testEntitlementPM"
},
"approvalstatus": "NEW",
"approvaltype": "Auto-Approve",
"assignee": [
[
"Saviynt AdminUser (admin)"
]
],
"businessjustification": "<span class=\"busjustformat\">[04/23/2020 UTC -Edward Employee(edwardemployee)] sdfsdf</span>",
"entTypeDescription": null,
"entTypeDisplayName": "Access",
"entitlement": "Access",
"parentRequestaccessKey": 6654,
"reqtype": "RequestAccess",
"requestaccessComments": "<span class=\"busjustformat\">[04/23/2020 UTC -Edward Employee(edwardemployee)] sdfsdf</span>",
"requestaccessEnddate": "",
"requestaccessKey": 6655,
"requestaccessStartdate": "2020-04-23T09:47:56Z",
"requestaccessStatus": "Pending Approval",
"requestdate": "2020-04-23 09:47:56.0",
"taskid": "2220058___810d1198-74b1-452f-8928-0f97a48ea04c",
"taskkey": 12247
}
],
"childTasksCount": 1,
"dynamicAttributes": [],
"endpoint": "Amigopod",
"endpointdisplayname": "Amigopod",
"modifyTasks": [],
"modifyTasksCount": 0,
"parentTasks": {
"accountname": "edwardemployee",
"approvalstatus": "NEW",
"endpoint": "Amigopod",
"endpointdisplayname": "Amigopod",
"requestedby": "edwardemployee",
"taskid": "2220058___311217e8-d3c7-439e-821e-304bfdebc8b4",
"taskkey": 12246
},
"requestedby": "edwardemployee",
"tasksList": [
{
"Access": "ACCOUNTNAME|edwardemployee@@ENDPOINT|624@@",
"access": "testEntitlementPM",
"accessdetails": {
"description": "This role is for employees needing access to EP",
"displayname": "testEntitlementPM",
"entitlement_value": "testEntitlementPM"
},
"approvalstatus": "NEW",
"approvaltype": "Auto-Approve",
"assignee": [
[
"Saviynt AdminUser (admin)"
]
],
"businessjustification": "<span class=\"busjustformat\">[04/23/2020 UTC -Edward Employee(edwardemployee)] sdfsdf</span>",
"entTypeDescription": null,
"entTypeDisplayName": "Access",
"entitlement": "Access",
"parentRequestaccessKey": 6654,
"reqtype": "RequestAccess",
"requestaccessComments": "<span class=\"busjustformat\">[04/23/2020 UTC -Edward Employee(edwardemployee)] sdfsdf</span>",
"requestaccessEnddate": "",
"requestaccessKey": 6655,
"requestaccessStartdate": "2020-04-23T09:47:56Z",
"requestaccessStatus": "Pending Approval",
"requestdate": "2020-04-23 09:47:56.0",
"taskid": "2220058___810d1198-74b1-452f-8928-0f97a48ea04c",
"taskkey": 12247
}
],
"tasksListCount": 1,
"typeOfRequest": "NEW"
}
],
"activityname": "Auto-Approve",
"assignee": "Saviynt AdminUser (admin)",
"comments": "",
"duedate": "2020-04-26 09:47:56",
"endpoints": "Amigopod",
"requestdate": "2020-04-23 09:47:56",
"requestee": "Edward Employee (edwardemployee)",
"requestid": "2210612",
"requestkey": 3484,
"requestor": "Edward Employee (edwardemployee)",
"requesttype": "New Account"
}
],
"totalApprovals": "1"
}