Skip to main content

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 true to allow users to bypass the API Consent window. Set to false to disable the bypass.

-f, --force

Don'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, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs 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.

CTRL + M