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

Any method to check the system username generation code?

AshishDas
Regular Contributor II
Regular Contributor II

Hi,

Is there any other way to check the system username generation code that we have written, instead of creating a user everytime?

We have a lot of use cases in our system username generation code, and to test all of it, we may have to create a lot of users.

Just as how we can test email generation via User Update rules and username generation by attaching a workflow to create user form, and then rejecting the approval so that too many redundant users do not get created.

Is there any such method to test the system username generation?

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

You can create test user and test


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

pruthvi_t
Saviynt Employee
Saviynt Employee

Since you're trying to check if the system username is getting generated on not, kindly try to use the same logic in email generation rule and concat the domain part. Trigger the email generation rule through user update rule for a test user. Once the email is generated, validate the pre- domain part of the email got generated as per your logic or not. EX: if email generated is abc@test.com, validate if 'abc' is generated as per your system username generation logic used. 

Please try if this approach serves the purpose instead of creating new user every time you're testing the system username generation logic.

Thanks

 


Regards,
Pruthvi