Restriction for " Whom to Request " in SAV Role

Puspanjali
New Contributor
New Contributor

 

Hi Team,

 

We have 2 kinds of employees PERMANENT and EXTERNAL

We created a role called "ROLE _MANAGER"

We want to restrict this manager role " Whom to Request " to only external accounts for whom the request is a manager 

 

This is the query we are using

select a from Users a where a.statuskey=1 and a.manager=${users.id} and a.employeeType = 'External'

Puspanjali_0-1671772979888.png

 

 

Can Team help me to improve the query so that manager can only request external accounts?

 

 

4 REPLIES 4

KirtiAjrot
Saviynt Employee
Saviynt Employee

Please try with the below: 

select a.id from Users a where a.statuskey=1 and a.manager='${users.id}' and a.employeeType = 'External'

KA

Hi Kirti

Your suggested query did not help.

Managers can still request PERMANENT employees, which were assigned to them.

Puspanjali_0-1671780633738.png

 

Can you confirm that manager has only ROLE_MANAGER? If not make sure that other SAV ROLES are not having any conflicting configuration.

If user has only Manager SAV Role then can you try to change the query like below

select a from Users a where a.statuskey=1 and a.manager=${user?.id} and a.employeeType = 'External'

 


Regards,
Saathvik