Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Hardcode user attribute during import

asp
Regular Contributor
Regular Contributor

Hi all,

We are setting up a user import for contractors from AD from a special OU and would need to hardcode the 'employeeclass' to map to 'Contractor'. What is the correct syntax for the userimportjson for this? Or is this something that we would need a inline preprocessor? 

9 REPLIES 9

rushikeshvartak
All-Star
All-Star

You can perform from a preprocessor.


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

NM
Honored Contributor II
Honored Contributor II

Hi @asp if you have a attribute in AD which stores a contractor value.

You can directly map it to emoloyeetype attribute in saviynt.

asp
Regular Contributor
Regular Contributor

Its not set on any AD attribute. Basically, we are pulling from a special OU. Everyone in that OU, is  a contractor. So, is inline preprocessor my only option? I can't set just the employeeclass directly to 'Contractor' in the 'user_attribute' json for the connection?

NM
Honored Contributor II
Honored Contributor II

@asp then no, you have to use preprocessor.

asp
Regular Contributor
Regular Contributor

Ok..so just something like this - 

{"ADDITIONALTABLES":{"USERS":"SELECT USERKEY FROM USERS"},
"COMPUTEDCOLUMNS":["employeeclass"],
"PREPROCESSQUERIES":["UPDATE NEWUSERDATA SET employeeclass = 'Contractor'"]}

 

Thank you @NM  and @rushikeshvartak , appreciate all the help. 

Yes but add where clause to make sure its added only for contractor users.


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

NM
Honored Contributor II
Honored Contributor II

@asp update query so that it only runs for contactor and not other ID, otherwise it will hamper the system.

asp
Regular Contributor
Regular Contributor

Oh yes, good catch!

Please click the 'Accept As Solution' button on the reply (or replies) that best answered your original question and hit 'Kudos' button 👍.


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.