pa app consent set
Configures if users can bypass the API Consent window for the selected canvas app
Usage
m365 pa app consent set [options]
Options
-e, --environmentName <environmentName>The name of the environment.
-n, --name <name>The name of the Power App to update
-b, --bypass <bypass>Set to
trueto allow users to bypass the API Consent window. Set tofalseto disable the bypass.-f, --forceDon't prompt for confirmation
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Remarks
This command only works for canvas apps.
Examples
Enables the bypass for the specified canvas app
m365 pa app consent set --environmentName 4be50206-9576-4237-8b17-38d8aadfaa36 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --bypass true
Disables the bypass consent for the specified canvas app
m365 pa app consent set --environmentName 4be50206-9576-4237-8b17-38d8aadfaa36 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --bypass false --force
Response
The command won't return a response on success.