and more in a single search tool across platforms. Read the announcement here. |
05/10/2024
05:18 AM
- last edited on
05/13/2024
02:33 AM
by
Sunil
Hi,
we need to generate sysytemusername with capital N followed by 6 digit random numbers padded with zeros, for this we made global config with SELECT concat(UPPER('N'),(FLOOR(RAND()*1000000))),
but their is one more use case
If the users.csv file is uploaded in Saviynt twice with Same user details, It is creating New Systemusername every time.
The need is " If the user has Systemusername in Saviynt, it should not create a new Systemusername for the user. It should create Systemusername only when User doesn't have systemusername in Saviynt".
We tried with below preprocessor queries to achieve the use case but did not work
1.{
}2.{
}
[This message has been edited by moderator to move a reply comment to his own new post]
05/13/2024 11:23 AM
Hi @VisveswaraReddy ,
try below once..
{
"ADDITIONALTABLES": {
"USERS": "SELECT USERKEY,USERNAME,CUSTOMPROPERTY6,STATUSKEY,SYSTEMUSERNAME FROM USERS"
}, "COMPUTEDCOLUMNS": [
"CUSTOMPROPERTY51"
], "PREPROCESSQUERIES": [
"UPDATE NEWUSERDATA NU SET NU.CUSTOMPROPERTY51=(SELECT U.SYSTEMUSERNAME FROM CURRENTUSERS U where U.USERNAME=NU.USERNAME AND U.SYSTEMUSERNAME IS NOT NULL)"
]
}
replace cp51 with systemusername
05/13/2024 04:11 PM
{
"ADDITIONALTABLES": {
"USERS": "SELECT USERKEY,USERNAME,CUSTOMPROPERTY6,STATUSKEY,SYSTEMUSERNAME FROM USERS"
}, "COMPUTEDCOLUMNS": [
"SYSTEMUSERNAME"
], "PREPROCESSQUERIES": [
"UPDATE NEWUSERDATA NU SET NU.SYSTEMUSERNAME=(SELECT U.SYSTEMUSERNAME FROM CURRENTUSERS U where U.USERNAME=NU.USERNAME AND U.SYSTEMUSERNAME IS NOT NULL)"
]
}