and more in a single search tool across platforms. Read the announcement here. |
11/14/2023 08:06 PM
Hi Team,
We have created a query to replace all the special characters in system username and email generation logic. Saviynt is replacing all special characters but not replacing less than and greater than (<>) and it is taking as lt & gt respectively.
Below is the code we are using to replace the characters:
replace(replace(replace(replace(replace((replace(users.lastname,'@','')),'_',''),'-',''),'"',''),'.',''),'<>','')
Could you please help how we can replace these (<>) characters.
Thanks
11/14/2023 09:48 PM
Hello @Ajit,
Could you please try use the below function and see if it works for you,
replace(replace(replace(replace(replace((replace(replace(users.lastname,'<',''),'>','')),'@','')),'_',''),'-',''),'"',''),'.','')
11/14/2023 11:48 PM
Hi @sudeshjaiswal ,
Thanks for the response, tried but it's not generating the system username, and also tried with below code but still the issue is same
replace(replace(replace(replace(replace(replace((replace(users.lastname,'<','')),'>',''),'-',''),'"',''),'.',''),'@',''),'_','')
11/14/2023 11:51 PM
Hello @Ajit,
Can you please try using the translate function in the query:
replace(replace(replace(replace(replace(replace((replace(users.lastname,'@','')),'_',''),'-',''),'"',''),'.',''), TRANSLATE(users.lastname, '<>', ''),'')
Also please traced the logs and share the log snippet.
Thanks.
11/15/2023 01:32 AM - edited 11/15/2023 01:50 AM
Hi @sudeshjaiswal ,
Please find the code we tried:
concat(replace(replace(replace(replace(replace((replace(users.lastname,'@','')),'_',''),'-',''),'"',''),'.',''), TRANSLATE(users.lastname, '<>', ''),''), replace(replace(replace(replace((replace((SUBSTRING(users.firstname,1,1)),'@','')),'_',''),'-',''),'"',''),'.',''), '@xyz.com')
Error in the logs:
Please let us know if we are missing anything.
Thanks
11/15/2023 09:45 AM
Hello @Ajit,
Did you try to use the same in Modifyuserdatajson during import instead of system username generation rule.
Thanks