and more in a single search tool across platforms. Read the announcement here. |
11/13/2023 10:23 AM
Hello ,
I'm trying to get hands-on to workflows in Saviynt IGA. However I find it difficult to understand the variables, its object type and structure to extract out the required info.
In one of our workflow I saw a groovy script in the if-else block
requestedby.authorities.collect { it.authority }.contains("ROLE_ADMIN")
It would be great to know how to determine the structure of the object - requestedby (or any other objects that we may encounter in future).
Can you also explain what the above groovy script means
Thanks,
Ajith
11/13/2023 10:34 AM
Click on help button to get list of all variables
requestedby.authorities.collect { it.authority }.contains("ROLE_ADMIN")
It checks that person who is requesting have ROLE_ADMIN sav role or not, authority stores all sav role and it loop between all sav roles user have
11/13/2023 10:39 AM
Thanks @rushikeshvartak . I have seen this on the help menu previously.
The link I'm missing is how we can understand that "requestedby" object has a member named "authorities" and how do we know that authority object stores SAV_Roles.
Is there any documentation available on these objects?
Thanks,
Ajith
11/13/2023 10:46 AM
Regarding authority - its not documented - https://forums.saviynt.com/t5/identity-governance/role-admin-user-should-get-auto-approved-on-reques...
11/13/2023 10:56 AM - edited 11/13/2023 10:59 AM
@rushikeshvartak Thanks for the links.
I'm keen in learning workflow customization using Groovy scripts. Though the list of objects can be seen from the help button, the actual structure of object is not available. This is making the things a bit challenging.
I think the best way is to raise a support request for the specific usecase that we are interested in. If you have any other suggestion happy to hear that too.
Can you share the other members present in the object "requestedby"
Thanks,
Ajith
11/29/2023 08:40 PM
Support is likely to redirect you here. Bottom line: documentation needs major improvement around workflow module. Workflow development is extremely challenging as-is.
11/29/2023 09:13 PM
members?
11/30/2023 01:05 AM
I mean the detailed object structure, its fields etc.
Thanks,
Ajith
11/30/2023 10:37 PM
No i dont have any other details