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

AD Account Creation - Match sAMAccountName and mail/UPN

aalvarez_mk
New Contributor II
New Contributor II

I have a requirement to match the format of sAMAccountName and mail/upn prefix when generating an AD account. Currently, sAMAccountName is mapped to systemusername (SystemUsername Generation logic attached) and mail/UPN mapped to Email (also attached).

We have a need when creating AD account for upn and mail to match the systemUsername format. Currently, it is possible to provision someone an AD account with the following data.

sAMAccountName: Gus.T.Martinez

mail/UPN: Gus.Martinez@mydomain.com

Is there a way to ensure that the sAM and mail/UPN align?

Intended mail/UPN: Gus.T.Martinez@mydomain.com

I have thought of omitting systemusername and email from the identity and using CHECKFORUNIQUE in the AD connection itself, but still don't see that resolving my issue.

4 REPLIES 4

rushikeshvartak
All-Star
All-Star

You can use preprocessor to copy systemusername to email while importing user


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

The only issue is we need to mirror the format, but not necessarily the value directly. We have a char limit on sAMAccountName (systemusername) but we don't have that restriction on email, so it may be different but I need the format to match. Basically here are the things I'll need to key on when building the email.

- Is Middle initial included in systemusername? first.mi.last

- Is there a number at the end of systemusername? first.last2

Based on those possible cases, it will generate the email. How could we determine if one of those cases is met in the preprocessor?

You will have access to database tables and you should be able to check same.


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

Our users are being created via Saviynt API from a SNOW form, so we would not have access to a preprocessor.