Imports (deserializes) Sitecore users from the Sitecore server filesystem.
Import-User [-Identity] <AccountIdentity> [-Root <String>]
Import-User -Filter <String> [-Root <String>]
Import-User [-User] <User> [-Root <String>]
Import-User -Path <String>
The Import-User command imports (deserializes) Sitecore users from the Sitecore server filesystem.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Specifies the Sitecore user to be deserialized 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 (ByValue) |
| Accept Wildcard Characters? | false |
Specifies a simple pattern to match Sitecore users.
Examples: The following examples show how to use the filter syntax.
To get all the roles, use the asterisk wildcard: Import-User -Filter *
To get all the roles in a domain use the following command: Import-User -Filter "sitecore*"
| Aliases | |
|---|---|
| Required? | true |
| Position? | named |
| Default Value | |
| Accept Pipeline Input? | false |
| Accept Wildcard Characters? | false |
User object retrieved from the Sitecore API or using the Get-User command identifying the user account to be deserialized.
| Aliases | |
|---|---|
| Required? | true |
| Position? | 1 |
| Default Value | |
| Accept Pipeline Input? | true (ByValue) |
| Accept Wildcard Characters? | false |
Path to the file the user should be loaded from.
| Aliases | |
|---|---|
| Required? | true |
| Position? | named |
| Default Value | |
| Accept Pipeline Input? | false |
| Accept Wildcard Characters? | false |
Specifies the serialization root directory. If this parameter is not specified - the default Sitecore serialization folder will be used (unless you're reading from an explicit location with the -Path parameter).
| Aliases | |
|---|---|
| Required? | false |
| Position? | named |
| Default Value | |
| Accept Pipeline Input? | false |
| Accept Wildcard Characters? | false |
The input type is the type of the objects that you can pipe to the cmdlet.
-
System.String
Sitecore.Security.Accounts.User
Help Author: Adam Najmanowicz, Michael West
PS master:\> Import-User -Identity sitecore\AdminPS master:\> Import-User -Filter sitecore\*PS master:\> Import-User -Root C:\my\Serialization\Folder\ -Filter *\*PS master:\> Import-User -Path C:\my\Serialization\Folder\Admin.user