【发布时间】:2016-03-01 01:47:08
【问题描述】:
我正在尝试使用 Azure AD 和 Microsoft Graph 为公司内部 Web 应用设置登录流程。我想管理 AD 中的安全组,因此当用户通过 OAuth 登录时,我正在向 https://graph.microsoft.com/v1.0/me/memberOf 发出 GET 请求,以查看登录用户所在的组。用户有适当的范围来查看此信息,它在 Graph Explorer 中有效,但是当我在我的 PHP 应用程序中进行调用时,我收到了格式错误的 JSON 响应:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#directoryObjects",
"value": [{
"@odata.type": "#microsoft.graph.group",
"objectType": "Group",
"objectId": "blahblah2",
"deletionTimestamp": null,
"description": "Users who have access to my web app's administration",
"dirSyncEnabled": null,
"displayName": "Web App Administrators",
"lastDirSyncTime": null,
"mail": null,
"mailNickname": "blahblah2",
"mailEnabled": false,
"onPremisesSecurityIdentifier": null {
"error": {
"code": "InternalServerError",
"message": "Unsupported extension property type.",
"innerError": {
"request-id": "blahblah3",
"date": "2016-02-29T09:42:18"
}
}
}
...这就是我得到的全部!
https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/entity-and-complex-type-reference#GroupEntity 的文档说这个 onPremisesSecurityIdentifier 字段与本地同步有关,但我从未使用过。
【问题讨论】:
标签: json azure microsoft-graph-api