> Automation > Objects > Active Directory > Create AD User

Create AD User

Creates a user object in the domain.

Privileges

Normal

Input Parameters

Name Type Required Description
Domain Name String Yes The name of the domain from which to retrieve the domain controllers. For example, DC=California,DC=local or California.local
CommonName String Yes The CommonName of the user to be created.
sAMAccountName String No The sAMAccountName of the user to be created. This is the NT Login name. If undefined, the default value is the same as the value for the CommonName.
OU String No Organizational Unit container where the user object may be created. If undefined, the user object will be created in the standard users container for the domain.

Output Parameters

Name Type Description
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Name Type Required Example
CN String Yes Jsmith
sAMAccountName String Yes Jon Smith
Domain String Yes Abc.com
OU String Yes OU=Marketing,DC=ABC,DC=com