question

EvansAboge-1036 avatar image
0 Votes"
EvansAboge-1036 asked EvansAboge-1036 answered

Unable to retrieve planner task for a user in my tenant

I am trying to retrieve a list of planner tasks for a user in my tenant admin on this endpoint: https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks using Graph Explorer (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)
The endpoint requires that I consent to these permissions: 211353-image.png


However, after consenting to all these permissions, the response I get is that I do not have the required permissions.

microsoft-graph-applicationsmicrosoft-graph-tasks-plans
image.png (180.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CarlZhao-MSFT avatar image
0 Votes"
CarlZhao-MSFT answered CarlZhao-MSFT commented

Hi @EvansAboge-1036

I noticed there is a same issue on GitHub, which currently doesn't allow viewing tasks assigned to other people.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @EvansAboge-1036
Would you please provide us with an update on the status of your issue?

0 Votes 0 ·
RajeshKumarMSFT-6137 avatar image
0 Votes"
RajeshKumarMSFT-6137 answered

Hi @EvansAboge-1036,

Hope you are doing well,

To get the planner task details for specific user please use the below Graph API Endpoint.
As per the screenshot attached we observed user ID values needs to be filled in the endpoint .
https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks
https://graph.microsoft.com/v1.0/users/xxxxxxxx/planner/tasks

Before running the endpoint please add User.ReadBasic.All permission.

Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

EvansAboge-1036 avatar image
0 Votes"
EvansAboge-1036 answered

Hey @RajeshKumarMSFT-6137. Apologies. I sent the wrong query:
211402-image.png


This is the one I have been trying to run. I have given consent for all the permissions required including User.ReadBasic.All but I still get that error


image.png (186.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

EvansAboge-1036 avatar image
0 Votes"
EvansAboge-1036 answered

Hey @CarlZhao-MSFT. Your response helped solve the issue. Thank you!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.