powershell icon indicating copy to clipboard operation
powershell copied to clipboard

[BUG] Get-PnPMicrosoft365Group scope Group.ReadWrite.All is not valid

Open DuaneBeis opened this issue 1 year ago • 0 comments

Reporting an Issue or Missing Feature

When using Get-PnPMicrosoft365Group with the GA PnP.PowerShell 2.10.0 the following error is generated: "Get-PnPMicrosoft365Group: The provided value for scope Group.ReadWrite.All is not valid. Client credential flows must have a scope value with /.default suffixed to the resource identifier (application ID URI)"

Expected behavior

A group should be able to be retrieved using the -Identity switch

Steps to reproduce behavior

Run Get-PnPMicrosoft365Group with a connection generated by an app connection.

What is the version of the Cmdlet module you are running?

2.10.0

Which operating system/environment are you running PnP PowerShell on?

  • [x] Windows
  • [ ] Linux
  • [ ] MacOS
  • [ ] Azure Cloud Shell
  • [ ] Azure Functions
  • [ ] Other : please specify

DuaneBeis avatar Aug 30 '24 15:08 DuaneBeis