Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/09/2024 05:37 AM
Hi,
We have a requirement that when the user is created, it will check whether the requestor having particular SAV_ROLE if yes auto approve, if not the approver should have that SAV_ROLE.
I am able to achieve the first but trying hard to achieve the second (the approver should have the Particular SAV_ROLE). It is also fine if the approver belongs to particular usergroup.
Can anybody share the query which we can use in Custom Assignment.
Thank you.
Solved! Go to Solution.
08/09/2024 05:56 AM
Use the below condition in if else block( mark it as groovy )
requestedby.authorities.collect { it.authority }.contains("ROLE_ADMIN")
08/09/2024 06:00 AM
Try this
08/09/2024 06:01 AM
Hi @rushikeshvartak @Abhishek0406
Thanks for the reply. For first use case I achieved using this query and I am stuck in second case (approver of the user creation should be from usergroup or SAV_ROLE.)
08/09/2024 06:02 AM
You can validate using above authority check for sav role
08/09/2024 06:04 AM
User Group change logic sample below
08/09/2024 06:49 AM
Hi @rushikeshvartak,
Is it possible to achieve this case in Custom Assignment Task? does the groovy script works in Custom Assignment. The above said query and the query which shared in the another forum can be used in if else. My requirement is, I need to achieve this in Custom Assignment.
Thank you.
08/09/2024 07:18 AM
not in custom assignment if it only 1 user then. It will go to admin
08/12/2024 04:39 AM
Thanks @rushikeshvartak for the reply. I achieved the result. Previously the usergroup has only one user and it assigned to admin.
08/12/2024 04:44 AM
✅Please click the 'Accept As Solution' button on the reply (or replies) that best answered your original question and hit 'Kudos' button 👍.