Skip to main content
SnapCenter 5.0 cmdlets

Add-SmGroupToRole

Contributors

Adds a group to an existing role.

Syntax

Add-SmGroupToRole [-Group]  <SmString>  [-RoleName]  <String>  [-Domain]  <String>

Detailed Description

Adds a group to an existing role. A group is an active directory group that contains users, computers, and other groups. You can use groups to easily assign permissions to a set of users.

Parameters

Name Description Required? Pipeline Input Default Value

Group

Specifies the group you want to add to the role.

true

true (ByPropertyName)

RoleName

Specifies the name of the role to which you want to add a group.

true

true (ByPropertyName)

Domain

Specifies the domain to which the group belongs.

false

true (ByPropertyName)

Examples

Example 1: Adding a group to a role

 Add-SmGroupToRole -RoleName SnapCenterAdmin -Domain sddev -Group "Domain Admins"

This example syntax adds the Domain Admins group to the SnapCenterAdmin role.

SnapCenterAdmin
Domain Admins