powershell
powershell copied to clipboard
[BUG] Get-PnPMicrosoft365Group scope Group.ReadWrite.All is not valid
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