Creates a new user. Current user should be a verified admin to perform this action. Returns the ID of the new user.
New-YmUser [-Email] <String> [-FullName <String>] [-JobTitle <String>] [-DepartmentName <String>] [-Location <String>] [-WorkTelephone <String>]System.Int32
| Parameter | Type | Required | Description |
|---|---|---|---|
| String | true | The email address of the new user. | |
| FullName | String | false | Pre- and surname of the new user separated by a space. |
| JobTitle | String | false | The job title of the new user. |
| DepartmentName | String | false | The name of the department of the new user. |
| Location | String | false | The location where the new user works at. |
| WorkTelephone | String | false | The work phone number of the new user. Must contain only numbers. |
PS:> New-YmUser 'user@company.com' -FullName 'Test User' -DepartmentName 'Sales'Creates a new user with the email user@company.com, the name Test User and the department Sales. Returns the ID of the new user.