< Back

Set-AdminPowerAppConnectionRoleAssignment

Sat Jan 18, 2020 3:51 pm

NAME Set-AdminPowerAppConnectionRoleAssignment



SYNOPSIS

Sets permissions to the connection.





SYNTAX

Set-AdminPowerAppConnectionRoleAssignment [-ConnectionName] <String> -ConnectorName <String> -EnvironmentName

<String> -RoleName <String> -PrincipalType <String> -PrincipalObjectId <String> [-ApiVersion <String>]

[<CommonParameters>]



Set-AdminPowerAppConnectionRoleAssignment [-ConnectionName] <String> -ConnectorName <String> -EnvironmentName

<String> -RoleName <String> -PrincipalType <String> [-PrincipalObjectId <String>] [-ApiVersion <String>]

[<CommonParameters>]





DESCRIPTION

The Set-AdminPowerAppConnectionRoleAssignment set up permission to connection depending on parameters.

Use Get-Help Set-AdminPowerAppConnectionRoleAssignment -Examples for more detail.





PARAMETERS

-ConnectionName <String>

The connection identifier.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ConnectorName <String>

The connection's connector identifier.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-EnvironmentName <String>

The connections's environment.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-RoleName <String>

Specifies the permission level given to the connection: CanView, CanViewWithShare, CanEdit. Sharing with the

entire tenant is only supported for CanView.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-PrincipalType <String>

Specifies the type of principal this connection is being shared with; a user, a security group, the entire

tenant.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-PrincipalObjectId <String>

If this connection is being shared with a user or security group principal, this field specified the ObjectId

for that principal. You can use the Get-UsersOrGroupsFromGraph API to look-up the ObjectId for a user or group

in Azure Active Directory.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ApiVersion <String>



Required? false

Position? named

Default value 2017-06-01

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



OUTPUTS



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



PS C:\\>Set-AdminPowerAppConnectionRoleAssignment -PrincipalType Group -PrincipalObjectId

b049bf12-d56d-4b50-8176-c6560cbd35aa -RoleName CanEdit -ConnectionName 3b4b9592607147258a4f2fb33517e97a

-ConnectorName shared_vsts -EnvironmentName Default-55abc7e5-2812-4d73-9d2f-8d9017f8c877



Give the specified security group CanEdit permissions to the connection with name 3b4b9592607147258a4f2fb33517e97a











RELATED LINKS