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

UserName to be copied in CP field

vivekrajan1
New Contributor III
New Contributor III

Hi Team,

We are importing User details(FN,LN,Email etc) from HR systems, and Saviynt creates Username using UserNameGeneration Rule. At the same time I need to copy the generated UserName into user's CP15.

Is it possible to copy the username to CP15 field during user onboarding?

I was checking Enhanced Query Job, but it will not check USERS table.

Is this scenario possible using Preprocessor Query in ModifyUserDataJson? If yes, Could you please give me a example.

16 REPLIES 16

NM
Honored Contributor III
Honored Contributor III

@vivekrajan1 yes preprocessor should work .

Sample 

SET NEWUSERUSERDATA.CUSTOMPROPERTY15=NEWUSEDATA.username


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

vivekrajan1
New Contributor III
New Contributor III

Thank you I will test this out,

1 last question, UserName Generation Rule will trigger only for the New Users and I could use preprocessor query to Copy the value to CP15.

If I use Preprocessor query to create UserName, is it possible to copy Username to CP15?

Thanks,

Vivek

NM
Honored Contributor III
Honored Contributor III

@vivekrajan1 yes just have cp15 set afterwards.


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

vivekrajan1
New Contributor III
New Contributor III

* If I donot use USERNAME in COMPUTEDCOLUMNS, then UserImportJob fails with this message,

Error in Users Import - Error while processing data: Unknown column 'NW.USERNAME' in 'field list'

* If I use USERNAME in COMPUTEDCOLUMNS, then UserName field becomes blank and UserID is not creating. Because Username is generated via UserNameGeneration Rule and not by Preprocessor. How do I overcome this?

{
"ADDITIONALTABLES":
{
"USERS":"SELECT USERNAME,customproperty15,FIRSTNAME,LASTNAME,email from users"
},
"COMPUTEDCOLUMNS":
[
"EMPLOYEEID","USERNAME"
],
"PREPROCESSQUERIES":
[
"UPDATE NEWUSERDATA NW SET NW.EMPLOYEEID=NW.USERNAME"
]
}

rushikeshvartak
All-Star
All-Star
  • How users are created ?

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

Users created through UserImport Job(REST Connector).

We create Username through UserNameGeneration Rule

  • what is business use case to copy username in cp

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

I want to copy Username and append with @domain.com in CP

  • You can use #CONST in rest connector mapping itself 

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

im not importing Username, but Im creating Username in Saviynt using UserNameGeneration Rule.

How do I use #CONST#method to copy UserNamevalue to a CP in ImportUserJSON? will it work?

NM
Honored Contributor III
Honored Contributor III

@vivekrajan1 try this 

"ADDITIONALTABLES":

{

"USERS":"SELECT USERNAME,customproperty15,FIRSTNAME,LASTNAME,email from users"

},

"COMPUTEDCOLUMNS":

[

"EMPLOYEEID"

],

"PREPROCESSQUERIES":

[

"UPDATE NEWUSERDATA NW SET NW.EMPLOYEEID=NW.USERNAME"

]

}


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

vivekrajan1
New Contributor III
New Contributor III

As mentioned, If I do not use "USERNAME" in "COMPUTEDCOLUMNS" im getting error.

vivekrajan1_0-1729863833405.png

If I use USERNAME in COMPUTEDCOLUMNS, then Username becomes blank, because I am not creating UserName in Preprocessor

@rushikeshvartak @NM  - is there a way to overcome this situation?

  • use technical rule use user update task and implement the logic

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

it means, i need to have CP15 mapping in ImportUserJson. And once user gets created, EIC will create a UpdateUser Task, then through WSRETRY job CP15 will be populated. 

Am I correct?

Yes


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

No


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