We are using the Provisioning Completed Event Trigger to send notifications based certain birthright roles. The source in the trigger is Identity now.
We need to ‘loop’ through the attributeRequests array, check each request and checks each role to determine if notifications should be sent.
When we use attributeRequests[*] as the loop input fails. If we can hard code the object in the are e.g. attributeRequests[0], attributeRequests[1] etc., it works. See below for array example.
How can we get the size/length of the array?
That will help us determine home many times to execute the actions in the loop?
"attributeRequests": [
{
"attributeName": "assignedRoles",
"attributeValue": "ROLE A [cloudRole-1692632990449]",
"operation": "Add"
},
{
"attributeName": "assignedRoles",
"attributeValue": "ROLE B [cloudRole-1693682007732]",
"operation": "Add"
},
{
"attributeName": "assignedRoles",
"attributeValue": "ROLE C [cloudRole-1693682007732]",
"operation": "Add"
}
]