Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/16/2024 05:22 AM
Hii,
The list of users under "View Existing Access" is decided based on the configuration "Whom to Request" in the SAV role configurations. Please use "Request for self and users retrieved from advanced filter" to restrict the users in same jobcodedesc or their reportee only.
I tried abover HQL query but achieve only one use case that same jobcodedes
1. select a from Users a where a.jobcodedesc='${users.jobcodedesc}' or a.owner=${users.id} or a.id=${users.id}
2. select a from Users a where a.jobcodedesc='${users.jobcodedesc}' or a.manager=${users.id}
I cannot achieve 2nd use case that their reportees also show in Request access for others, it only show same jobcodedesc user list. I want both the use case- 1. same jobcodedes 2. there reportees as well.
please suggest the solution.
05/16/2024 05:47 AM
@ankitalande need pass value in single quote
select a from Users a where a.jobcodedesc='${users.jobcodedesc}' or a.manager='${users.id}' or a.id='${users.id}'
05/16/2024 06:04 AM
Hi @ankitalande ,
You query is working fine for me. (Working 24.1)
select a from Users a where a.jobcodedesc='${users.jobcodedesc}' or a.manager=${users.id}
The above query covers, Same jobcodedes and User repartees as well.
Can you try it using JSON once:
[{"for":"RequestAccessforOthers,ViewExistingAccess,UpdateUserRequest,RequestAccessOthersMultiUser","query":"select a from Users a where a.jobcodedesc='${users.jobcodedesc}' or a.manager= ${users.id}"}]
If this helps your solution, please Accept As Solution and hit Kudos
05/16/2024 06:06 AM
working now. Thanks
05/16/2024 07:15 AM
@ankitalande - To help other users who may have a similar problem, please click the "Accept As Solution" button on the reply that best answered your question.