and more in a single search tool across platforms. Read the announcement here. |
05/19/2023 08:12 AM - last edited on 05/22/2023 01:16 PM by Dave
Hi,
We have a requirement to check if the requestor equals to the username from customproperty15 value of entitlement in access request workflow. We are using an if else block for this check but unable to get through.
customproperty15-->CN=xyz,OU=abc
SUBSTRING_INDEX(SUBSTRING_INDEX(customproperty15, ',', 1), '=', -1) with this query we are able to extract the user name i.e. xyz but not sure how to compare it with requestor username.
the query I tried but didn't work --->
com.saviynt.ecm.identitywarehouse.domain.Users.get(Long.valueOf(dynamicAttributesReqAccess.get(requestaccesskey).get('SUBSTRING_INDEX(SUBSTRING_INDEX(entitlement.customproperty15, ',', 1), '=', -1)')))== (requestedby.username)
I tried with below queries based on forum suggestions but seems i miss something.
com.saviynt.ecm.workflow.entitlement_values.get(entitlement_valuekey)?.(SUBSTRING_INDEX(SUBSTRING_INDEX(customproperty15, ',', 1), '=', -1)) == (requestedby.username)
com.saviynt.ecm.identitywarehouse.domain.Users.get(entitlement_values.get(entitlement_valuekey).get (SUBSTRING_INDEX(SUBSTRING_INDEX(customproperty15, ',', 1), '=', -1)).get('userkey')) == (requestedby.username)
Appreciate any suggestions in this regard.
Thanks,
Soumya
[This post has been edited by a Moderator to merge two posts.]
05/22/2023 01:35 PM
@Soumyaprateek Try below logic in if-else block with groovy as expression language
entitlement.customproperty15.split(',')[0].split('=')[1] == requestedby.username
05/22/2023 02:19 PM
Any error in logs ?