使用Microsoft Graph API更新proxyAddresses [英] Updating proxyAddresses using Microsoft Graph API

查看:87
本文介绍了使用Microsoft Graph API更新proxyAddresses的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个Office365租户,但没有要同步的本地AD(是的,我们普遍在Linux上运行).我们的用户生活"在oracle数据库中.从那里将它们复制到我们使用的所有其他后端(OpenLDAP,MySQL,Kerberos ...甚至现在是Azure).

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).

我们正在使用用于Python的Microsoft Azure客户端库",并且能够创建和更新用户(我们必须扩展UserUpdateParameters类).

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.

有人知道如何使用python(azure,msrest)做到这一点吗?

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

顺便说一句:otherMails无法解决问题.

Btw: otherMails does not do the trick.

无论如何,对我来说,将其公开给其他API(例如Power Shell AD扩展)而不是公开给Graph API,似乎是不合理的.

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

Massimo Bassi

推荐答案

当前无法通过Microsoft Graph API在用户"上设置电子邮件地址.我们目前正在研究添加所需的支持,但没有预计到达时间.

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.

这篇关于使用Microsoft Graph API更新proxyAddresses的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆