Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate missing permissions for GET /groups/{group-id}/planner #361

Open
peombwa opened this issue Apr 13, 2023 · 2 comments
Open

Investigate missing permissions for GET /groups/{group-id}/planner #361

peombwa opened this issue Apr 13, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@peombwa
Copy link
Member

peombwa commented Apr 13, 2023

Describe the bug
Missing permissions for GET /groups/{group-id}/planner.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Graph Explorer.
  2. Use GET /groups/{group-id}/planner as the request URL
  3. Click on the permissions tab.
  4. See missing permissions:

image

Expected behavior
Permissions for GET /groups/{group-id}/planner should be present.

@peombwa
Copy link
Member Author

peombwa commented Jul 25, 2023

Downstream tools are also missing permissions for GET /groups/{group-id}/calendar. See microsoftgraph/msgraph-sdk-powershell#2171 for more details.

@robinmalik
Copy link

robinmalik commented Aug 4, 2023

Is there any update on this? It's crippling our attempts to move to the Graph API and unfortunately the API reference isn't always a solution. Example:

I want to run Remove-MgDirectoryDeletedItem. Permissions are unavailable with Find-MgGraphCommand.

The associated Graph API documentation (https://learn.microsoft.com/en-us/graph/api/directory-deleteditems-delete?view=graph-rest-1.0&tabs=http) suggests connecting with Group.ReadWrite.All is sufficient to delete a deleted group permanently. However even when trying this using a global admin account the cmdlet returns:

Remove-MgDirectoryDeletedItem_Delete: Insufficient privileges to complete the operation.

Status: 403 (Forbidden)
ErrorCode: Authorization_RequestDenied
Date: 2023-08-04T14:47:45

Headers:
Cache-Control                 : no-cache
Transfer-Encoding             : chunked
Vary                          : Accept-Encoding
Strict-Transport-Security     : max-age=31536000
request-id                    : e54e34b6-b55b-46f4-b410-65dc30e503fd
client-request-id             : 01396d73-975b-494e-bd2a-48def72683e8
x-ms-ags-diagnostic           : {"ServerInfo":{"DataCenter":"UK South","Slice":"E","Ring":"3","ScaleUnit":"004","RoleInstance":"LO1PEPF00001D5A"}}
x-ms-resource-unit            : 1
Date                          : Fri, 04 Aug 2023 14:47:44 GMT

Edit: I found a solution to the 403 error here: microsoftgraph/msgraph-sdk-powershell#92

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants