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

MODIFYUSERJSON for LDAP connection

prachi
Regular Contributor II
Regular Contributor II

Hi,

We have a LDAP connection, which we are using the import users.

I am trying to also have preprocessor query in import users in MODIFYUSERJSON which is :

{
"ADDITIONALTABLES": {
"USERS": "SELECT username,employeeType FROM USERS"
},
"COMPUTEDCOLUMNS": [
"employeeType"
],
"PREPROCESSQUERIES": [
"UPDATE NEWUSERDATA SET NEWUSERDATA.employeeType = 'Internal'"
]
}

but this is not working.

Any inputs/sugesstion on what could be wrong here?

 

4 REPLIES 4

adarshk
Saviynt Employee
Saviynt Employee

Please use the below JSON. If you are testing it through CSV upload, make sure you have the json populated during import. 

{
"ADDITIONALTABLES": {
"USERS": "SELECT username,employeeType FROM USERS"
},
"COMPUTEDCOLUMNS": [
"username,employeeType"
],
"PREPROCESSQUERIES": [
"UPDATE NEWUSERDATA SET NEWUSERDATA.employeeType = 'Internal'"
]
}

Per the query written here, if the requirement is to have employeeType for all the imported users mapped to 'Internal' then this can better be achieved from Import JSON(mappig employeeType to 'Internal') than introducing MODIFYUSERJSONDATA. 

prachi
Regular Contributor II
Regular Contributor II

HI,

I am trying to hard code the value in USER_IMPORT JSON but it is giving error :

{EMPLOTEETYPE::'Internal'#String}

adarshk
Saviynt Employee
Saviynt Employee

Try this: 
employeeType::Internal#SavData

prachi
Regular Contributor II
Regular Contributor II

Thanks this is working!!