Skip to main content
SnapCenter 4.8 cmdlets

Get-SmRole

Contributors

Get information for one or more RBAC roles.

Syntax

Get-SmRole [-Name]  <String>

Detailed Description

Get information about all the roles associated with SnapCenter. If you specify a specific role, you will return only information about the individual role.This information includes the role description, name.

Parameters

Name Description Required? Pipeline Input Default Value

Name

Specifies the name of the role for which you want information. If you do not specify a role name, you will receive information for all available roles.

false

true (ByPropertyName)

Examples

Example 1: Getting information about all roles

 Get-SmRole

This example syntax retrieves the information about all SnapCenter roles.

Description : Overall administrator of SnapCenter system
Name: SnapCenterAdmin
Type: Administrator
Id  : 1
Host:
UserName:
Passphrase  :
Deleted : False
Auth: SMCoreContracts.SmAuth
IsClone : False
CloneLevel  : 0
Description : Backup and Clone Viewer
Name: Backup and Clone Viewer
Type: Backup and Clone Viewer
Id  : 7
Host:
UserName:
Passphrase  :
Deleted : False
Auth: SMCoreContracts.SmAuth
IsClone : False
CloneLevel  : 0
Description : App Backup and Clone Admin
Name: App Backup and Clone Admin
Type: App Backup and Clone Admin
Id  : 8
Host:
UserName:
Passphrase  :
Deleted : False
Auth: SMCoreContracts.SmAuth
IsClone : False
CloneLevel  : 0
Description : Infrastructure Admin
Name: Infrastructure Admin
Type: Infrastructure Admin
Id  : 9
Host:
UserName:
Passphrase  :
Deleted : False
Auth: SMCoreContracts.SmAuth
IsClone : False
CloneLevel  : 0

Example 2: Getting information about a specific role

 Get-SmRole -Name "Infrastructure Admin"

This example syntax retrieves the information about the specified role.

Description : Infrastructure Admin
Name: Infrastructure Admin
Type: Infrastructure Admin
Id  : 9
Host:
UserName:
Passphrase  :
Deleted : False
Auth: SMCoreContracts.SmAuth
IsClone : False
CloneLevel  : 0