Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

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

 

How many sav roles user have?

use json instead of hql

https://forums.saviynt.com/t5/did-you-know/did-you-know-you-can-filter-who-can-request-view-approve-...


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

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
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.