0 votes

Hi, I want to know how do i create an AD user whose UPN address is directly associated with the country. eg if i enter the country of the user india then he should have it as user@company.in and turkey user@company.tr and others countries have .com

Currently i have %samAccountName%@%adm-CustomAttributeText1%, which takes .com for everyone.

Or i can also associate it with company, example if i select the company India pvt limited then the UPN logon name should automatically be comapny.in and if i select company Istabbul tekd then automatically comapny.tk

thank you.

by (80 points)

1 Answer

0 votes
by (294k points)

Hello,

Do you have users with different countries located in specific OUs? If so, you can create a separate property pattern for each of the OUs specifying a UPN default value with the required suffix. image.png If users with different countries can be located in the same OU, the desired behavior can be achieve using a script executed in a business rule triggering Before creating a user. The following tutorial should be helpful: https://www.adaxes.com/tutorials_SimplifyingDataEntry_ValidateModifyUserInputWithScript.htm.

How to change the UPN in "before user creation"?

Related questions

0 votes
1 answer

I have a Powershell script running as a schedule task that is exporting user records. I have a custom attribute, positionPrimarySupervisor, that contains the DN of the user's ... supervisor. Can you provide me a script to get the information. Thanks... Sandra

asked Oct 8, 2015 by sandramnc (870 points)
0 votes
0 answers

When the UPN being created is the same as an existing one except for the case. For instance, the new UPN is sally.fields but there's an existing Sally.Fields. The ... but then fails to create the AD account indicating that the UPN is not unique forestwide.

asked Jul 13, 2022 by sandramnc (870 points)
0 votes
1 answer

We're trying to setup a new action in our Web interface that runs on User's that are currently in an OU called 'New Starters' that is in all of our domains (An ... no results, There are no other fields we can use that are unique to accounts in those OUs

asked Feb 7, 2020 by richarddewis (260 points)
0 votes
1 answer

This message is displaying inside the Office 365 properties for every user on this account/domain. Multi-Factor Authentication is disabled on the tenant account and I am able ... domains that are working with O365 without issue on the same servers as well.

asked Oct 24, 2019 by jhutchinson (20 points)
3,589 questions
3,278 answers
8,303 comments
548,122 users