Office365 如何使用Microsoft Graph更新与Exchange相关的属性,如proxyAddresses和ExtensionAttribute 1

Office365 如何使用Microsoft Graph更新与Exchange相关的属性,如proxyAddresses和ExtensionAttribute 1,office365,microsoft-graph-api,office365-restapi,Office365,Microsoft Graph Api,Office365 Restapi,我想使用Microsoft Graph更新proxyAddresses和extensionAttribute1。 但是,proxyAddresses是只读的,extensionAttribute1是因为它不存在于$metadata中,无法更新 这实际上会导致一个错误 PATCH https://graph.microsoft.com/v1.0/users/test01@test.onmicrosoft.com { "proxyAddresses": [ "SMTP:tes

我想使用Microsoft Graph更新proxyAddresses和extensionAttribute1。
但是,proxyAddresses是只读的,extensionAttribute1是因为它不存在于$metadata中,无法更新

这实际上会导致一个错误

PATCH https://graph.microsoft.com/v1.0/users/test01@test.onmicrosoft.com
{
    "proxyAddresses": [
        "SMTP:test01@test.onmicrosoft.com",
        "smtp:test01-2@test.onmicrosoft.com"
    ]
}

response:
{
    "error": {
        "code": "Request_BadRequest",
        "message": "Property 'proxyAddresses' is read-only and cannot be set.",
        "innerError": {
            "request-id": "84c5ca8e-47ad-44e3-b98f-e6c37f9139b7",
            "date": "2016-06-22T15:53:35"
        }
    }
}


PATCH https://graph.microsoft.com/v1.0/users/test01@test.onmicrosoft.com
{
    "extensionAttribute1": "aaa"
}

response:
{
    "error": {
        "code": "Request_BadRequest",
        "message": "One or more extension property values specified are invalid.",
        "innerError": {
            "request-id": "cdd06584-70a8-4c82-8fa7-be520c28c0ee",
            "date": "2016-06-22T15:51:57"
        }
    }
}

请告诉我是否有更新的方法。

能否提供一些场景信息,说明为什么需要更新代理地址

对于extensionAttributes,这是我们很快将在MicrosoftGraph中公开的内容。不过,目前这些数据也可能是只读的,因为这些数据将在本地广告中掌握并同步到云

我们还有其他机制(在其中,您可以获取/设置为通用扩展性模型)


希望这有帮助,

不要劫持这个问题,但是能够通过Graph API直接更新proxyAddresses会有帮助。当您在EXO中创建邮箱时,它似乎不会立即将代理地址同步到Azure AD,因此,如果您对代理地址进行许可,Azure AD将把不正确的代理地址推回到EXO对象。