Warm tip: This article is reproduced from stackoverflow.com, please click
microsoft-graph oauth-2.0 bearer-token

Microsoft Graph API

发布于 2020-03-27 15:47:34

I created standalone application on node.js authorized in AAD with client/secret with permissions to access groups, sites, directories. I managed to create Teams group and team by Microsoft Graph API but when I tried to fetch sites/root or drives

https://graph.microsoft.com/v1.0/groups/{groupId}/sites/root
https://graph.microsoft.com/v1.0/groups/{groupId}/drive

I received 500 Internal Server Error:

 {
  "error": {
    "code": "generalException",
    "message": "An unspecified error has occurred.",
    "innerError": {
      "request-id": (....),
      "date": "2020-01-31T09:15:17"
    }
  }
}

Is access to sites and drives possible by Graph API with app token?

Questioner
Paulina Kaczmarek
Viewed
91
Paulina Kaczmarek 2020-02-03 16:45

the error is causing by using "Group.Create","Group.ReadWrite.All" together