Create Active Directory User Action

Declaration

<CREATEADUSER LDAPPATH="text" USER="text" EMAIL="text" FIRSTNAME="text" LASTNAME="text" NEWPASSWORD="text" MUSTCHANGEPASSWORD="text [options]" USERNAME="text" PASSWORD="text"/>

See Also

Create AD User-Setting Properties, Create AD Group Action, Create AD Object Action, Delete AD Object Action

Description

Creates a new user at the specified Active Directory location.

Practical Usage

See Description.

Parameters

General Tab

Parent Path

Text, Required
MARKUP: LDAPPATH="LDAP://DC=networkautomation,DC=com"

Specifies the LDAP (Lightweight Directory Access Protocol) path of the parent Active Directory container. This is usually the top most container or rootDSE path, the root of the directory data tree on a directory server.

Click the Select Container button to launch a standard Windows Active Directory dialog box that allows for the selection an Active Directory container.

User Name

Text, Required
MARKUP: USER="Mike"

Specifies the username of the Active Directory user to be created.

Email

Text, Required
MARKUP: EMAIL="mike@netauto.com"

Specifies the e-mail address of the Active Directory user to be created.

First name

Text, Required
MARKUP: FIRSTNAME="Mark"

Specifies the first name of the Active Directory user to be created.

Last name

Text, Required
MARKUP: LASTNAME="Black"

Specifies the last name of the Active Directory user to be created.

Password

Text, Required
MARKUP: NEWPASSWORD="password"

Specifies the logon password of the Active Directory user to be created.

User must change password at next login

Text [options], Optional - Default "No"
MARKUP: MUSTCHANGEPASSWORD="YES"

If set to yes, specifies that the newly created user must change his/her password at next login. If set to no, the new user does not have to change his/her password at next login. Instead, the password specified in the Password parameter will be used.

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.

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.

<CREATEADUSER LDAPPATH="LDAP://servtest.com" USERNAME="administrator" PASSWORD="password" USER="Harry" EMAIL="AD@networkautomation.com" FIRSTNAME="Harry" LASTNAME="Black" NEWPASSWORD="password" MUSTCHANGEPASSWORD="YES" />