and more in a single search tool across platforms. Read the announcement here. |
on 04/05/2023 01:32 PM
How to restrict ModifyUserDataJSON of UserImport to only a set of users based on user conditions?
v2020.x and above
The user should have ROLE_ADMIN sav role to configure the User Import Connector
The PREPROCESSQUERIES in ModifyuserdataJSON should include a where clause based on the data that needs to be modified with the preprocessor query.
Example : Customproperty45 needs to be updated with value 'Licensed Status' for users whose username begins with a36803. The below JSON can be used
{
"ADDITIONALTABLES":{"USERS": "SELECT username, CUSTOMPROPERTY45 from USERS'"},
"COMPUTEDCOLUMNS": ["CUSTOMPROPERTY45","USERNAME"],
"TABLEINDEXES": {
"currentusers": ["username"]
},
"PREPROCESSQUERIES": ["UPDATE NEWUSERDATA SET NEWUSERDATA.CUSTOMPROPERTY45 = 'Licensed Status' where NEWUSERDATA.username like 'a36803%'"]
}