Clear-AdminPowerAppApisToBypassConsent

Removes the consent bypass.

Syntax

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

Description

This cmdlet contains more than one parameter set. You may only use parameters from one parameter set, and you may not combine parameters from different parameter sets. For more information about how to use parameter sets, see Cmdlet parameter sets.

The Clear-AdminPowerAppApisToBypassConsent cmdlet removes the consent bypass, so that users are required to authorize API connections for the input Power Apps app. The command changes the bypassConsent flag of an app to false.

Examples

EXAMPLE 1

Clear-AdminPowerAppApisToBypassConsent -PowerAppName [Guid]

Updates the specified input app to require consent in the production tenant of the signed in 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