Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/12/2024 09:50 AM
Hi all,
We have created a copy of the SAV role ROLE_SAV_MANAGER to make some changes to. One of the changes we want to make is to enable one-click disable for managers with this role and ONLY show the managers a list of their ACTIVE CONTRACTOR direct reports when they go to one-click disable.
In the "Whom to Request" setting of the SAV role's details, I am aware of the option "request for self and uses retrieved from advanced filter" that prompts you for an HQL or JSON query. Writing a query to select users of a specific employee type and active status is straightforward, but I am not sure what to add in the query to also ensure these active contractors are DIRECT REPORTS of the logged-in manager.
Any guidance would be helpful, thank you.
09/12/2024 09:55 AM
https://forums.saviynt.com/t5/tag/Whom%20to%20Request/tg-p
{"for": "OneClickDisable","query":"select a from Users a where
a.manager='${users.id}' and a.status=1 and a.employeetype='Contractor'"}]