Updating proxyAddresses using Microsoft Graph API

放肆的年华 提交于 2019-12-11 04:44:21

问题


We have an Office365 Tenant but no on-premises AD to sync from (yes, we run prevalently on linux). Our users "live" in an oracle database. From there they are replicated to all the other back-ends we use (OpenLDAP, MySQL, Kerberos, ... and now even Azure).

We are using "Microsoft Azure Client Libraries for Python" and are able to create and update users (we had to extend the class UserUpdateParameters).

But when it comes to update/set the users mail aliases (users have multiple local parts and perhaps more than one domain name part) we get the following exception:

Traceback (most recent call last):
  File "update.max_sgv.py", line 87, in <module>
    uu = graphrbac_client.users.update(object_id, parameters)
  File "/usr/local/lib/python2.7/dist-packages/azure/graphrbac/operations/users_operations.py", line 275, in update
    raise models.GraphErrorException(self._deserialize, response)
azure.graphrbac.models.graph_error.GraphErrorException: Property 'proxyAddresses' is read-only and cannot be set.

Has anybody an idea how to do this with python (azure, msrest)?

Btw: otherMails does not do the trick.

Anyhow, it'is not plausible to me to expose it to others APIs (for instance power shell AD extension) but not to the Graph API.

Thank you for your time and hopefully for your suggestions too.

Massimo Bassi


回答1:


There is no way to set email address on User currently through Microsoft Graph API. We are currently investigating adding the needed support, but there is no ETA.



来源:https://stackoverflow.com/questions/41961856/updating-proxyaddresses-using-microsoft-graph-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!