Get-RoleMember
Returns the Sitecore users in the specified role.
Syntax
Get-RoleMember [-Identity] <AccountIdentity> [-Recurse]
Get-RoleMember [-Identity] <AccountIdentity> [-UsersOnly] [-Recurse]
Get-RoleMember [-Identity] <AccountIdentity> [-RolesOnly] [-Recurse]
Detailed Description
The Get-RoleMember command returns the Sitecore users in the specified 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
Parameters
-Identity <AccountIdentity>
Specifies the Sitecore role by providing one of the following values.
-Recurse <SwitchParameter>
-UsersOnly <SwitchParameter>
-RolesOnly <SwitchParameter>
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
System.String
Represents the identity of a role.
Outputs
The output type is the type of the objects that the cmdlet emits.
Sitecore.Security.Accounts.User
Returns one or more users.
Sitecore.Security.Accounts.Role Returns one or more roles.
Notes
Help Author: Adam Najmanowicz, Michael West
Examples
EXAMPLE 1
EXAMPLE 2
Related Topics
Last updated