Set-AdminPowerAppApisToBypassConsent

Sets the consent bypass of an app to true.

Syntax

Set-AdminPowerAppApisToBypassConsent
   -AppName <String>
   [-ApiVersion <String>]
   [<CommonParameters>]
Set-AdminPowerAppApisToBypassConsent
   [-ApiVersion <String>]
   [-ForceLease <Boolean>]
   [<CommonParameters>]

Description

The Set-AdminPowerAppApisToBypassConsent cmdlet changes the consent bypass so that users are are not required to authorize API connections for the input app. The command changes the bypassConsent flag of an app to true. Using this command, end users will observe consent is bypassed for: First Party connectors that support single sign-on and custom connectors that don’t require authentication. This includes custom connectors with or without a gateway.

Examples

EXAMPLE 1

Set-AdminPowerAppApisToBypassConsent -PowerAppName [Guid]

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

Parameters

-ApiVersion

Version of Power Apps API to use.

Type:String
Position:Named
Default value:2017-05-01
Accept pipeline input:False
Accept wildcard characters:False
-AppName

Id of Power Apps app to update.

Type:String
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-ForceLease

Forces the lease when overwriting the Power Apps fields. The lease creates and manages a lock on the Power Apps fields for write and delete operations. Defaults to false if no input is provided.

Type:Boolean
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False