다음을 통해 공유


Clear-AdminPowerAppApisToBypassConsent

Removes the consent bypass so users are required to authorize API connections for the specified app.

Syntax

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

Description

The Clear-AdminPowerAppApisToBypassConsent cmdlet changes the bypassConsent flag of an app in Power Apps to false. Use Get-Help Clear-AdminPowerAppApisToBypassConsent -Examples for more detail.

Examples

EXAMPLE 1

Clear-AdminPowerAppApisToBypassConsent -EnvironmentName 08b4e32a-4e0d-4a69-97da-e1640f0eb7b9 -AppName 3c2f7648-ad60-4871-91cb-b77d7ef3c239

Updates the specified app to require consent in the production tenant of the logged in user.

Parameters

-ApiVersion

PowerApps Api version date, defaults to "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 the 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