我正在使用/ delta API使用client_credential访问令牌为租户域的用户获取文件。对于某些用户,我得到
{
"error": {
"code": "invalidRequest",
"message": "Call was made to the default drive, which is not supported for apponly tokens.",
"innerError": {
"request-id": "xxxxx-xxx-xxxxx-xxx-xxxx-xxx",
"date": "201x-0x-xxTxx:19:46"
}
}
}
在击中/users/{user-id}/drive
或/users/{user-id}/drive/root/delta
我检查用户是否具有oneDrive许可证,并通过/ users api的ProvisionedPlans属性对其进行了验证
"provisionedPlans": [
{
"capabilityStatus": "Enabled",
"provisioningStatus": "Success",
"service": "SharePoint"
},
{
"capabilityStatus": "Enabled",
"provisioningStatus": "Success",
"service": "SharePoint"
},
{
"capabilityStatus": "Enabled",
"provisioningStatus": "Success",
"service": "exchange"
},
{
"capabilityStatus": "Enabled",
"provisioningStatus": "Success",
"service": "MicrosoftCommunicationsOnline"
}
],
对于许多具有相同许可证/计划的其他用户来说,它运行良好
那么,仅某些用户出错的原因可能是什么?