Click HERE to see how Saviynt Intelligence is transforming the industry. |
02/08/2023 10:14 AM
Hi,
Need an object of Role Owner to use it in workflow to fetch user properties of the owner.
Use Case: Once the create role request is submitted by selecting role owner and entitlements for the role, need to check the condition that if selected owners one of the user properties is matching.
Ex: if selected role owner has CustomProperty10 value as null in his user profile then request should be rejected.
Thanks,
Sanjeevini
02/08/2023 11:34 AM
role.getOwnerRank1().getCustomProperty10()
02/08/2023 11:41 AM - edited 02/08/2023 11:43 AM
You can try using com.saviynt.ecm.identitywarehouse.domain.Users service to get owner object with groovy as expression language
Example:
com.saviynt.ecm.identitywarehouse.domain.Users.get(Long.valueOf(dynamicAttributesReqAccess.get(requestaccesskey).get('USEROWNERKEY'))).username == (requestedby.username)
So you can try something like below
com.saviynt.ecm.identitywarehouse.domain.Users.get(Long.valueOf(role.getOwnerRank1())).customproperty10
02/08/2023 11:58 AM
Hi,
For a new role creation request , it might not work as the role was not created and owner was not assigned yet.
02/09/2023 03:11 AM
Tried with below conditions but no luck.
1)role.getOwnerRank1().getEmployeeType() == 'Employee'
2)com.saviynt.ecm.identitywarehouse.domain.Users.get(Long.valueOf(role.getOwnerRank1())).employeeType == 'Employee'
3)com.saviynt.ecm.identitywarehouse.domain.Users.get(Long.valueOf(dynamicAttributesReqAccess.get(requestaccesskey).get(role.getOwnerRank1()))).username == (users.userName) and employeeType='Employee'
Please let me know if I'm missing something.
02/09/2023 04:08 AM
Language should be groovy . What is error in logs
02/09/2023 09:43 AM
02/09/2023 10:13 AM
Instead of role.getOwnerRank1() , use role.ownerRank1() and check.
02/09/2023 11:01 AM
role.ownerRank1() this is also not working.