Skip to main content

spo serviceprincipal permissionrequest list

Lists pending permission requests

Usage

m365 spo serviceprincipal permissionrequest list [options]

Alias

m365 spo sp permissionrequest list

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.

Remarks

info

The admin role that's required to list permissions depends on the API. To approve permissions to any of the third-party APIs registered in the tenant, the application administrator role is sufficient. To approve permissions for Microsoft Graph or any other Microsoft API, the Global Administrator role is required.

Examples

List all pending permission requests

m365 spo serviceprincipal permissionrequest list

Response

[
{
"Id": "6eceed61-77e4-424d-ae1d-696a0de4d768",
"Resource": "Microsoft Graph",
"ResourceId": "Microsoft Graph",
"Scope": "Reports.Read.All"
}
]
CTRL + M