Lists permissions granted to the service principal
spo serviceprincipal grant list [options]
spo sp grant list
Option | Description |
---|---|
--help |
output usage information |
-o, --output <output> |
Output type. `json |
--verbose |
Runs command with verbose logging |
--debug |
Runs command with debug logging |
!!! important Before using this command, connect to a SharePoint Online tenant admin site, using the spo connect command.
To list permission granted to the service principal, you have to first connect to a tenant admin site using the spo connect command, eg. spo connect https://contoso-admin.sharepoint.com
.
List all permissions granted to the service principal
spo serviceprincipal grant list