Skip to content

Bug report: 'm365 spo serviceprincipal permissionrequest list' returns unexpected results #6788

@Saurabh7019

Description

@Saurabh7019

Priority

(Low) Something is a little off

Description

The m365 spo serviceprincipal permissionrequest list command is not correctly returning only the pending permission requests. The output also includes permission requests that have already been approved, and there's a mismatch with what is shown as pending under the API access section in the SPO admin center.

Steps to reproduce

  1. Execute m365 spo serviceprincipal permissionrequest list
  2. Compare results with what's shown in API access page

Expected results

The command should return a list of pending permission requests for the SharePoint Online service principal.

Actual results

The command is returning random results, including requests that are already granted.

Image
Image

Diagnostics

debug.txt

CLI for Microsoft 365 version

v10.8.0

nodejs version

v22.16.0

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

cli-doctor.txt

Additional Info

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions