Skip to main content

cli reconsent

Returns URL to open in the browser to re-consent CLI for Microsoft 365 Microsoft Entra permissions

Usage

m365 cli reconsent [options]

Options

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

Examples

Get the URL to open in the browser to re-consent CLI for Microsoft 365 permissions

m365 cli reconsent

Response

"To re-consent the PnP Microsoft 365 Management Shell Microsoft Entra application navigate in your web browser to https://login.microsoftonline.com/common/oauth2/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&prompt=admin_consent"

More information

CTRL + M