SnapCenter 6.0 Cmdlet Reference Guide For Windows ( CA08871-610en )
SnapCenter PowerShell requirements
SnapCenter Windows disk management cmdlets
Get-SdStorageConnectionSetting
Get-SdVolumeCloneSplitEstimate
Invoke-SdHostVolumeSpaceReclaim
Remove-SdStorageConnectionSetting
SnapCenter data protection cmdlets
Catalog-SmBackupWithOracleRMAN
Get-SmBackupsForPointInTimeRecovery
Get-SmDataCollectionEmsSchedule
Get-SmMultiFactorAuthentication
Invoke-DiagnosticLogCollection
Invoke-SmPrimaryBackupsExistenceCheck
Invoke-SmTechRefreshPrimaryStorage
Invoke-SmTechRefreshSecondaryStorage
New-SmMultifactorAuthenticationMetadata
Refresh-SmSyncSnapMirrorBackups
Remove-SmResourceCredentialName
Set-SmDataCollectionEmsSchedule
Set-SmMultiFactorAuthentication
Set-SmRepositoryConfigSettings
Add-SmUserToRole
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.