Skip to content

Remove-CitrixPermission

Citrix: Removes a permission from a role

param(
	[Parameter(Mandatory = $true)]
	[string]$RoleName,

	[Parameter(Mandatory = $true)]
	[string]$Permission
)

try {
	Import-Module Citrix.DelegatedAdmin.Admin.V1 -ErrorAction Stop
	Remove-AdminPermission -Role $RoleName -Permission $Permission -ErrorAction Stop
	Write-Output "Successfully removed permission '$Permission' from role '$RoleName'."
} catch {
	Write-Error $_
	exit 1
}

The name of the role.

The permission to remove.

An interactive directory of PowerShell scripts.