Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/12/2022 01:15 PM
I was looking at the Workflow If/Else Matrix documentation here:
and was wondering if it was possible to check if the requester is part of a user group or SAV Role within a request access request. We are looking to have requests from certain groups of users be auto approved and users outside of the groups will need to go through an entitlement owner approval.
Since we already have logic to put users in SAV Roles or User groups we thought it might be easier than using attributes from the user object.
Thanks,
Chris
Solved! Go to Solution.
04/12/2022 02:42 PM
Hi Chris,
Try adding a new if-else condition in the workflow with the type as groovy and check the below syntax with SavRole name modification to check if the requester is part of SAV Role within a access request.
requestedby.authorities.collect { it.authority }.contains("ROLE_ENDUSER")
04/12/2022 02:42 PM
Thank you. This works
04/12/2022 02:42 PM
The above code works and can be used to check if a user has a SAVRole but is there a way to check if a user is a member of a user group?
Thanks,
Sampo
04/12/2022 02:42 PM
Team,
Is there any update of the above query ?
How can we check if a user belongs to a member of a user group in the If-Else block of Workflow?
Thanks,
Abir
04/12/2022 02:42 PM
Hello,
Is there any update on this?
I am looking to implement something similar- I want to check whether the user is a member of the user group assigned as the resource owner in the workflow if/else condition.
Thanks,
Alex
04/12/2022 02:42 PM
We too are looking for this. Please provide an update
04/12/2022 02:42 PM
David,
I dont think the user group is exposed on the if/else component of the workflow.
Regards,
Avinash Chhetri