New-CitrixRole
Citrix: Creates a new role
param(
[Parameter(Mandatory = $true)]
[string]$Name,
[Parameter(Mandatory = $false)]
[string]$Description
)
try {
Import-Module Citrix.DelegatedAdmin.Admin.V1 -ErrorAction Stop
New-AdminRole -Name $Name -Description $Description -ErrorAction Stop
Write-Output "Successfully created role '$Name'."
} catch {
Write-Error $_
exit 1
}The name of the role.
The description of the role (optional).