【问题标题】:How to get the "out of office status" from the microsoft graph api?如何从 microsoft graph api 获取“不在办公室状态”?
【发布时间】:2022-02-04 05:57:15
【问题描述】:

如何从 microsoft graph api 检索外出状态?我没有看到任何有关此信息的 REST 方法。

提前感谢您的帮助。

【问题讨论】:

    标签: rest microsoft-graph-api


    【解决方案1】:

    图表中有automaticRepliesSetting

    <ComplexType Name="mailboxSettings">
        <Property Name="automaticRepliesSetting" Type="microsoft.graph.automaticRepliesSetting"/>
        <Property Name="archiveFolder" Unicode="false" Type="Edm.String"/>
        <Property Name="timeZone" Unicode="false" Type="Edm.String"/>
        <Property Name="language" Type="microsoft.graph.localeInfo"/>
    </ComplexType>
    

    此处的文档:https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_get_mailboxsettings

    【讨论】:

    【解决方案2】:

    您现在可以通过 Graph Get presence beta 端点 获取外出消息。

    GET /me/presence
    GET /users/{id}/presence
    GET /communications/presences
    

    beta 端点响应将包含一个 outOfOfficeSettings 属性,其中包含外出消息

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-11-12
      • 1970-01-01
      • 2018-12-13
      • 2023-01-01
      • 2023-04-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多