microsoftgraph / microsoft-graph-explorer-v4

React/Redux version of Graph Explorer used to learn the Microsoft Graph Api
https://developer.microsoft.com/graph/graph-explorer
MIT License
214 stars 93 forks source link

Retrieve a list of plannertask objects assigned to a User. #1161

Closed samikhwaireh closed 2 years ago

samikhwaireh commented 3 years ago

Forbidden - 403 - 810ms. You need to consent to the permissions on the Modify permissions (Preview) tab graph

samikhwaireh commented 3 years ago

Forbidden - 403 - 810ms. You need to consent to the permissions on the Modify permissions (Preview) tab graph

I have a problem in retrieving the list of planner tasks for user, I gave all required permissions to the user, but didn't worked, any suggestions?

thewahome commented 3 years ago

@samikhwaireh I have reproduced this error.

@darrelmiller / @irvinesunday who is a contact to reach out to for the correct permissions? I have consented to all Task related permissions with no luck

RabebOthmani commented 2 years ago

@samikhwaireh @thewahome looking at the documentation https://docs.microsoft.com/en-us/graph/api/planneruser-list-tasks?view=graph-rest-1.0&tabs=http looks like a work or school account is required. Were you using a personal account?

samikhwaireh commented 2 years ago

@samikhwaireh @thewahome looking at the documentation https://docs.microsoft.com/en-us/graph/api/planneruser-list-tasks?view=graph-rest-1.0&tabs=http looks like a work or school account is required. Were you using a personal account?

I already use a work account

Onokaev commented 2 years ago

Hey @samikhwaireh @thewahome. I've just tested this endpoint, and it seems to be working

image

Help me confirm if it's working on your end

ghost commented 2 years ago

Hello samikhwaireh

Thank you for reporting your concern. Unfortunately, we in the Graph Explorer team do not have any ownership of the APIs that are causing you issues. If you report this issue in the Microsoft Q&A forum, it will get routed to the appropriate team for them to triage.

https://aka.ms/askgraph

Onokaev commented 2 years ago

I got a little confused with the exact query that you were running @samikhwaireh. The issue is still there. Here's the query for reference: https://developer.microsoft.com/en-us/graph/graph-explorer?request=users%2F%7Bcoworker-email%7D%2Fplanner%2Ftasks&method=GET&version=v1.0&GraphUrl=https://graph.microsoft.com

Let me find the other permissions that we need to make calls to this endpoint

ghost commented 2 years ago

Hello samikhwaireh

Thank you for reporting your concern. Unfortunately, we in the Graph Explorer team do not have any ownership of the APIs that are causing you issues. If you report this issue in the Microsoft Q&A forum, it will get routed to the appropriate team for them to triage.

https://aka.ms/askgraph

Onokaev commented 2 years ago

Hey @samikhwaireh. This issue is related to this other issue that was raised here: https://github.com/microsoftgraph/microsoft-graph-docs-contrib/issues/7086. From this, the endpoint does not support viewing tasks assigned to other users. You can only view your own tasks. You can confirm this with the query: https://developer.microsoft.com/en-us/graph/graph-explorer?request=users%2F%7Buser-id%7D%2Fplanner%2Ftasks&method=GET&version=v1.0&GraphUrl=https://graph.microsoft.com If you replace {user-id} with your own id, you'll get a response. However, if you replace it with a different user's id, it won't work as this is not permitted by the endpoint.

The issue I have attached has a workaround that works. Try that and let me know if you can access the planner tasks

ghost commented 2 years ago

Hello samikhwaireh

Thank you for reporting your concern. Unfortunately, we in the Graph Explorer team do not have any ownership of the APIs that are causing you issues. If you report this issue in the Microsoft Q&A forum, it will get routed to the appropriate team for them to triage.

https://aka.ms/askgraph

ghost commented 2 years ago

Hello samikhwaireh

Thank you for reporting your concern. Unfortunately, we in the Graph Explorer team do not have any ownership of the APIs that are causing you issues. If you report this issue in the Microsoft Q&A forum, it will get routed to the appropriate team for them to triage.

https://aka.ms/askgraph

ghost commented 2 years ago

Hello samikhwaireh

Thank you for reporting your concern. Unfortunately, we in the Graph Explorer team do not have any ownership of the APIs that are causing you issues. If you report this issue in the Microsoft Q&A forum, it will get routed to the appropriate team for them to triage.

https://aka.ms/askgraph

ghost commented 2 years ago

Hello samikhwaireh

Thank you for reporting your concern. Unfortunately, we in the Graph Explorer team do not have any ownership of the APIs that are causing you issues. If you report this issue in the Microsoft Q&A forum, it will get routed to the appropriate team for them to triage.

https://aka.ms/askgraph