Priority
(Low) Something is a little off
Description
Running the m365 spo serviceprincipal grant list command results in an 'Unknown Error'.
Steps to reproduce
m365 login as a global admin
- Execute
m365 spo serviceprincipal grant list
- Observe error
Expected results
should return a list of all the permissions granted to the tenant
Actual results

Diagnostics
m365 spo sp grant list --debug.txt
CLI for Microsoft 365 version
v10.8.0
nodejs version
v22.16.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
m365 cli doctor.txt
Additional Info
This doesn't seem to be a M365 CLI specific issue. The error also occurs in PnP PowerShell.
Priority
(Low) Something is a little off
Description
Running the
m365 spo serviceprincipal grant listcommand results in an 'Unknown Error'.Steps to reproduce
m365 loginas a global adminm365 spo serviceprincipal grant listExpected results
should return a list of all the permissions granted to the tenant
Actual results
Diagnostics
m365 spo sp grant list --debug.txt
CLI for Microsoft 365 version
v10.8.0
nodejs version
v22.16.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
m365 cli doctor.txt
Additional Info
This doesn't seem to be a M365 CLI specific issue. The error also occurs in PnP PowerShell.