Help Centre › Building Processes
This article describes the RPA Active Directory functionality to create a new user.
For a full list of available functions, please read ACTIVE DIRECTORY functions.
Description
The ACTIVE DIRECTORY Create a user function creates a new user account in Active Directory with the specified attributes.
Setting it up
To use the ACTIVE DIRECTORY Create a user function, follow these instructions:
{{popups:rpas/add:action=ad-create-user}}
Once on a process map:
- Navigate to the process where you would like to add the ACTIVE DIRECTORY Create a user function
- Click on the green button's drop-down (right side of the green button labelled "Process")
- On the menu that appears, click on the "+ Activity" item
- From here you can select the ACTIVE DIRECTORY Create a user option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Name | Yes | Text | - | The name of the Active Directory connection to use |
| DN | Yes | Text | - | The full distinguished name for the new user (e.g. CN=John Smith,OU=Users,DC=example,DC=com) |
| Username | Yes | Text | - | The sAMAccountName for the new user |
| First name | No | Text | - | The user's first name (givenName) |
| Last name | No | Text | - | The user's last name (sn) |
| No | Text | - | The user's email address (mail) | |
| Password | No | Text | - | The initial password for the user account |
| Enabled | No | Boolean | true | Whether the account should be enabled immediately |
| Attributes | No | JSON | - | Additional LDAP attributes to set as a JSON object |
Output variables
This action does not produce output variables.
Errors
| Error | Description |
|---|---|
| Connection not found | No connection exists with the specified name |
| User already exists | A user with the specified DN or username already exists |
| Invalid DN | The specified distinguished name is not valid |
| Insufficient permissions | The bound account does not have permission to create users |
Tips
- The DN must include the target OU where the user will be created
- Set a password to enable the user to log in immediately after creation