Create AD User
Creates an Active Directory user.
Privileges
Normal
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
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. |
Domain Name | String | Yes |
The name of the domain from which to retrieve the domain controllers. For example:
|
LogonName | String | No | The logon name of the user. It can contain domain FQDN. If the domain FQDN is not provided, then the domain already provided will be used. |
Password | String | No | The user account password. |
Password Never Expires | Boolean | No |
Select the check box so that password never expires. The user will not be prompted to enter their password at the next login. Selecting this check box will automatically un-select Change Password at Logon. |
Change Password At Logon | Boolean | No |
Select the check box to have password changed at the next logon. The user will be prompted to enter their password at the next login. Selecting this check box will automatically un-select Password Never Expires. |
First Name | String | No | First name of the user to be created. |
Last Name | String | No | Last name of the user to be created. |
Display Name | String | No | Display name of the user to be created. |
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. |
Profile Path | String | No | |
HomeFolder Path | String | No | |
Job Title | String | No | |
Department | String | No | |
Managed By | String | No | Distinguished name of the manager. |
Company | String | No | |
Street Address | String | No | Street address of the user to be created. |
Location | String | No | The locality, such as the town or city, in the user's address. |
Province/State | String | No | Province or state code. |
Country Abbreviation | String | No | The two character country abbreviation. |
Postal/Zip Code | String | No | Postal/ZIP code. |
Email Address | String | No | Email address of the user to be created. |
Group Membership | String | No | Group distinguished names separated by semicolons. |
Output Parameters
Name | Type | Description |
---|---|---|
Result | Number | Returns a success value of zero or any value other than zero to indicate failure. |
Result String | String | Object execution error details. |
Example Input Parameters
Name | Type | Required | Example |
---|---|---|---|
CommonName | String | Yes | Jsmith |
sAMAccountName | String | Yes | Jon Smith |
Domain | String | Yes | Abc.com |
LogonName | String | No | JonSmith or JonSmith@Abc.com |
Password | String | No | password123 |
Password Never Expires | String | No | Checked/Unchecked |
Change Password At Logon | String | No | Checked/Unchecked |
First Name | String | No | Jon |
Last Name | String | No | Smith |
Display Name | String | No | Jon Smith |
OU | String | Yes | OU=Marketing,DC=ABC,DC=com |
Managed By | String | No | Manager |
Street Address | String | No | 123 Some Street, Some City |
Location | String | No | Ottawa |
Province/State | String | No | ON |
Country Abbreviation | String | No | CA |
Postal/Zip Code | String | No | A0A 0A0 |
Email Address | String | No | jon.smith@somemail.com |
Group Membership | String | No | Remote Desktop Users; Print Operators |