No ratings
Darshanjain
Saviynt Employee
Saviynt Employee

Use Case

The use case is to exclude a few roles from getting evaluated completely as a part of the SOD Evaluation Job.

Pre-requisites

Role admin Access 


Solution


This can be achieved using the exclusion query in the functions table as follows:

 

select entitlement_values.ENTITLEMENT_VALUEKEY from entitlement_values where entitlement_values.ENTITLEMENT_VALUEKEY in (select entitlement_values.ENTITLEMENT_VALUEKEY from roles, role_entitlements where roles.ROLEKEY= role_entitlements.ROLEKEY and role_entitlements.ENTITLEMENT_VALUEKEY= entitlement_values.ENTITLEMENT_VALUEKEY and roles.ROLETYPE=3)

 

In the above query, ROLETYPE=3 refers to the Firefighter Roles as the customer wanted to exclude the firefighter ones from getting evaluated.

 

Please note that exclusion query needs to be populated for all the functions in a particular ruleset and that can be achieved by writing a custom query as follows:

 

UPDATE `functions` SET `EXCLUSIONQRY` = 'select entitlement_values.ENTITLEMENT_VALUEKEY from entitlement_values where entitlement_values.ENTITLEMENT_VALUEKEY in (select entitlement_values.ENTITLEMENT_VALUEKEY from roles, role_entitlements where roles.ROLEKEY= role_entitlements.ROLEKEY and role_entitlements.ENTITLEMENT_VALUEKEY= entitlement_values.ENTITLEMENT_VALUEKEY and roles.ROLETYPE=3' WHERE (`FUNCTIONKEY` = '331');

 

You can define the functionkeys from a particular ruleset in the custom query above.

 

Please refer to the screenshots below:

 

 
ahD8WaOyxCagoah3f0CjrjZrm7aMGqcEDw.png

Suspww6V2UQFk_Yf1L7V0-zUiC-kFlTLbQ.png

Comments
rushikeshvartak
All-Star
All-Star
  • Can we update from Ui ?
  • Can we have SoD based on wildcard entitlement name
Version history
Last update:
‎07/24/2023 02:03 PM
Updated by:
Contributors