没有经过验证的域,无法从schemaExtension获取值

时间:2018-06-01 14:09:08

标签: rest azure microsoft-graph

如果在没有未经验证的域的情况下创建schemaExtension,则它不会在查询中显示。例如,我创建了一个名为 ext46vln54c_ntest 的schemaExtension:

{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#schemaExtensions/$entity",
"id": "ext46vln54c_ntest",
"description": "Test",
"targetTypes": [
    "group",
    "user"
],
"status": "Available",
"owner": "677bfe9c-89e3-48a4-9009-63c6d3545ee3",
"properties": [
    {
        "name": "AgentId",
        "type": "String"
    },
    {
        "name": "AgentExtension",
        "type": "Integer"
    },
    {
        "name": "AgentConfigurationChanged",
        "type": "DateTime"
    },
    {
        "name": "AgentLogo",
        "type": "Binary"
    }
]
}

我将此扩展分配给现有组(API调用以我预期的方式返回204空体),但不知怎的,我无法使用$ select运算符取回指定的值,如下所示:

https://graph.microsoft.com/v1.0/groups/ {GROUP_ID}?$选择= ext46vln54c_ntest

首先,我认为API调用未成功,它将扩展分配给资源。但是,当我运行查询并尝试根据分配的扩展名查找资源时,它会找到该组。

https://graph.microsoft.com/v1.0/groups?$ filter = ext46vln54c_ntest / AgentExtension eq 3333

{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#groups",
"value": [
    {
        "id": "f810ad9f-2171-4684-b0dd-b34f7affcc4b",
        "deletedDateTime": null,
        "classification": null,
        "createdDateTime": "2018-05-31T11:08:21Z",
        "description": null,
        "displayName": "FirstTestGroup2",
        "groupTypes": [],
        "mail": null,
        "mailEnabled": false,
        "mailNickname": "First",
        "onPremisesLastSyncDateTime": null,
        "onPremisesProvisioningErrors": [],
        "onPremisesSecurityIdentifier": null,
        "onPremisesSyncEnabled": null,
        "preferredDataLocation": null,
        "proxyAddresses": [],
        "renewedDateTime": "2018-05-31T11:08:21Z",
        "resourceBehaviorOptions": [],
        "resourceProvisioningOptions": [],
        "securityEnabled": true,
        "visibility": null
    }
]
}

使用select运算符返回空对象。

https://graph.microsoft.com/v1.0/groups?$ filter = ext46vln54c_ntest / AgentExtension eq 3333& $ select = ext46vln54c_ntest

{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#groups(ext46vln54c_ntest)",
"value": [
    {}
]
}

我使用内置/现有扩展程序测试了相同的方案,例如adatumisv_courses然后它正常工作。

您知道如何获取指定的未经验证的扩展程序的值吗? 如果这不是预期的行为,那么有没有解决方法?

由于

0 个答案:

没有答案