Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/11/2022 09:43 PM
I have a DEV environment in which i am trying to add ROLE_SAV_ENDUSER as Default role for newly onboarded user.
I am trying to do it via technical rule as i do have Saviynt 2 Saviynt conection created.
Please let me know, if i am missing something.
09/12/2022 02:37 AM - edited 09/12/2022 02:37 AM
Share technical rule details & which type of import job are you using database ? You can specify in xml below things
<checkRules>true</checkRules>
<zeroDayProvisioning>true</zeroDayProvisioning>
link https://saviynt.freshdesk.com/support/solutions/articles/43000617705-database-connector-guide
09/12/2022 02:48 AM
Hello Rushikesh,
Thanks for replying.
Here is the technical rule:
Action:
Under Saviynt to Saviynt 2 connection, i am using following code (USERIMPORT)
</sql-query>
<importsettings>
<zeroDayProvisioning>true</zeroDayProvisioning>
<userNotInFileAction>NOACTION</userNotInFileAction>
<checkRules>true</checkRules>
<buildUserMap>true</buildUserMap>
<userReconcillationField>username</userReconcillationField>
09/12/2022 02:52 AM
You have add 2 user type in one condition add more row & add other condition.
Or advance query
a.statuskey =1 and a.employeetype in ('Contractor', 'Contingent Worker')
09/12/2022 03:05 AM
Try below in xml
<mapper description="This is the mapping field for Saviynt Field name" defaultrole="ROLE_SAV_ENDUSER" dateformat="date">
09/12/2022 03:10 AM
Under Saviynt to saviynt 2 connection, this is already there:
</importsettings>
<mapper description="This is the mapping field for SAviynt Field name" defaultrole="ROLE_SAV_ENDUSER">
09/12/2022 02:56 AM
Employee type is coming as "Contingent Worker / Contractor" from HR system.
09/12/2022 03:02 AM
Share logs when import is ran..
Does data analyzer return output when
Below query ran
Select username from users a where
a.statuskey =1 and a.employeetype in ('Contingent Worker / Contractor')
09/12/2022 03:06 AM
Yes, above-said query shows result in data analyzer.
09/14/2022 04:00 AM
Share full xml & rule & job logs
09/13/2022 11:08 PM
Hi @Vinit556
Ensure that your rule is meant to trigger when user is updated from Import in the rule settings. Then once you run the import, check user history to see if the rule is getting evaluated?