Skip to main content

Get Approvals for User

Get approvals for the user specified by the token.

GET https://instance.securid.com/aveksa/command.submit?cmd=getApprovalsForUser

caution

This web service has been replaced with the command Get Work Items for User. Future releases may remove the deprecated web service command.

Request

Parameters

getApprovalsForUser
formatproperties - (Default) key=value. most useful when requesting a single object. If multiple objects are returned, values is a csv. ie key=value1,value2,value3 where value1 is the value for the first object, value2 is the value for the 2nd object, etc.

json - Useful format for parsing into javascript or other languages. See www.json.org for details.
page-sizeThe number of approvals to return for this page. (Default 20)
sortSort the approvals by due date (asc | desc). (Default asc)
start-pageThe page number to start from. (Default 1)
stateThe state of the approvals to retrieve (pending | completed | all). (Default pending)

Headers

Bearer token
Acceptapplication/json
Content-Typeapplication/json

Response

Parameters

The command returns detailed information about the approval in XML format.

Examples

Request

curl -K -X GET  \
"https://instance.securid.com/aveksa/command.submit?cmd=getApprovalsForUser&format=json" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json"

Response

<?xml version="1.0" encoding="UTF-8"?>
<getApprovalsForUser>
<NumApprovals>0</NumApprovals>
</getApprovalsForUser>