Office365 Microsoft Graph beta findRooms未返回userPrincipalName

Office365 Microsoft Graph beta findRooms未返回userPrincipalName,office365,microsoft-graph-api,Office365,Microsoft Graph Api,使用/beta/users/xxx/findRooms调用时,API将返回电子邮件地址(和名称)列表 在大多数情况下,电子邮件地址与userPrincipalName相同,可用于进一步查找(例如/v1.0/users//calendarView…) 但是,如果文件室已重命名,且关联的电子邮件地址已更改: 房间的userPrincipalName不会更改 但是电子邮件地址将更改,这是由findRooms返回的地址 这意味着必须进行额外的查找,以将返回的名称或电子邮件地址转换为/users/xx

使用
/beta/users/xxx/findRooms
调用时,API将返回电子邮件地址(和名称)列表

在大多数情况下,电子邮件地址与
userPrincipalName
相同,可用于进一步查找(例如
/v1.0/users//calendarView…

但是,如果文件室已重命名,且关联的电子邮件地址已更改:

  • 房间的
    userPrincipalName
    不会更改
  • 但是电子邮件地址将更改,这是由
    findRooms
    返回的地址
这意味着必须进行额外的查找,以将返回的名称或电子邮件地址转换为
/users/xxx/…
查找所需的
userPrincipalName
id

如果
findRooms
返回房间的
userPrincipalName
和/或
id
,而不仅仅是姓名和电子邮件,那就太好了

在Microsoft修复此问题之前:

  • 有没有办法在
    findRooms
    中获取这些附加信息?我找不到
  • 当电子邮件不是
    userPrincipalName
    时,是否有办法直接在
    users/xxx/calendarView
    中使用返回的电子邮件

始终返回userPrincipalName不是默认行为,因此您可以在中提交功能请求或投票支持现有的功能请求

没有。目前没有合适的方法

否。要获取特定用户,我们必须使用以下端点(它需要userid或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?
GET /users/{id | userPrincipalName}