通过 EWS 设置用户的 SimpleDisplayName

Setting user's SimpleDisplayName via EWS

我正在尝试更新使用 Exchange EWS 托管 API 的用户的 简单显示名称 属性,但我不确定哪个是正确的object/class 进行交互以更新用户的属性。

我尝试的是检索所有 UserSettingsName, with same code used and available in this example Exchange 2013: Get user settings with Autodiscover,但我要查找的 key/value 不存在。

使用 PowerShell Get-UserSet-User cmdlet 可以正确读取和设置值,如本文 Using the SimpleDisplayName attribute for Exchange and Exchange Online in Office 365 with PowerShell

中所述

$user = Get-User admin@contoso.onmicrosoft.com Set-User $user.Identity -SimpleDisplayName "My Display Name"

但我希望能够通过 EWSread/write 这个 属性 的值

您无法通过 EWS 设置或获取 属性,因为它不是用户可设置的 属性(例如,只有管理员才能更改此内容并且必须完成此操作通过管理界面,例如 EMS 或 EAC)。