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 (1.1k points)

1 Answer

0 votes
by (216k 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 (110 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 (520 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, 2020 by adantona (40 points)
0 votes
1 answer

Hello, We are currently allowing users to submit requests for new user accounts within the domain. By default, the logon name is being formatted as %firstname%.%lastname% However this ... pre-Windows-2000 user logon name. Is there a way to work around this?

asked Dec 11, 2020 by sirslimjim (480 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 (780 points)
3,589 questions
3,278 answers
8,303 comments
548,130 users