我GET
用一个有效的令牌做一个
https://graph.microsoft.com/beta/deviceManagement/managedDevices
我得到这个错误:
{
"error": {
"code": "UnknownError",
"message": {
"ErrorCode": "Forbidden",
"Message": {
"_version ": 3,
"Message": "An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: c0edc6b3-3d79-431f-b224-b034524e565c - Url: https://fef.msua02.manage.microsoft.com/DeviceFE/StatelessDeviceFEService/deviceManagement/managedDevices?api-version=5018-07-19",
"CustomApiErrorPhrase": "",
"RetryAfter": null,
"ErrorSourceService": "",
"HttpHeaders": {
"WWW-Authenticate": "Bearer realm=urn:intune:service,f0f3c450-59bf-4f0d-b1b2-0ef84ddfe3c7"
}
},
"Target": null,
"Details": null,
"InnerError": null,
"InstanceAnnotations": []
},
"innerError": {
"request-id": "c0edc6b3-3d79-431f-b224-b034524e565c",
"date": "2018-09-21T15:27:35"
}
}
}
如果我使用 PowerShell 和Microsoft的示例代码做同样的事情,我会成功获得设备列表。
有没有人遇到过同样的问题?