Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/09/2024 12:34 PM
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?
08/09/2024 12:45 PM
You can perform from a preprocessor.
08/09/2024 12:46 PM
Hi @asp if you have a attribute in AD which stores a contractor value.
You can directly map it to emoloyeetype attribute in saviynt.
08/09/2024 12:48 PM
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?
08/09/2024 12:49 PM
@asp then no, you have to use preprocessor.
08/09/2024 12:51 PM
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.
08/09/2024 12:52 PM
Yes but add where clause to make sure its added only for contractor users.
08/09/2024 12:58 PM
@asp update query so that it only runs for contactor and not other ID, otherwise it will hamper the system.
08/09/2024 01:02 PM
Oh yes, good catch!
08/12/2024 05:11 AM
✅Please click the 'Accept As Solution' button on the reply (or replies) that best answered your original question and hit 'Kudos' button 👍.