Hi all,
I require a workflow for one application that is managing its access rights via Azure AD groups where an email notification shall be sent to a specific email address if one of the application’s Azure AD groups are removed (e. g. by a regular certification). Of course, I could consider this during the mover and leaver workflow, but I would like to have a separate workflow so that revocations of regular certification can also be considered.
So, I created a workflow in our SB and the workflow test before enablement was working fine, but when I activated it and I removed one of the Azure AD groups there is no email that is triggered.
I believe that the trigger filter is not working correctly. I’m using the “provisioning completed” trigger with the following filter where I want to filter for specific Azure AD groups that were removed, so I specified them with the attribute “attributeValue” and specified the operation “Remove”.
$…accountRequests[?(@.provisioningResult == “SUCCESS” && @.provisioningTarget == “Azure testinfra tennant”)].attributeRequests[?(@.operation == “Remove” && (@.attributeValue in [“a3f48ba1-7114-4b96-ba77-102def475630”, “900653c7-2d4b-4af7-849d-944544b6479b”, “9023471e-324b-46aa-9277-f1e78ae5f473”, “633b3fbd-d20c-4191-8d88-35a645ba2657”, “c8a11341-3130-4266-bafa-f0fc9cf10144”, “dda55e6c-5520-4274-b812-f1beff94b954”, “5ea1a315-1759-4c7c-aa79-7c0d784c0c84”, “90726444-fc90-47d5-bdd3-ac1134d747b8”, “df4e5b78-da32-41a9-8bc6-ee83e3beab64”, “1b74a09e-6549-4e76-9d98-bbd79532f32b”, “ffb1e4c0-5354-4cb3-ae8e-45dece96eb99”]))]
Further I want to mention this Azure AD groups in an email, but I can only fetch the attribute “attributeValue” and not the display name. Does anyone have an idea how I could fetch the display name with this trigger? I’m using the following in an email body:
Dear recipient,
this email shall inform you that The AAD group with value
{{$.trigger.accountRequests[0].attributeRequests[0].attributeValue}} was removed from {{$.getIdentity.attributes.firstname}} {{$.getIdentity.attributes.lastname}} by {{$.getIdentity1.attributes.firstname}} {{$.getIdentity1.attributes.lastname}}.
Your IAM team
Thanks a lot in advance.
Fabienne