Skip to main content
SnapCenter 5.0 cmdlets

Get-SmAssignedRoles

Contributors

Gets the roles assigned to a specified user or Active Directory group.

Syntax

Get-SmAssignedRoles [-UserName]  <String>  [-UserGroupObjectType]  <SmUserGroupObjectType>

Detailed Description

Gets the roles assigned to a specified user or Active Directory group.

Parameters

Name Description Required? Pipeline Input Default Value

UserName

Specifies the domain\username for the user about which you want to get role information.

true

true (ByPropertyName)

UserGroupObjectType

Specifies that the domain\username for which you are requesting role information is a group.

false

true (ByPropertyName)

Examples

Example 1: Getting roles for a particular user

 Get-SmAssignedRoles -UserName sddev\administrator

This example syntax gets the roles assigned to a user.

Description : Overall administrator of SnapCenter system
Name: SnapCenterAdmin
Type: Administrator
Id  : 1
Host:
UserName:
Passphrase  :
Deleted : False
Auth: SMCoreContracts.SmAuth
IsClone : False
CloneLevel  : 0

Example 2: Getting roles assigned to a group

 Get-SmAssignedRoles -UserName sddev\b-grp -UserGroupObjectType Group
Description :
Name: role1
Type:
Id  : 20
Host:
UserName:
Passphrase  :
Deleted : False
Auth: SMCoreContracts.SmAuth
IsClone : False
CloneLevel  : 0
Hosts   : {}