{ "name": "Department Change", "description": "When Department changes, request a role", "definition": { "start": "Compare Strings", "steps": { "Compare Strings": { "choiceList": [ { "comparator": "StringEquals", "nextStep": "Create Request for Access", "variableA.$": "$.changes[?(@.attribute=='department')].attribute", "variableB": "department" } ], "defaultStep": "Send Email", "description": "Check if Department changed", "type": "choice" }, "Create Request for Access": { "actionId": "sp:create-approval-request", "attributes": { "identities": { "id": "2c9180867e9a1b12017e9dabaa520a02" }, "requestedItems": { "id": "2c9180867e9a1b12017e9dabaa520a02", "type": "ROLE" } }, "description": "Request access to Role", "nextStep": "success", "selectInput": null, "selectResult": "$.requestedItems", "type": "action" }, "Send Email": { "actionId": "sp:send-email", "attributes": { "from": "sailpoint@sailpoint.com", "recipientId": "2c9180876ae6b8f3016b668e01a63530", "replyTo": null, "subject": "test" }, "nextStep": "success (1)", "type": "action" }, "success": { "type": "success" }, "success (1)": { "type": "success" } } }, "creator": { "type": "IDENTITY", "id": "2c9180876ae6b8f3016b668e01a63530", "name": "Justin.Haines" }, "trigger": { "type": "EVENT", "attributes": { "id": "idn:identity-attributes-changed" } } }