我正在尝试开发与O365组集成的应用程序,为此我需要获取所有信息。使用图形API资源管理器时,我称之为“https://graph.microsoft.com/v1.0/groups/” 我得到的答案是这样的:O365图形API,GET /组返回null实体
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#groups/$entity",
"id": "8143b56b-a4bb-43ef-8b17-a747b1cacec1",
"createdDateTime": "2016-02-23T11:03:33Z",
"description": "asd asd asd ",
"displayName": "Test Group",
"groupTypes": [
"Unified"
],
"mail": "[email protected]",
"mailEnabled": true,
"mailNickname": "testgroup",
"onPremisesLastSyncDateTime": null,
"onPremisesSecurityIdentifier": null,
"onPremisesSyncEnabled": null,
"proxyAddresses": [
"SMTP:[email protected]"
],
"renewedDateTime": "2016-02-23T11:03:33Z",
"securityEnabled": false,
"visibility": "Public"
}
但一旦我打电话从我的应用程序相同的功能,其余的我得到大多数实体为空,这样的:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#groups/$entity",
"id": "8143b56b-a4bb-43ef-8b17-a747b1cacec1",
"createdDateTime": null,
"description": null,
"displayName": "Test Group",
"groupTypes": [],
"mail": null,
"mailEnabled": null,
"mailNickname": null,
"onPremisesLastSyncDateTime": null,
"onPremisesSecurityIdentifier": null,
"onPremisesSyncEnabled": null,
"proxyAddresses": [],
"renewedDateTime": null,
"securityEnabled": null,
"visibility": null
}
有人能告诉我我失踪了吗?
在我的应用程序中访问令牌范围:Group.Read.All User.Read。
谢谢!
这确实有点奇怪,因为您的应用程序正在使用的权限。你能否提供一些更详细的信息,例如客户请求ID和呼叫的时间戳(你应该能够通过提琴手的踪迹看到这一点)。 –