Skip to main content

Get Request Items

Get the individual changes within a change request or approval. The user specified by the token must have access to the change request or approval.

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

note

Either approval-id or request-id must be provided. When using a trusted application token, auth-user-id is required when using request-id. It is not required when using approval-id. When both approval-id and request-id are provided, request-id takes precedence and auth-user-id is required. The default response format is XML. Pass format=json to receive JSON.

Request

Parameters

getRequestItems
formatxml - (Default) Returns the response as XML.

json - Returns the response as JSON.
approval-idThe ID of the approval work item, in id:WPDS:n format. Retrieve this from Get Approvals for User or Find Approvals. Either approval-id or request-id must be provided.
request-idThe numeric ID of the change request. Retrieve this from Create Change Request. Either approval-id or request-id must be provided.
auth-user-idThe ID of the user who submitted the change request. Required for trusted application tokens when using request-id. Use System if no auth-user-id was specified in the original createChangeRequest call.
page-sizeNumber of request items per page. (Default) 20
start-pageStarting page number. (Default) 1

Headers

Bearer token

Response

Parameters

NumRequestItemsTotal number of request items in the change request.
WorkItemIdThe approval work item ID used in the query, in id:WPDS:n format. Empty string when queried by request-id.
RequestIdNumeric ID of the change request.
RequestStatusCurrent status of the change request. For example: Approvals Phase Completed.
RequestItems.RequestItemA single object when 1 request item is returned. An array of objects when multiple request items are returned. An empty string when the requested page is beyond the result set.
RequestItem.ItemIdUnique numeric ID of the request item.
RequestItem.TypeDescriptionHuman-readable description of the change type. For example: Add application role to user Add user to group.
RequestItem.OperationThe operation being performed. For example: Add Remove.
RequestItem.OperandTypeThe type of object the operation targets. For example: User Account.
RequestItem.ValueTypeThe type of the entitlement or value being changed. For example: ApplicationRole UserGroup.
RequestItem.EntitlementTypeDisplay name of the entitlement type. For example: Application Role Group.
RequestItem.EntitlementNameDisplay name of the entitlement.
RequestItem.EntitlementRawNameRaw/unformatted name of the entitlement.
RequestItem.BusinessSourceName of the business source for the entitlement.
RequestItem.BusinessSourceAltNameAlternate display name for the business source.
RequestItem.StateCurrent state of the request item. For example: Pending Approval Completed.
RequestItem.ItemDescriptionDescription of the request item. Empty string if not set.
RequestItem.DerivedTypeHow the entitlement is assigned. For example: Direct.
RequestItem.IsChangeToApprovetrue when queried by approval-id and this item is in scope for the approver. false when queried by request-id.
RequestItem.UserNameDisplay name of the user, in LastName, FirstName format. Empty string when OperandType is Account.
RequestItem.UserIdNumeric ID of the user. Present when OperandType is User.
RequestItem.AccountNameLogin name of the account. Empty string when OperandType is User.
RequestItem.ApplicationRoleNameApplication role name. Empty string if not applicable.
RequestItem.UserGroupNameUser group name. Empty string if not applicable.
RequestItem.GlobalRoleNameGlobal role name. Empty string if not applicable.
RequestItem.GlobalRoleSetNameGlobal role set name. Empty string if not applicable.
RequestItem.Data_Resource_NameData resource name. Empty string if not applicable.

Examples

Request

curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=getRequestItems&format=json&approval-id=1001:WPDS:1" \
-H "Authorization: Bearer <token>"

Response

Pending approval. IsChangeToApprove is true and WorkItemId is populated.

{
"getRequestItems": {
"RequestItems": {
"RequestItem": {
"EntitlementName": "Reporting Users",
"UserName": "Smith, Alex",
"ValueType": "ApplicationRole",
"EntitlementRawName": "Reporting Users",
"GlobalRoleName": "",
"ApplicationRoleName": "",
"GlobalRoleSetName": "",
"BusinessSourceAltName": "HR System",
"Operation": "Add",
"ItemId": 101,
"ItemDescription": "",
"OperandType": "User",
"State": "Pending Approval",
"UserId": 0,
"UserGroupName": "",
"DerivedType": "Direct",
"IsChangeToApprove": true,
"TypeDescription": "Add application role to user",
"BusinessSource": "HR System",
"EntitlementType": "Application Role",
"Data_Resource_Name": "",
"AccountName": ""
}
},
"NumRequestItems": 1,
"RequestId": 1001,
"WorkItemId": "1001:WPDS:1",
"RequestStatus": "Approvals Phase"
}
}

Verified with RSA Governance & Lifecycle version 8.0.0.188886 P10_HF01.

See Also