Share via


Set-AdminPowerAppApisToBypassConsent

Sets the consent bypass flag so users aren't required to authorize API connections for the input app in Power Apps.

Syntax

Set-AdminPowerAppApisToBypassConsent
   [-EnvironmentName] <String>
   [-AppName] <String>
   [[-ApiVersion] <String>]
   [<CommonParameters>]

Description

The Set-AdminPowerAppApisToBypassConsent changes the bypassConsent flag of an app in Power Apps to true. If the app is a model-driven app, use the unique name of the app instead of the app ID. Use Get-Help Set-AdminPowerAppApisToBypassConsent -Examples for more detail.

Examples

EXAMPLE 1

Set-AdminPowerAppApisToBypassConsent -EnvironmentName 00aa00aa-bb11-cc22-dd33-44ee44ee44ee -AppName 00001111-aaaa-2222-bbbb-3333cccc4444

Updates the input app to not require consent for APIs in the production tenant of the signed in user.

EXAMPLE 2

Set-AdminPowerAppApisToBypassConsent -EnvironmentName 00aa00aa-bb11-cc22-dd33-44ee44ee44ee -AppName msdynce_saleshub

Updates the msdynce_saleshub model-driven app to not require consent for APIs in the production tenant of the signed in user.

Parameters

-ApiVersion

PowerApps API version date. Default is 2021-02-01.

Type:String
Position:3
Default value:2021-02-01
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-AppName

App ID of app to operate on.

Type:String
Position:2
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-EnvironmentName

Environment ID of the app.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False