Skip to main content
SnapCenter 5.0 cmdlets

Add-SmUser

Contributors

Adds AD users or local workgroup users to SnapCenter.

Syntax

Add-SmUser [-UserName]  <SmString>  [-Domain]  <String>  [-RoleNames]  <SmString>

Detailed Description

Adds Active Directory users or local workgroup users to SnapCenter.

Parameters

Name Description Required? Pipeline Input Default Value

UserName

Single user or list of users belonging to the same domain or workgroup.

true

true (ByPropertyName)

Domain

Domain to which the user belongs to. Workgroup users should skip this parameter.

false

true (ByPropertyName)

RoleNames

Single or list of existing pre-canned or custom roles to which the user should be added to. At least one role should be specified while adding the user.

true

true (ByPropertyName)

Examples

Example 1: Adding a single user

 Add-SmUser -UserName user1 -RoleNames role1,role2 -Domain domain1

Example 2: Adding multiple users of the same domain

 Add-SmUser -UserName user1,user2 -RoleNames role1 -Domain domain1

Example 3: Adding workgroup user

 Add-SmUser -UserName LocalUser1 -RoleNames role1