代码之家  ›  专栏  ›  技术社区  ›  jcaron

Microsoft Graph beta findRooms未返回userPrincipalName

  •  1
  • jcaron  · 技术社区  · 7 年前

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

    userPrincipalName ,并可用于进一步查找(例如。 /v1.0/users/<email>/calendarView...

    • 这个 房间不会改变
    • 但是电子邮件地址会更改,这是 findRooms .

    id 所需的 /users/xxx/... 查找。

    如果 芬德罗姆斯 用户名PrincipalName 身份证件

    • 有没有办法把这些额外的信息 芬德罗姆斯 ? 我找不到。
    • users/xxx/calendarView 当电子邮件 这个 用户名PrincipalName
    1 回复  |  直到 7 年前
        1
  •  1
  •   Seiya Su    7 年前

    始终返回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}