NAME
Add-DcsUserRole
SYNOPSIS
Adds a role to a user in order to assign the privilege level.
SYNTAX
Add-DcsUserRole -User <Object> -Role <String> [ -Connection <String> ] [ -PipelineVariable <String> ]
DESCRIPTION
Adds a role to a user in order to assign the privilege level.
PARAMETERS
- -User<Object>
- UserData object, user name, or ID that identifies the user.
-
- Required: true
- Position: 1
- Default value:
- Accept pipeline input: true (ByValue)
- Accept wildcard characters: false
-
- -Role<String>
- Name or ID that identifies the role to assign to the user. Possible roles include the predefined roles "Full Privileges", "View", and "VVol Managers", as well as any custom role. User roles can be obtained with Get-DcsUserRole.
-
- Required: true
- Position: 2
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Connection<String>
- Alias of the connection to the server group. If not specified, the default connection will be used.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -PipelineVariable<String>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
INPUTS
UserData : Object that identifies and describes the user.
OUTPUTS
UserData : Object that identifies and describes the user.
NOTES
Also see related cmdlets: Get-DcsUser, Get-DcsUserRole, Remove-DcsUserRole, Add-DcsRole.
EXAMPLES
-------------- Example 1 Adds a role to an existing user --------------
Add-DcsUserRole -User "Jane Doe" -Role "Full Privileges"
Adds the "Full Privileges" predefined role to the previously registered user named "Jane Doe".
Name | : | Jane Doe |
Description | : | Storage Administrator |
EmailAddress | : | jane.doe@acme.com |
BlendedPrivileges | : | All |
IsAdministrator | : | False |
RoleIds | : | {{DAD4B92D-BFC8-4628-A313-51D8B2F57083}} |
Sequencenumber | : | 5799 |
Id | : | 34383bd0-487b-4d89-8d45-7ca68ae43f30 |
Caption | : | Jane Doe |
ExtendedCaption | : | Jane Doe |
Internal | : | False |