Remove-User
Last updated
Removes the Sitecore user.
Remove-User [-Identity] <AccountIdentity>
Remove-User -Instance <User>
The Remove-User command removes a user from Sitecore.
The Identity parameter specifies the Sitecore user to remove. 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: admin
Fully Qualified Name
Example: sitecore\admiRequired?
true
Position?
1
Default Value
Accept Pipeline Input?
true (ByValue)
Accept Wildcard Characters?
false
Required?
true
Position?
named
Default Value
Accept Pipeline Input?
true (ByValue)
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 user.
Sitecore.Security.Accounts.User Represents the instance of a user.
The output type is the type of the objects that the cmdlet emits.
None.
Help Author: Adam Najmanowicz, Michael West
Last updated
PS master:\> Remove-User -Identity michaelPS master:\> "michael","adam","mike" | Remove-UserPS master:\> Get-User -Filter sitecore\m* | Remove-User