Add-SmUserToRole
Contributors
Suggest changes
Adds a user to a role.
Syntax
Add-SmUserToRole [-UserName] <SmString> [-RoleName] <String> [-Domain] <String>
Detailed Description
Adds a user to a role.
Parameters
Name | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|
UserName |
Specifies the domain\user you want to add. |
true |
true (ByPropertyName) |
|
RoleName |
Specifies the name of the role to which you want to add a user. |
true |
true (ByPropertyName) |
|
Domain |
The domain to which the user belongs to. Workgroup users should skip this parameter. |
false |
true (ByPropertyName) |
Examples
Example 1: Adding a user to a role
Add-SmUserToRole -UserName snapdrive -Domain sddev -RoleName SnapCenterAdmin
This example adds the specified user to the SnapCenter Admin role.