spo serviceprincipal grant list
Lists permissions granted to the service principal
Usage
m365 spo serviceprincipal grant list [options]
Alias
m365 spo sp grant 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
info
To use this command you must be a Global administrator.
Examples
List all permissions granted to the service principal
m365 spo serviceprincipal grant list
Response
- JSON
- Text
- CSV
- Markdown
[
{
"IsDomainIsolated": false,
"ObjectId": "QqYEYFwYmkeZKhXRwj4iKV5QwbD60RVCo6xeMUG407E",
"PackageName": null,
"Resource": "Windows Azure Active Directory",
"ResourceId": "b0c1505e-d1fa-4215-a3ac-5e3141b8d3b1",
"Scope": "User.Read"
}
]
IsDomainIsolated ObjectId PackageName Resource ResourceId Scope
---------------- ------------------------------------------- ----------- ------------------------------ ------------------------------------ --------------------------
false QqYEYFwYmkeZKhXRwj4iKV5QwbD60RVCo6xeMUG407E null Windows Azure Active Directory b0c1505e-d1fa-4215-a3ac-5e3141b8d3b1 User.Read
IsDomainIsolated,ObjectId,PackageName,Resource,ResourceId,Scope
,QqYEYFwYmkeZKhXRwj4iKV5QwbD60RVCo6xeMUG407E,,Windows Azure Active Directory,b0c1505e-d1fa-4215-a3ac-5e3141b8d3b1,User.Read
# spo serviceprincipal grant list
Date: 5/7/2023
## 4WtBzD8u5kW-sYuikIWL_8ZYTP5mJB1LnC6OT4Ibr94
Property | Value
---------|-------
IsDomainIsolated | false
ObjectId | 4WtBzD8u5kW-sYuikIWL\_8ZYTP5mJB1LnC6OT4Ibr94
Resource | Microsoft Graph
ResourceId | fe4c58c6-2466-4b1d-9c2e-8e4f821bafde
Scope | Mail.Read