office365 - Microsoft Graph beta findRooms 不返回 userPrincipalName
问题描述
使用/beta/users/xxx/findRooms
调用时,API 返回电子邮件地址(和姓名)列表。
在大多数情况下,电子邮件地址与 相同userPrincipalName
,可用于进一步查找(例如/v1.0/users/<email>/calendarView...
)。
但是,如果房间被重命名,并且关联的电子邮件地址发生了变化:
- 房间的
userPrincipalName
不会改变 - 但是电子邮件地址会改变,这是由
findRooms
.
userPrincipalName
这意味着必须进行额外的查找才能将返回的名称或电子邮件地址转换id
为查找所需的名称或电子邮件地址/users/xxx/...
。
如果findRooms
返回房间的userPrincipalName
和/或id
而不仅仅是姓名和电子邮件,那就太好了。
在 Microsoft 修复此问题之前:
- 有没有办法获得额外的信息
findRooms
?我找不到一个。 users/xxx/calendarView
当电子邮件不是时,有没有办法直接使用返回的电子邮件userPrincipalName
?
解决方案
始终返回 userPrincipalName 不是默认行为,因此您可以在UserVoice中提交功能请求或对现有请求进行投票。
is there a way to get that additional information in findRooms? I couldn't find one.
没有。目前没有合适的方法
is there a way to use the returned e-mail directly in users/xxx/calendarView when the e-mail is not the userPrincipalName?
不,要获取特定用户,我们必须使用以下端点(它需要 userid 或 userPrincipalName):
GET /users/{id | userPrincipalName}
推荐阅读
- reference - Typo3:我在哪里可以获得 TCA 类型的列表?
- azure - 我无法获取 Azure B2C 应用程序的电子邮件或配置文件范围,也无法调用 OIDC UserInfo 端点
- google-bigquery - 如何在 BigQuery SQL 编辑器上使用变量?
- apache - Xampp Apache 服务器无法启动 - “错误:Apache 意外关闭。”
- java - Java 8 流并从调用布尔方法设置属性
- json - 简单的 ?使用 AutoIt 进行 JSON 分析
- python - 在 Pandas 中排列字符串 Month 行的最简单方法是什么
- excel - Excel 问题 - 土耳其货币的自定义格式
- django - Django rest +vue.js excel文件下载损坏
- machine-learning - 如何找到一堆词簇的特征?