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

Use Case

 

Using actionable analytics to provision and de-provision assignments of SAV Roles.

 

Pre-requisites


NA

Applicable Version(s)


All
 

Solution

 

  • Saviynt has the capability to use the actionable analytics feature to provision and de-provision assignments to SAV Roles.
  • Once the analytic report is scheduled, the analytics query and allowed action will be used to process the users who should be provisioned or de-provisioned with access to the SAV Roles defined in the analytics report. 
  • The tasks created by the analytics report will then be picked up by the WSRETRY to complete the final stage of provisioning or de-provisioning.
  • Whilst there are many options to allow for user assignment to SAV Roles within Saviynt, this approach offers good flexibility and uses standard Saviynt components.

The example provided is for ROLE_MANAGER, but the same can be used for other SAV Roles with some minor updates to the SQL to change the conditions.

 

Steps to Implement: 

 

Step 1 - Create Provisioning Analytic Report:

  1. Navigate to Analytics > Analytics Configuration List 
  2. Click Create New Analytics > Using SQL Query
  3. Complete the following information:

 

Parameter

Description

Analytics Name

Sav Role Assignment (ROLE_MANAGER)

Analytics Query

select

distinct u1.USERNAME, u1.FIRSTNAME,u1.LASTNAME,u1.EMAIL,

case when u1.STATUSKEY=1 then 'Active' when u1.STATUSKEY=0 then 'Inactive' end as UserStatus,

u4.NAME,u5.ENDPOINTNAME,u6.ENTITLEMENTNAME,u7.ENTITLEMENT_VALUE,

'Provision Access' as Default_Action_For_Analytics,

u7.ENTITLEMENT_VALUEKEY as entvaluekey,

u4.ACCOUNTKEY as acctKey,

u4.NAME as accName,

u1.USERKEY as userKey

from users u1

join user_accounts u3 on u1.USERKEY=u3.USERKEY

join accounts u4 on u3.ACCOUNTKEY=u4.ACCOUNTKEY

join endpoints u5 on u4.ENDPOINTKEY=u5.ENDPOINTKEY

join entitlement_types u6 on u5.ENDPOINTKEY=u6.ENDPOINTKEY

join entitlement_values u7 on u6.ENTITLEMENTTYPEKEY=u7.ENTITLEMENTTYPEKEY

where u1.userkey in (SELECT DISTINCT MANAGER FROM users)

and not exists (

select distinct usr1.USERKEY

from user_savroles usr1

join savroles usr2 on usr1.ROLEKEY=usr2.ROLEKEY

where usr2.ROLENAME='ROLE_MANAGER'

and usr1.USERKEY=u1.USERKEY

)

and u5.ENDPOINTNAME='SSM'

and u6.ENTITLEMENTNAME='SAVRole'

and u7.ENTITLEMENT_VALUE='ROLE_MANAGER'

and u1.statuskey=1

and u7.status=1;

Description

For all managers add the default ROLE_MANAGER SAV Role

Allowed Action

Provision Access

Category

Sav Role Assignment Automation

Sub Category

SAV Roles

Risk

Low

Context

None

   4. Click Create

 

Step 2 - Create Deprovisioning Analytic Report:

  1. Navigate to Analytics > Analytics Configuration List 
  2. Click Create New Analytics > Using SQL Query
  3. Complete the following information:

 

Parameter

Description

Analytics Name

Sav Role Revocation(ROLE_MANAGER)

Analytics Query

select

 distinct u1.USERNAME, u1.FIRSTNAME,u1.LASTNAME,u1.EMAIL,

 case when u1.STATUSKEY=1 then 'Active' when u1.STATUSKEY=0 then 'Inactive' end as UserStatus,

 u4.NAME,u5.ENDPOINTNAME,u6.ENTITLEMENTNAME,u7.ENTITLEMENT_VALUE,

 'Deprovision Access' as Default_Action_For_Analytics,

 u7.ENTITLEMENT_VALUEKEY as entvaluekey,

 u4.ACCOUNTKEY as acctKey,

 u4.NAME as accName,

 u1.USERKEY as userKey

 from users u1

 join user_accounts u3 on u1.USERKEY=u3.USERKEY

 join accounts u4 on u3.ACCOUNTKEY=u4.ACCOUNTKEY

 join endpoints u5 on (u4.ENDPOINTKEY=u5.ENDPOINTKEY and u5.ENDPOINTNAME ='SSM')

 join entitlement_types u6 on (u5.ENDPOINTKEY=u6.ENDPOINTKEY and u6.EntitlementName ='SAVRole')

 join entitlement_values u7 on (u6.ENTITLEMENTTYPEKEY=u7.ENTITLEMENTTYPEKEY and u7.entitlement_Value ='ROLE_MANAGER')

 where not exists (SELECT MANAGER FROM users where manager = u1.userkey)

 and u1.userkey in (

 select usr1.USERKEY

 from user_savroles usr1

 join savroles usr2 on (usr1.ROLEKEY=usr2.ROLEKEY and usr2.RoleName = 'ROLE_MANAGER')

 );

Description

Remove Sav Role for Managers if users are no longer managers

Allowed Action

Deprovision Access

Category

Sav Role Assignment Automation

Sub Category

SAV Roles

Risk

Low

Context

None

      4. Click Create

 

Step 3 - Schedule Analytic Reports:

  1. Navigate to Admin > Job Control Panel
  2. Click Add New Job
  3. Complete the following fields:

 

Parameter

Description

Job Name

SAV_ROLES_ASSIGNMENT_AUTOMATION

Job Type

Run all Analytics-v2 (AnalyticsESJob)

Analytics Categories

Sav Role Assignment Automation

Analytics Subcategories

SAV ROLES

Execute Default Action for Analytics

Checked

Cron Expression

Either include as part of a chain job or schedule individually as per the customer's requirement.

       4. Click Save
 

References


https://docs.saviyntcloud.com/bundle/EIC-Admin-v2022x/page/Content/Chapter17-EIC-Analytics/Creating-... 

Comments
JohnLawson
Regular Contributor
Regular Contributor

@Rishi @sudeshjaiswal 

We are on 23.12 and no SAV roles (custom or ootb) show up in entitlement_values. We also do not have an endpoint named 'IGA'. Is this normal or is this no longer possible in 23.12? 

void0703
New Contributor III
New Contributor III

When Deprovision an savrole why do we need to pass the entitlement value key to what is the reason for that?

puneetkhullar
Saviynt Employee
Saviynt Employee

@void0703 @JohnLawson  You need to first configure Saviynt for Saviynt from Global Configuration to make it work. Once you configure it from the Global configuartion, it will import your SAVRole as entitlement. Then only you can use this feature. 

JohnLawson
Regular Contributor
Regular Contributor

@puneetkhullar Does it require setting up a SAV4SAV connection or just enabling the configuration allowing SAV4SAV?

Are there documents on importing the SAVRoles if a connector is required?

Thank you!

Dayana
New Contributor
New Contributor

@puneetkhullar 

Once you try to enable Saviynt For Saviynt, this screen appears. How do we need to configure it?

Dayana_0-1713366414933.png

Besides, what are the consequences of activating it? I say this because of the message that appears that it cannot be disabled. I'm trying in QA but then we will move to production and do not know if we want to configure the system like that.

Is there no other way to do that?

Thank you in advance.

Version history
Last update:
‎05/01/2023 07:11 AM
Updated by:
Contributors