Set-AdminPowerAppApisToBypassConsent
Sets the consent bypass flag so users aren't required to authorize API connections for the input app.
Syntax
Set-AdminPowerAppApisToBypassConsent
[-EnvironmentName] <String>
[-AppName] <String>
[[-ApiVersion] <String>]
[<CommonParameters>]
Description
The Set-AdminPowerAppApisToBypassConsent cmdlet changes the bypassConsent
flag of an app to true.
Use Get-Help Set-AdminPowerAppApisToBypassConsent -Examples for more detail.
Examples
EXAMPLE 1
Set-AdminPowerAppApisToBypassConsent -EnvironmentName 08b4e32a-4e0d-4a69-97da-e1640f0eb7b9 -AppName 3c2f7648-ad60-4871-91cb-b77d7ef3c239
Updates the input app to not require consent for APIs in the production tenant of the logged in user.
Parameters
-ApiVersion
Api version date, default value is "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 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 |