0 votes

Due to some of the systems we have, we must limit our logon names to 8 characters.

When I set the Value Length to Maximum 8, the result when creating a new account is that the long name gets autopopulated, but when clicking "next", I get a popup "Invalid Value Length".

Is there a way to autopopulate with only 8 characters?

by (4.8k points)

1 Answer

0 votes
by (215k points)

Hello,

I suggest that you check logon name length not with a Property Pattern, but with a Business Rule. You can create a Business Rule executed before creating a user that will check the logon name of the new user. If the logon name is longer than the limit, the Business Rule will truncate it to the required length.

To accomplish this task, use the Validate/Modify User Input Using a Script Tutorial as a guide. In Example 2 of the 5th step of the tutorial, you will find a PowerShell script that checks the value of the User Logon Name (pre-Windows 2000) property and modifies it. In Example 4, you will find a PowerShell script that checks value length. If you need assistance with the actual script that you need, we can help you.

Related questions

0 votes
0 answers

I have followed the tutorial on how to set an addresses based on the Office field. http://www.adaxes.com/tutorials_Simplif ... Office.htm The scenario is that for employees I ... g only let them be edited if there if a values such as "Contractor" is selected?

asked Aug 11, 2016 by jscovill (520 points)
0 votes
1 answer

I recently upgraded to version 2013.1 and since then a create user action on my help desk website no longer adds the @domainname.com to the User logon name field. ... there Exchange will not create the mailbox. Any help with this issue is appreciated. Thanks

asked May 13, 2013 by bemho (3.8k points)
0 votes
1 answer

Hello, I hope someone can help me with a specific script. I have tried to put 2 or 3 together that I have found on here but not having much luck. I am looking to have a ... -upn, but it doesn't seesm to be quite what I'm after. Any help would be appreciated.

asked May 20 by adantona (450 points)
0 votes
1 answer

It is possible to automatically create the logon name based on eg %firstname% and %lastname%, however I want to achieve the following: logon name = first letter FirstName, first ... account where that field is used for. How to achieve this? With regards, Remco

asked Nov 21, 2013 by RTiel (5.3k points)
0 votes
1 answer

I was wondering if it'd be possible to incorporate a property pattern rule for creating groups in specific containers. For example, say I have a container called ... Tubular, and the groups created under these containers would be named accordingly. Thanks!

asked Jul 7, 2012 by Legit (850 points)
2,288 questions
2,043 answers
5,580 comments
55,040 users