POST to /planner/tasks on Premium Plan Fails error 403

David E. Craig 0 Reputation points
2024-10-09T05:08:38.6333333+00:00

Description

When I try to create a Task on one of the new Premium Plans in Microsoft Planner via the graph API endpoint: /planner/tasks, I get an error 403. If I do the same to an older existing or new Basic Plan, it works fine.

Repro

  1. You need a Planner Premium 1 added to your subscription
  2. Go into Teams
  3. Add the Planner add to your Teams bar
  4. Open Planner from Teams button
  5. New Plan in lower left
  6. Select Premium Plan and create it
  7. Add a single task titled: "Help!"
  8. Go to Graph Explorer, sign-in and get a list of plans /me/planner/plans, find your plan ID
  9. Now /planner/plans/{id}/buckets and get the ID for the bucket
  10. Now enter this into the body:
       {
         "title": "simple test",
         "bucketId": "{bucket id}",
         "planId": "{plan id}",
         "orderHint": " !"
       }
    
  11. Change URI to: /planner/tasks and type to POST
  12. Submit

RESULT: Error 403: You do not have the required permissions to access this item, or the item may not exist.

EXPECT: The task to submit

NOTE: You can GET on that endpoint...

  1. Change the type to GET leave at /planner/tasks
  2. Submit

RESULT: You will get the result where the task you created in step 7 above: "HELP!" appears.

EXPECT: Same

Conclusion

So, it the GET on the endpoint works, why does not the POST operation?

Am I the first to encounter this? I do not see it documented anywhere in the Planner Graph API documentation. I look for a new permission to add in my application, but not sure what would apply here.

Please Help!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,039 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 4,800 Reputation points Microsoft Vendor
    2024-10-09T07:06:41.8433333+00:00

    Hello David E. Craig,

    Thank you for reaching out to Microsoft Support!

    I followed your steps to reproduce, but did not encounter your error, as shown below:

    Screenshot 2024-10-09 070146

    Screenshot 2024-10-09 070159

    Screenshot 2024-10-09 070215

    Please check whether the permission is not authorized. It is worth mentioning that this feature does not support personal accounts, please check.

    User's image

    Reference document:

    https://learn.microsoft.com/en-us/graph/api/planner-post-buckets?view=graph-rest-1.0&tabs=http

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.