Skip to main content

Create user

Create a user account in an organizational unit, optionally with a first password, and enable it.

Command in the Active Directory toolkit · id ooa.active_directory/create_user · 18 inputs (1 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Container (distinguished name)StringNoDistinguished name of the organizational unit or container to create it in; the session's base (Connect) when empty.
UsernameStringYesSign-in name (sAMAccountName, up to 20 characters).
First nameStringNoGiven name.
Last nameStringNoSurname.
Display nameStringNoDisplay name; also the object name. First and last name when empty.
User principal nameStringNoUser principal name (UPN).
PasswordCredentialNoFirst password from the vault (needs an ldaps:// connection); the account stays disabled without one.
EnabledBooleanNotrueEnable the account once the password is set.
Must change passwordBooleanNotrueRequire a password change at first sign-in.
AttributesDictionaryNoMore attributes, e.g. {"mail": "jdoe@example.com", "department": "Finance"}.
SessionStringNoadSession name.
InitialsStringNoInitials (up to 6 characters).
User descriptionStringNoDescription shown in the directory.
Password never expiresBooleanNofalseCreate the account with a password that never expires (only when no change is required at first sign-in).
EmailStringNoEmail address (stored in mail).
DepartmentStringNoDepartment.
TitleStringNoJob title.
Cannot change passwordBooleanNofalseStop the user from changing their own password (Active Directory only; only when no change is required at first sign-in).

Outputs​

OutputTypeWhat it is
dnStringDistinguished name of the new user.