Microsoft Graph API-提取站点/根目录和驱动器时的常规异常

问题描述 投票:0回答:1

我在AAD中授权的node.js上创建了独立应用程序,该客户端/秘密具有访问组,站点,目录的权限。我设法通过Microsoft Graph API创建了Teams组和团队,但是当我尝试获取sites/rootdrives

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

我收到500个内部服务器错误:

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

使用应用程序令牌的Graph API是否可以访问站点和驱动器?

oauth-2.0 microsoft-graph bearer-token
1个回答
0
投票

是的,有可能。这里的一种可能性是,如果您在创建团队后立即尝试访问驱动器或站点,则可能尚未配置它们。可能会发生一些延迟,通常最多只有几分钟。

© www.soinside.com 2019 - 2024. All rights reserved.