Hi Leo,
Thanks for the suggestion, I’ll have to try to set this up in sandbox and see if we can make it work.
Here is the current workflow:
{
"name": "Remove access to AWS test_role roles after 30 days",
"description": "This workflow will remove access to AWS test_role roles after 30 days",
"modified": "2025-07-10T14:47:28.710564675Z",
"modifiedBy": {
"type": "IDENTITY",
"id": "xxxxx",
"name": "xxxxx"
},
"definition": {
"start": "Get Identity",
"steps": {
"End Step - Success": {
"actionId": "sp:operator-success",
"displayName": "",
"type": "success"
},
"Get Access": {
"actionId": "sp:access:get",
"attributes": {
"accessprofiles": true,
"entitlements": false,
"getAccessBy": "specificIdentity",
"identityToReturn.$": "$.trigger.requestedFor.id",
"roles": false
},
"description": "Get access profile",
"displayName": "",
"nextStep": "Manage Access",
"type": "action",
"versionNumber": 1
},
"Get Identity": {
"actionId": "sp:get-identity",
"attributes": {
"id.$": "$.trigger.requestedFor.id"
},
"description": "Get the identity data for the identity that the access was requested for.",
"displayName": "",
"nextStep": "Wait",
"type": "action",
"versionNumber": 2
},
"Manage Access": {
"actionId": "sp:access:manage",
"attributes": {
"comments": "Remove access due to timeout",
"removeIdentity.$": "$.trigger.requestedFor.id",
"requestType": "REVOKE_ACCESS",
"requestedItems": {
"id": "{{$.trigger.requestedItemsStatus[*].id}}",
"name": "{{$.trigger.requestedItemsStatus[*].name}}",
"type": "ACCESS_PROFILE"
}
},
"description": "Remove access",
"displayName": "",
"nextStep": "End Step - Success",
"type": "action",
"versionNumber": 1
},
"Wait": {
"actionId": "sp:sleep",
"attributes": {
"duration": "30d",
"type": "waitFor"
},
"description": "Wait for 30 days",
"displayName": "",
"nextStep": "Get Access",
"type": "action",
"versionNumber": 1
}
}
},
"creator": {
"type": "IDENTITY",
"id": "xxxxx",
"name": "xxxxx"
},
"trigger": {
"type": "EVENT",
"attributes": {
"filter.$": "$.requestedItemsStatus[?(@.name contains 'test_role - Temporary' && @.operation=='Add')]",
"id": "idn:access-request-post-approval"
}
}
}
Thanks!