Applies to: Cayosoft Suspend 1.2.3.x or later.
Summary: This article describes how to configure suspend policy when user sAMAccountName is more than 20 characters.
ID: KB20190325-1
Configuration of suspend policy
-
Launch Active Directory Users and Computers
-
Right-click the user you wish to suspend and choose Suspend
-
Navigate to Update Attributes section
-
Click Add
-
On Attribute Modification form click Browse and select sAMAccountName attribute
-
Select Set to specified value
-
Set z-$date("MMdd")$object.AttributeValue(sAMAccountName,CharactersNum,0) - when user is suspended, this expression will modify the sAMAccountName attribute:
-
"z-" prefix, any string value - optional
-
$date("MMdd") - month and date of suspend operation, optional
-
CharactersNum - the number of characters taken from the sAMAccountName attribute
-
0 - characters are taken from the beginning of sAMAccountName attribute; 1 - characters taken from the end of sAMAccountName attribute.
-
Example: User sAMAccountName is Long.SamAccountName.
When z-$date("MMdd")$object.AttributeValue(sAMAccountName,14,0) expression is applied, new sAMAccountName is z-0325Long.SamAccoun.
Comments
0 comments
Please sign in to leave a comment.