1

我正在尝试开发一个与 O365 Groups 集成的应用程序,因为我需要我能获得的所有信息。当我调用“ https://graph.microsoft.com/v1.0/groups/ ”时使用 Graph API Explorer我得到这样的答案:

{
    "@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": "testgroup@fastgroup.onmicrosoft.com",
    "mailEnabled": true,
    "mailNickname": "testgroup",
    "onPremisesLastSyncDateTime": null,
    "onPremisesSecurityIdentifier": null,
    "onPremisesSyncEnabled": null,
    "proxyAddresses": [
        "SMTP:testgroup@fastgroup.onmicrosoft.com"
    ],
    "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。

谢谢!

4

1 回答 1

2

目前我们只返回具有 group.read.all 权限的组的基本属性。我们将在未来更改它以返回所有属性(只要登录用户有权读取组属性信息)。

现在您需要使用 group.readwrite.all 来获取组的完整属性。

一旦我们进行更新,我会更新这个答案。

希望这可以帮助,

于 2016-03-01T20:29:18.253 回答