Skip to main content
SnapCenter 6.0 cmdlets

Copy-SmRole

Contributors

Copies an existing role-based access control (RBAC) role.

Syntax

Copy-SmRole [-RoleName]  <String>  [-NewRoleName]  <String>

Detailed Description

Copies an existing role-based access control (RBAC) role.

Parameters

Name Description Required? Pipeline Input Default Value

RoleName

Specifies the name of the existing role.

true

true (ByPropertyName)

NewRoleName

Specifies the name of the new role.

true

true (ByPropertyName)

Examples

Example 1: Copying and existing role

 Copy-SmRole -RoleName 'App Backup and Clone Admin' -NewRoleName app_backup_clone_admin_copy

This example syntax copies the existing role "App Backup and Clone Admin" to a new role called app_backup_clone_admin_copy.