Unable to retrieve planner task for a user in my tenant

Evans Aboge 106 Reputation points Microsoft Employee
2022-06-14T13:31:25.263+00:00

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
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,521 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 36,736 Reputation points
    2022-06-15T07:59:03.467+00:00

    Hi @Evans Aboge

    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.


3 additional answers

Sort by: Most helpful
  1. RajeshKumarMSFT 1,971 Reputation points Microsoft Vendor
    2022-06-14T15:16:05.85+00:00

    Hi @Evans Aboge ,

    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.

    0 comments No comments

  2. Evans Aboge 106 Reputation points Microsoft Employee
    2022-06-14T15:46:11.07+00:00

    Hey @RajeshKumarMSFT . 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

    0 comments No comments

  3. Evans Aboge 106 Reputation points Microsoft Employee
    2022-06-17T06:49:53.127+00:00

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

    0 comments No comments