Thanks. I have attached the same.
{
“name”: “Terminated User Clean-up and Closure”,
“description”: “Workflow to automate clean-up of terminated users.”,
“modified”: “2024-12-11T03:05:05.805493547Z”,
“modifiedBy”: {
“type”: “IDENTITY”,
“id”: “XXXXXXXXXXXXXXXXX”,
“name”: “XXXXXXXXXXXXXXXXX”
},
“definition”: {
“start”: “Compare Strings”,
“steps”: {
“Compare Strings”: {
“choiceList”: [
{
“comparator”: “StringEquals”,
“nextStep”: “Get Identity”,
“variableA.$”: “$.trigger.changes[?(@.attribute == "cloudLifecycleState")].newValue”,
“variableB”: “terminated”
}
],
“defaultStep”: “End Step - Success 1”,
“displayName”: “”,
“type”: “choice”
},
“Create Certification Campaign”: {
“actionId”: “sp:create-campaign”,
“attributes”: {
“activateUponCreation”: true,
“description”: “Termination Clean-Up”,
“duration”: “1d”,
“emailNotificationEnabled”: false,
“governanceAccessItemType”: “ENTITLEMENT”,
“governanceAccessOperator”: “SELECTED”,
“governanceCertificationType”: “IDENTITY”,
“governanceGroupId”: “b22XXXXXXXXXXXXXXXXXd”,
“governanceIdentitiesToCertify.$”: “$.getIdentity.id”,
“name”: “Termination Clean-Up - {{$.getIdentity.attributes.displayName}}”,
“type”: “GOVERNANCE_GROUP”,
“undecidedAccess”: true
},
“description”: null,
“displayName”: “”,
“nextStep”: “Define Variable”,
“type”: “action”,
“versionNumber”: 2
},
“Define Variable”: {
“attributes”: {
“id”: “sp:define-variable”,
“variables”: [
{
“description”: “”,
“name”: “URL”,
“transforms”: [
{
“id”: “sp:transform:concatenate:string”,
“input”: {
“variableB.$”: “$.createCertificationCampaign.id”
}
},
{
“id”: “sp:transform:concatenate:string”,
“input”: {
“variableB”: “/complete”
}
}
],
“variableA”: “https://XXXXXXXXXXXXXXXXX.api.identitynow.com/v2024/campaigns/”
}
]
},
“displayName”: “”,
“nextStep”: “Wait”,
“type”: “Mutation”
},
“End Step - Success”: {
“displayName”: “”,
“type”: “success”
},
“End Step - Success 1”: {
“displayName”: “”,
“type”: “success”
},
“Get Identity”: {
“actionId”: “sp:get-identity”,
“attributes”: {
“id.$”: “$.trigger.identity.id”
},
“displayName”: “”,
“nextStep”: “Create Certification Campaign”,
“type”: “action”,
“versionNumber”: 2
},
“HTTP Request”: {
“actionId”: “sp:http”,
“attributes”: {
“authenticationType”: “OAuth”,
“jsonRequestBody”: {
“autoCompleteAction”: “REVOKE”
},
“method”: “post”,
“oAuthClientId”: “XXXXXXXXXXXXXXXXX”,
“oAuthClientSecret”: “”,
“oAuthCredentialLocation”: “oAuthInHeader”,
“oAuthScope”: null,
“oAuthTokenUrl”: “https://XXXXXXXXXXXXXXXXX.api.identitynow.com/oauth/token”,
“requestContentType”: “json”,
“url.$”: “$.defineVariable.uRL”
},
“displayName”: “”,
“nextStep”: “End Step - Success”,
“type”: “action”,
“versionNumber”: 2
},
“Wait”: {
“actionId”: “sp:sleep”,
“attributes”: {
“duration”: “24h”,
“type”: “waitFor”
},
“displayName”: “”,
“nextStep”: “HTTP Request”,
“type”: “action”,
“versionNumber”: 1
}
}
},
“creator”: {
“type”: “IDENTITY”,
“id”: “XXXXXXXXXXXXXXXXX”,
“name”: “XXXXXXXXXXXXXXXXX”
},
“trigger”: {
“type”: “EVENT”,
“attributes”: {
“attributeToFilter”: “cloudLifecycleState”,
“filter.$”: “$.changes[?(@.attribute == "cloudLifecycleState")]”,
“id”: “idn:identity-attributes-changed”
}
}
}