and more in a single search tool across platforms. Read the announcement here. |
04/23/2023 09:59 AM
I have a requirement to auto approve an request when the following condition is met:
query entitlement.customproperty16 (which stores name of entitlement), whose user account is requested by then auto approve
example: user1 rquests access for usera for access1
access1.CP16 stores entitlement value (access2) if access2's user accounts = user1 then the request should auto approve
i tired using the below in the if esle condition and getting unexpected error.
com.saviynt.ecm.identitywarehouse.domain.account_entitlements1.executeQuery("select ua.userkey from account_entitlements1 ae1 left join entitlement_values ev on ae1.entitlement_valuekey = ev.entitlement_valuekey left join user_accounts ua on ua.accountkey = ae1.accountkey left join users u on ua.userkey = u.userkey left join accounts a on ua.accountkey = a.accountkey where u.employeetype != 'service' and a.endpointkey = 10 AND ev.displayname= 'entitlement?.customproperty16' AND u.username='requestedby?.username'")?.size() != 0)
Unexpected error occurred..a different object with the same identifier value was already associated with the session: [com.saviynt.ecm.workflow.ARS_Requests#XXXXXX]; nested exception is org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.saviynt.ecm.workflow.ARS_Requests#XXXXX]
04/23/2023 03:02 PM
You can’t use custom query in if else block
04/23/2023 03:04 PM
Thanks for the response. how best can i achieve this? any suggestions.
04/23/2023 03:05 PM
Can you rephrase statement not able to understand requirements
04/23/2023 03:18 PM
If the requestedby user is one of the user_account of an entitlement that is mentioned in the customproperty16 of the acess request, then the grant access
04/23/2023 03:19 PM
Please confirm
requestby.username=entitlement.cp16 ?
04/23/2023 03:22 PM
We are not storing user name information in cp16. we are storing a different entitment_value
04/23/2023 03:31 PM
to elaborate further : user-a (one of the rank owner) of entitlement (entitlement1), entitlement1's CP16 is entitlement2 and entitlement2 is assigned to user-a.
In the above scenario, if user-a is requesting access(entitlement1), then it should grant access
04/23/2023 04:37 PM
You need to use dyanmic attributes to meet your requirements
04/23/2023 04:43 PM
Can you share some examples? What are dynamic attributes? I am new to Saviynt platform
04/23/2023 04:49 PM
https://docs.saviyntcloud.com/bundle/EIC-User-v2021x/page/Content/03-mang-accs/ars-req-acc.htm