07/21/2023 07:25 PM - edited 07/21/2023 07:26 PM
We have a requirement to disable users based on a certain criteria by the support team. The support team currently does this using the user management form that has been developed using Global Config --> Identity Lifecycle --> User Registration
Now there is a requirement that such disabled IDs must be reactivated only by the user's manager(s). We have a SAV role ROLE_MANAGER defined which grants only managers access to the user management form. However, managers are able to see all the users in the company. The requirement is to restrict the view to only the manager's direct reports when the manager accesses the user management form.
How can this requirement be achieved in Saviynt?
07/21/2023 08:44 PM
You can modify gsp to block based on sav role
07/21/2023 08:49 PM
How do I access the gsp pages on v23.4?
07/21/2023 09:51 PM
From file directory
07/21/2023 11:32 PM
Hi @krecpond ,
Have you tried using the SAV Role Config "Whom to request" Advanced filter-JSON option
[{
"for": "RequestAccessforOthers",
"query": "select a from Users a where a.id='${users.id}'"
},
{
"for": "ViewExistingAccess",
"query": "select a from Users a where a.id=${users.id}"
},
{
"for": "UpdateUserRequest",
"query": "select a from Users a where a.manager='${users.id}'"
}
]
Understanding the SAV Role Parameters (saviyntcloud.com)
Thanks,
Armaan
07/22/2023 10:07 AM - edited 07/22/2023 10:07 AM
We currently have ROLE_USER set with the ability to request access for anyone in the company. So this permission was overriding the ROLE_MANAGER permission that was restricted to request access for self and direct reports thus displaying all 50K users to the user with SAV role ROLE_MANAGER.
When ROLE_USER was changed to allow access request for only self and direct reports and ROLE_MANAGER was allowed to see only a specific view in the drop down of the user management module (through the configurations in Global Config --> Identity Lifecycle --> User Registration form), I was able to address this requirement. I did not have to use any advanced filter configuration for this requirement.
The conclusion is that when users are provisioned to more than 1 SAV role, it is important to analyze the net access that the combination of the SAV roles provide to the user.
Thanks for all your help.
07/23/2023 09:34 PM
Use sav role advanced config on Whom to Request
Sample :
[{"for":"RequestAccessforOthers,RequestAccessOthersMultiUser","query":"select a from Users a where (a.manager=${users.id} and (a.customproperty1 is not null or a.customproperty1 !='' )) or (a.id = ${users.id} and (a.customproperty1 is not null or a.customproperty1 !='' ))"},{"for":"ViewExistingAccess","query":"select a from Users a where (a.manager=${users.id} and (a.customproperty1 is not null or a.customproperty1 !='' )) or (a.id = ${users.id} and (a.customproperty1 is not null or a.customproperty1 !='' ))"},{"for":"UpdateUserRequest","query":"select a from Users a,user_savroles us where a.id = ${users.id} and us.id=a.id and us.rolekey=1"}]
07/26/2023 02:20 PM
Thanks Rushikesh. This SAV Role configuration with JSON works for controlling the user list.
07/26/2023 02:54 PM
Great. close the thread by accepting solution
07/27/2023 10:43 PM - edited 07/27/2023 10:44 PM
The problem with using the above advanced config in the SAV role is that it does not show the tiles and links to request access for others and request access for multi users. So there is also no documentation on how to configure the remaining options in the JSON format.