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 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
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Remarks
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
- JSON
- Text
- CSV
- Markdown
[
{
"Id": "6eceed61-77e4-424d-ae1d-696a0de4d768",
"Resource": "Microsoft Graph",
"ResourceId": "Microsoft Graph",
"Scope": "Reports.Read.All"
}
]
Id Resource ResourceId Scope
------------------------------------ --------------- --------------- -----------------------
6eceed61-77e4-424d-ae1d-696a0de4d768 Microsoft Graph Microsoft Graph Reports.Read.All
Id,Resource,ResourceId,Scope
6eceed61-77e4-424d-ae1d-696a0de4d768,Microsoft Graph,Microsoft Graph,Reports.Read.All
# spo serviceprincipal permissionrequest list
Date: 5/7/2023
## ecc2f667-e219-4c65-908e-957d68244d0c
Property | Value
---------|-------
Id | ecc2f667-e219-4c65-908e-957d68244d0c
Resource | Microsoft Graph
ResourceId | Microsoft Graph
Scope | Calendars.Read