and more in a single search tool across platforms. Read the announcement here. |
10/16/2023 08:37 AM
Hi,
We are trying to populate the enterprise roles if the roles metadata match the identity metadata. For eg. we want to show the roles If roles.customproperty10 matches with users. orgunitid. We are using the below query, but it is not working for us in EIC V23.7.
(and rl.customproperty10 in (select users.orgunitid from Users users where users.id={currentUser}))
Forum Reference: https://forums.saviynt.com/t5/general-discussions/request-roles-query-to-filter-roles-based-on-reque...
Could you please let me know what could be the issue here?
Thanks!
Solved! Go to Solution.
10/16/2023 09:38 AM
@Bharadwaj : What is the behaviour when you say it is not working? It is showing all roles? or not showing anything?
Also is there any error in logs?
Also can you try below query as well
and rl.customproperty10 = (select users.orgunitid from Users users where users.id={currentUser} and users.orgunitid is not null)
10/17/2023 07:25 AM
This worked. I missed to do the null check. Thanks for your help!
10/16/2023 10:27 PM
@Bharadwaj can you try checking this article :
Use case of Request Roles Query (saviyntcloud.com)