ACTIVE DIRECTORY Create a user function

The ACTIVE DIRECTORY Create a user function in RPA.

Help CentreBuilding 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:

  1. Navigate to the process where you would like to add the ACTIVE DIRECTORY Create a user function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the ACTIVE DIRECTORY Create a user option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
NameYesText-The name of the Active Directory connection to use
DNYesText-The full distinguished name for the new user (e.g. CN=John Smith,OU=Users,DC=example,DC=com)
UsernameYesText-The sAMAccountName for the new user
First nameNoText-The user's first name (givenName)
Last nameNoText-The user's last name (sn)
EmailNoText-The user's email address (mail)
PasswordNoText-The initial password for the user account
EnabledNoBooleantrueWhether the account should be enabled immediately
AttributesNoJSON-Additional LDAP attributes to set as a JSON object

Output variables

This action does not produce output variables.


Errors

ErrorDescription
Connection not foundNo connection exists with the specified name
User already existsA user with the specified DN or username already exists
Invalid DNThe specified distinguished name is not valid
Insufficient permissionsThe 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

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.