0 votes

Hi. I'm hoping this will be an easy one but I've been looking all over the place for answer and can't seem to find it.

How do you create a unique username (sAMAccountName) using Adaxes? I can easily get the software to take firstname.lastname as the auto-generated value of a user name, but I can't seem to find a way to generate if a duplicate already exists.

i.e. Jim Smith would be jim.smith
If another Jim Smith was to join the domain, I need Adaxes to auto-generate j.smith (or jim.smith1)
At the moment, I just get told that user already exists in domain.

Thanks in advance for any pointers in the right place.

by (50 points)

1 Answer

0 votes
by (216k points)
selected by
Best answer

Hello,

You can accomplish the task with the help of Business Rules. A Business Rule triggered before user creation can check whether the username of a new user is unique and modify it, if necessary. Take a look at the following tutorial for instructions on how you can accomplish your task: http://www.adaxes.com/tutorials_Simplif ... Script.htm. In Example 2 on step 5 of the tutorial, you will find information on how to automatically add a digit if a username is not unique.

0

Perfect.

Excellent service btw.

Related questions

0 votes
1 answer

I need some help checking for unique usernames and changing them when they are found. I followed the tutorial and it looks like the script is working but as you can see the ... ("The username has been changed to " + $userLogonName ` + ".", "Information")

asked Mar 18, 2014 by Tigger09 (140 points)
0 votes
1 answer

Hi, One of our requirement is to automaticaly generate computer names, in a incremental way. For instance Computer0001 Computer0002 Computer0003 I was unable to do that with ... following error: Name is not specified for the new object Any idea is welcome.

asked Mar 19, 2013 by Pierre (750 points)
0 votes
1 answer

I’m looking for a way to take a unique number from Adaxes and use part of it to create an employee ID for the AD attribute field.

asked Dec 25, 2023 by cewilson (190 points)
0 votes
1 answer

Is it possible with ADAXES to change the username of a AD user? Ex: Changer esuser to LCMesuser?

asked Feb 7, 2013 by davkenrem (40 points)
0 votes
1 answer

Is it possible to create a business unit and have it auto populate with group owners in a specific OU. I've tried a few scripts to get propertie adm-managedbylist but none have worked so far.

asked 6 days ago by C27 (20 points)
3,549 questions
3,240 answers
8,232 comments
547,814 users