Reputation: 615
I'm calling Microsoft Graph planner API and it returns 403 status code all the time.
This is the API URL: https://graph.microsoft.com/v1.0/users/{EMAIL}/planner/tasks that I'm calling.
I have updated all the required read and write permission in the Apps setting as required.
{
"error": {
"code": "",
"message": "You do not have the required permissions to access this item.",
"innerError": {
"request-id": "90b22f0a-6d22-4770-93dc-bf7fa2d9bcbb",
"date": "2019-05-20T10:58:07"
}
}
}
Also when I test from the Graph Explorer, I get the following response:
Upvotes: 0
Views: 655
Reputation: 1508
To read planner tasks you need Tasks.Read permission for delegated access, and Tasks.Read.All permission for application access.
Outdated Reply:
To be able to read Planner tasks, your app needs Groups.Read.All permission, which was missing in the request above.
Upvotes: 3