Clear-AdminPowerAppApisToBypassConsent
Removes the consent bypass so users are required to authorize API connections for the specified app.
Syntax
Default (Default)
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."
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 the 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.