Add-RoleMember
Adds one or more Sitecore users to the specified role.
Add-RoleMember [-Identity] <AccountIdentity> -Members <AccountIdentity[]>
Detailed Description
The Add-RoleMember command assigns Sitecore users as members of 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
-Identity <AccountIdentity>
Specifies the Sitecore role by providing one of the following values.
Local Name
Example: developer
Fully Qualified Name
Example: sitecore\developer
-Members <AccountIdentity[]>
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.
Help Author: Adam Najmanowicz, Michael West
The following adds all users of a given domain to the Developer role.