Creates a new Sitecore user.
New-User [-Identity] <AccountIdentity> [-Password <String>] [-Email <String>] [-FullName <String>] [-Comment <String>] [-Portrait <String>] [-Enabled] [-ProfileItemId <ID>]
The New-User command creates a new user in Sitecore.
The Identity parameter specifies the Sitecore user to create. You can specify a user by its local name or fully qualified name.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Specifies the Sitecore user by providing one of the following values.
Local Name
Example: developer
Fully Qualified Name
Example: sitecore\developer| Aliases | |
|---|---|
| Required? | true |
| Position? | 1 |
| Default Value | |
| Accept Pipeline Input? | true (ByPropertyName) |
| Accept Wildcard Characters? | false |
| Aliases | |
|---|---|
| Required? | false |
| Position? | named |
| Default Value | |
| Accept Pipeline Input? | true (ByPropertyName) |
| Accept Wildcard Characters? | false |
| Aliases | |
|---|---|
| Required? | false |
| Position? | named |
| Default Value | |
| Accept Pipeline Input? | true (ByPropertyName) |
| Accept Wildcard Characters? | false |
| Aliases | |
|---|---|
| Required? | false |
| Position? | named |
| Default Value | |
| Accept Pipeline Input? | true (ByPropertyName) |
| Accept Wildcard Characters? | false |
| Aliases | |
|---|---|
| Required? | false |
| Position? | named |
| Default Value | |
| Accept Pipeline Input? | true (ByPropertyName) |
| Accept Wildcard Characters? | false |
| Aliases | |
|---|---|
| Required? | false |
| Position? | named |
| Default Value | |
| Accept Pipeline Input? | true (ByPropertyName) |
| Accept Wildcard Characters? | false |
Specifies that the account should be enabled. When enabled, the Password parameter is required.
| Aliases | |
|---|---|
| Required? | false |
| Position? | named |
| Default Value | |
| Accept Pipeline Input? | true (ByPropertyName) |
| Accept Wildcard Characters? | false |
Specifies the profile id to use for the user.
| Aliases | |
|---|---|
| Required? | false |
| Position? | named |
| Default Value | |
| Accept Pipeline Input? | true (ByPropertyName) |
| Accept Wildcard Characters? | false |
The input type is the type of the objects that you can pipe to the cmdlet.
-
System.String
Represents the identity of a role.
The output type is the type of the objects that the cmdlet emits.
- None.
Help Author: Adam Najmanowicz, Michael West
PS master:\> New-User -Identity michaelPS master:\> New-User -Identity michael -Enabled -Password b -Email michaellwest@gmail.com -FullName "Michael West"PS master:\> New-User -Identity michael -PassThru
Name Domain IsAdministrator IsAuthenticated
---- ------ --------------- ---------------
sitecore\michael2 sitecore False False