Create a user. By default, this action doesnt return any output, you can pass the -PassThru flag to return the updated object.

External Documentation

To learn more, visit the Active Directory On-Prem documentation.

Parameters

ParameterDescription
UsernameThe username of the new user.
PasswordThe initial password for the new user. Note that the password is required if the user is created as Enabled. The password must be compatible with the organization’s password security rules.
Enable UserShould the user be enabled by default.

Advanced Parameters

ParameterDescription
User Principal NameThe UPN of the new user.
Email AddressThe email address of the new user.
Given NameThe given name of the new user.
SurnameThe surname of the new user.
Additional FlagsAdditional flags to append to the PowerShell command.
Disable JSON ConversionDisable the automatic conversion of the data into JSON format; the raw data is in PowerShell table format.