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

Default (Default)

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. See examples for more detail.

Enabling this flag bypasses the consent dialog for end users when they open an app if the app only uses connectors that use ‘OAuth’ or ‘No Authentication’ to connect to Microsoft services. Connectors that connect to non-Microsoft services or that don't use ‘OAuth’ or ‘No Authentication’ can't be bypassed. Microsoft Entra ID and Azure DevOps connectors can't be bypassed.

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.

Parameter properties

Type:String
Default value:2021-02-01
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:3
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AppName

App ID of app to operate on.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-EnvironmentName

Environment ID of the app.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.