< Back
Add-vRAPrincipalToTenantRole
Post
NAME Add-vRAPrincipalToTenantRole
SYNOPSIS
Add a vRA Principal to a Tenant Role
SYNTAX
Add-vRAPrincipalToTenantRole [-TenantId] <String> [-PrincipalId] <String[]> [-RoleId] <String> [-WhatIf]
[-Confirm] [<CommonParameters>]
DESCRIPTION
Add a vRA Principal to 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:\\>Add-vRAPrincipalToTenantRole -TenantId Tenant01 -PrincipalId Tenantadmin@vrademo.local -RoleId
CSP_TENANT_ADMIN
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-vRAUserPrincipal -UserName Tenantadmin@vrademo.local | Add-vRAPrincipalToTenantRole -TenantId Tenant01
-RoleId CSP_TENANT_ADMIN
RELATED LINKS
SYNOPSIS
Add a vRA Principal to a Tenant Role
SYNTAX
Add-vRAPrincipalToTenantRole [-TenantId] <String> [-PrincipalId] <String[]> [-RoleId] <String> [-WhatIf]
[-Confirm] [<CommonParameters>]
DESCRIPTION
Add a vRA Principal to 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:\\>Add-vRAPrincipalToTenantRole -TenantId Tenant01 -PrincipalId Tenantadmin@vrademo.local -RoleId
CSP_TENANT_ADMIN
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-vRAUserPrincipal -UserName Tenantadmin@vrademo.local | Add-vRAPrincipalToTenantRole -TenantId Tenant01
-RoleId CSP_TENANT_ADMIN
RELATED LINKS