powershell icon indicating copy to clipboard operation
powershell copied to clipboard

Get-PnPPlannerPlan Graph Permissions seems to be wrong in the docs (https://pnp.github.io/powershell/cmdlets/Get-PnPPlannerPlan.html)

Open kasperbolarsen opened this issue 2 months ago • 2 comments

Reporting an Issue or Missing Feature

Issue

Expected behavior

In the https://pnp.github.io/powershell/cmdlets/Get-PnPPlannerPlan.html the required Graph permissions are: Required Permissions Microsoft Graph API: Group.ReadWrite.All Microsoft Graph API: Group.Read.All

Actual behavior

However, when I run $allPlannerPlansInGroup = Get-PnPPlannerPlan -Group $groupId -Connection $conn -erroraction stop in an Http triggered Azure Function (usingManaged Identity) I get a Graph Exception

Steps to reproduce behavior

Adding Tasks.ReadWrite.All permission to my managed Identity and it works image

remove the Tasks.ReadWrite.All permission and wait awhile and the exception pops up again.

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

2.4.0

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

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

I am not sure how to verify if this is a fluke and only is an issue when using Managed Identity in an Azure Function?

kasperbolarsen avatar Apr 26 '24 05:04 kasperbolarsen