Modify Active Directory User Action

Declaration

<AMMODIFYADUSER LDAPPATH="text" ACTION="text" NEWUSERNAME "text"
NEWUSERPASSWORD "text" USERNAME="text" PASSWORD="text"/>

See Also

Modify AD User-Setting Properties, Modify AD Group Action, Create AD Group Action

Description

Enables, disables or renames an existing Active Directory user.  This action can also be used to change the password of an Active Directory user.

Practical Usage

See Description.

Parameters

General Tab

Path

Text, Required
MARKUP: LDAPPATH="LDAP://networkautomation.com/CN=Tac Shore,OU=Sales,OU=Network Automation Employees,DC=networkautomation,DC=com"

 

Allows you to enter the LDAP path of active directory user you want to modify. You can also select user by clicking on Select User button. When you do, this launches a standard Windows Active Directory dialog box that allows you to select the user.

Action

Text [options], Optional - Default "Enable"
MARKUP: ACTION="RENAME"

Allows you to enter the action you want to perform on the active directory user.

The available options are:

Note:  Only available if you select Rename option in Action combo box.

New user name

Text, Required
MARKUP: NEWUSERNAME="Ron"

Allows you to enter the new name of active directory user.

Only available if you select Rename option in Action dropdown.

New Password

Text, Required
MARKUP: NEWPASSWORD="password"

Allows you to enter the new password for active directory user.

Only available if you select Reset Password option in Action dropdown.

Select Container     

Click this to select the parent container from the domain.

Credentials Tab

Username

Text, Optional
MARKUP: USERNAME="username"

Specifies the username of the Active Directory user

Password

Text, Optional
MARKUP: PASSWORD="password"

Specifies the password of the Active Directory user.

NOTE: Leave the Username and Password fields blank in order to use the logon user's credentials. If only accessing Active Directory information, then any Domain user is valid. However, a Domain Administrator is required in order to modify an Active Directory user or group. We recommend using the credentials of a Domain Administrator for all AutoMate Active Directory actions.

See the following link for more information about LDAP.

http://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol

Notes

Custom Description

This action includes the Description tab for entering a custom step description.

More on setting custom step description

Standard Error Handling Options

This action also includes the standard Error Causes and On Error failure handling options/tabs.

More on Error Handling Options

Variables and Expressions

All text fields allow the use of expressions, which can be entered by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by pressing F2.

More on variables
More on expressions

More on the expression builder

Example

NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.

<AMMODIFYADUSER LDAPPATH="LDAP://networkautomation.com/CN=AutoUser,OU=Development,OU=Network Automation Employees,DC=networkautomation,DC=com" ACTION="RESETPWD" NEWPASSWORD="Wonderland" />