Skip to main content

Update Review Items

Update the state of review items in a given review.

POST https://instance.securid.com/aveksa/command.submit?cmd=updateReviewItems

note

Review should be in Active state and only review items that are reviewable by the user (specified by token) will be actionable using web service.

Request

Parameters

updateReviewItems
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.

Headers

Bearer token
Acceptapplication/json
Content-Typeapplication/json

Body

<Review>
<ReviewResultName>value</ReviewResultName>
<SignOff>false</SignOff>
<UpdateCommentsOnly>false</UpdateCommentsOnly>
<ReviewItemChange state="revoke" comments="value">
<RevieweeUserId>value</RevieweeUserId>
<Entitlement resource="value" action="value" business-source="value"/>
</ReviewItemChange>
<ReviewItemChange state="maintain" comments="value" expires-on="DD-MMM-YYYY">
<RevieweeUserId>value</RevieweeUserId>
<ApplicationRole name="value" business-source="value"/>
</ReviewItemChange>
<ReviewItemChange state="none" comments="value">
<RevieweeUserId>value</RevieweeUserId>
<RevieweeAccount name="value" business-source="value"/>
<Group name="value" business-source="value"/>
</ReviewItemChange>
<ReviewItemChange state="custom" comments="value">
<RevieweeUserId>value</RevieweeUserId>
<GlobalRole name="value" role-set="value"/>
</ReviewItemChange>
</Review>
ReviewResultNameThe name of the review.
SignOfftrue, false Enable sign off for the review. (Default) false
UpdateCommentsOnlytrue, false This parameter is used to update the comment only, if it is present with true value, then no state action will be considered. (Default) false
CommentsComments to sign off review components.
RevieweeUserIdThe UserId of the user who is being reviewed.
RevieweeAccount

name - The attribute must be the name of the users account being reviewed.

business-source - The attribute must be the application raw name of users account being reviewed.
ReviewItemChange

state - The attribute must be the state.Valid values :

  • maintain
  • revoke
  • none
  • custom (if custom state is supported on review.)

comments - The attribute must be the comments with which item should be updated.

expires-on - The attribute must be the expiration date of maintain state when allowed on review.
Entitlement

resource - The attribute must be the resource name of the entitlement.

action - The attribute must be the action name of the entitlement.

business-source - The attribute must be the raw name of business source the entitlement belongs.
ApplicationRole

name - attribute must be the name of the application role.

business-source - The attribute must be the raw name of business source the application role belongs.
Group

name - The attribute must be the name of the group.

business-source - The attribute must be the raw name of business source the group belongs.
GlobalRole

name - attribute must be the name of the global role.

role-set - The attribute must be raw name of the role set to which global role belongs.

Response

Parameters

typeExecuted command name
StatusThe status of the operation. The command returns XML as an output specifying status for each review item. If any of the items are updated successfully, a status of success will be returned. The response will contain details of what items could be updated and what items failed.

Examples

Request

curl -K -X GET  \
"https://instance.securid.com/aveksa/command.submit?cmd=updateReviewItems&format=json" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
--data-raw "<Review>
<ReviewResultName>UAR-3</ReviewResultName>
<SignOff>false</SignOff>
<UpdateCommentsOnly>false</UpdateCommentsOnly>
<ReviewItemChange state=\"revoke\" comments=\"Alice no longer needs this access\">
<RevieweeUserId>asmith</RevieweeUserId>
<RevieweeAccount name=\"mason.stewart@example.com\" business-source=\"Okta\"/>
<Group name=\"HR Department\" business-source=\"Okta\"/>
</ReviewItemChange>
<ReviewItemChange state=\"revoke\" comments=\"Alex no longer needs this access\">
<RevieweeUserId>achen</RevieweeUserId>
<RevieweeAccount name=\"TelemetryUser\" business-source=\"CyberArk (REST)\"/>
<Group name=\"Auditors\" business-source=\"CyberArk (REST)\"/>
</ReviewItemChange>
</Review>"

Response

{
"data": {
"type": "updateReviewItems",
"Status": "Success. Updated all 2 review components with specified states."
}
}