Ahmad Harb
Ahmad Harb

Reputation: 615

Microsoft Graph - Planner and Teams APIs Return Failure (Status Code 403)

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:

enter image description here

Upvotes: 0

Views: 655

Answers (1)

Tarkan Sevilmis
Tarkan Sevilmis

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

Related Questions