< Back

Remove-vRAPrincipalFromTenantRole

Sat Jan 18, 2020 10:04 pm

NAME Remove-vRAPrincipalFromTenantRole



SYNOPSIS

Remove a vRA Principal from a Tenant Role





SYNTAX

Remove-vRAPrincipalFromTenantRole [-TenantId] <String> [-PrincipalId] <String[]> [-RoleId] <String> [-WhatIf]

[-Confirm] [<CommonParameters>]





DESCRIPTION

Remove a vRA Principal from a Tenant Role





PARAMETERS

-TenantId <String>

Specify the Tenant Id



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PrincipalId <String[]>

Specify the Principal Id



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-RoleId <String>

Specify the Role Id



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String





OUTPUTS

System.Management.Automation.PSObject.





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Remove-vRAPrincipalFromTenantRole -TenantId Tenant01 -PrincipalId Tenantadmin@vrademo.local -RoleId

CSP_TENANT_ADMIN













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-vRAUserPrincipal -UserName Tenantadmin@vrademo.local | Remove-vRAPrincipalFromTenantRole -TenantId

Tenant01 -RoleId CSP_TENANT_ADMIN















RELATED LINKS