0 votes

I'm having a hard time figuring out how to auto create usernames like such ABrown. I need the first and second letter to be cap. So first initial and last name work fine how i have it, but i cant figure out how to cap the first letter in last name...below is what i have now

%firstname:upper,1%%lastname:upper,1% which turns up Abrown

by (90 points)

1 Answer

0 votes
by (216k points)

Hello,

We recommend using the following expression: %firstname:upper,1%%lastname%. If this expression is used, the username will consist of the 1st letter of the first name (capitalized) plus the last name. If the last name starts with a capital letter, it will be capitalized.

Otherwise, if you need to force the first letter of the last name to be capitalized in the username, no matter which letter the last name starts with, you'll need to use a script and a Business Rule. If you want, we can help you with the script.

Related questions

0 votes
0 answers

We have a process to create unique usernames but it doesn't account for hyphens. We would like to remove the hyphens and continue to use first initial plus the first seven characters from the ... ($UNLT - 1), $UN.Length)) $UNName + ([int]$UNNum + 1) } } }

asked Dec 11, 2015 by tcarp (20 points)
0 votes
1 answer

I am trying to create a Script power Shell for creating users with a South American standard. I need to use the first part of firstname + the ... .TargetObject.Put("userPrincipalName", $userPrincipalName) # Aplica as mudanças $Context.TargetObject.SetInfo()

asked Feb 21 by victor.motta (20 points)
0 votes
1 answer

We are currently using the script below to check for a unique username/upn. If the name is not unique, it adds a number to the end. In the Adaxes logs, everything appears ... .LogMessage("The username has been changed to " + $uniqueUPN ` + ".", "Information")

asked Feb 14 by cewilson (300 points)
0 votes
1 answer

On the Create User form, I'm trying to set some predefined fields to prepopulate the Last Name and Username fields. If I set just the Username field, it works fine ... changed to 'svc_@domain1' How do I predefine both fields, but keep the domain as @domain2?

asked Nov 8, 2024 by jmatthews (210 points)
0 votes
1 answer

How I can ignore a part of the lastname in username composition? Example: In the fullname "John da Silva", "da Silva", is the lastname, so, I need ignore the "da " in the composition of username, when I create the new user.

asked May 22, 2024 by fgmello (40 points)
3,678 questions
3,361 answers
8,499 comments
549,339 users