Removes one or more Sitecore users from the specified role.
Remove-RoleMember [-Identity] <AccountIdentity> -Members <AccountIdentity[]>
The Remove-RoleMember command gets a role and removes members of the Sitecore role.
The Identity parameter specifies the Sitecore role to get. You can specify a role by its local name or fully qualified name.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Specifies the Sitecore role 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 |
| Aliases | |
|---|---|
| Required? | true |
| 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
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:\> Remove-RoleMember -Identity developer -Members "michael","adam","mike"