Skip to main content

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, permissions, 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

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

[
{
"clientId": "1e551032-3e2d-4d6b-9392-9b25451313a0",
"consentType": "AllPrincipals",
"id": "MhBVHi0-a02TkpslRRMToFw7FM2TduxCifs3fo6XqP8",
"principalId": null,
"resourceId": "cd143b5c-7693-42ec-89fb-377e8e97a8ff",
"scope": "User.Read"
}
]