列出 attendanceRecords

命名空间:microsoft.graph

重要

Microsoft Graph /beta 版本下的 API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。

获取 attendanceRecord 对象及其属性的列表。

提示

检索考勤记录的一种更方便方法是使用 expand 查询选项将其与考勤报告一致。 有关示例和更多详细信息,请参阅 获取出席报告

此 API 可用于以下国家级云部署

全局服务 美国政府 L4 美国政府 L5 (DOD) 由世纪互联运营的中国

权限

为此 API 选择标记为最低特权的权限。 只有在应用需要它时,才使用更高的特权权限。 有关委派权限和应用程序权限的详细信息,请参阅权限类型。 要了解有关这些权限的详细信息,请参阅 权限参考

权限类型 最低特权权限 更高特权权限
委派(工作或学校帐户) OnlineMeetingArtifact.Read.All 不可用。
委派(个人 Microsoft 帐户) 不支持。 不支持。
应用程序 OnlineMeetingArtifact.Read.All 不可用。

若要对此 API 使用应用程序权限,租户管理员必须创建应用程序访问策略并将其授予用户。 这将授权策略中配置的应用使用请求路径) 中指定的用户 ID 代表该用户 (提取联机会议和/或联机会议项目。 有关详细信息,请参阅 允许应用程序代表用户访问联机会议

HTTP 请求

若要获取具有委派 () 和应用 /users/{userId} (/me) 权限的出席记录,请执行以下操作:

GET /me/onlineMeetings/{meetingId}/attendanceReports/{reportId}/attendanceRecords
GET /users/{userId}/onlineMeetings/{meetingId}/attendanceReports/{reportId}/attendanceRecords

若要获取网络研讨会会议的出席记录,请执行以下操作:

GET /solutions/virtualEvents/webinars/{webinarId}/sessions/{sessionId}/attendanceReports/{reportId}/attendanceRecords

可选的查询参数

此方法支持使用 OData 查询参数来帮助自定义响应。

请求标头

名称 说明
Authorization 持有者 {token}。 必填。 详细了解 身份验证和授权

请求正文

请勿提供此方法的请求正文。

响应

如果成功,此方法在 200 OK 响应正文中返回响应代码和 attendanceRecord 对象集合。

示例

示例 1:列出出席记录

请求

GET https://graph.microsoft.com/beta/me/onlineMeetings/{meetingId}/attendanceReports/{reportId}/attendanceRecords

响应

注意:为了提高可读性,可能缩短了此处显示的响应对象。

HTTP/1.1 200 OK
Content-Type: application/json

{
  "value": [
    {
      "emailAddress": "frederick.cormier@contoso.com",
      "totalAttendanceInSeconds": 322,
      "role": "Organizer",
      "registrantId": null,
      "identity": {
        "id": "dc17674c-81d9-4adb-bfb2-8f6a442e4623",
        "displayName": "Frederick Cormier",
        "tenantId": null
      },
      "attendanceIntervals": [
        {
          "joinDateTime": "2021-10-05T04:38:27.6027225Z",
          "leaveDateTime": "2021-10-05T04:43:49.7702391Z",
          "durationInSeconds": 322
        }
      ]
    },
    {
      "emailAddress": "lisa.adkins@contoso.com",
      "totalAttendanceInSeconds": 314,
      "role": "Presenter",
      "registrantId": null,
      "identity": {
        "id": "57caaef9-5ed0-48d5-8862-e5abfa71b3e9",
        "displayName": "Lisa Adkins",
        "tenantId": null
      },
      "attendanceIntervals": [
        {
          "joinDateTime": "2021-10-04T23:13:43.3776519Z",
          "leaveDateTime": "2021-10-04T23:18:57.5639338Z",
          "durationInSeconds": 314
        }
      ]
    }
  ]
}

示例 2:列出包含Azure 通信服务用户的出席记录

请求

GET https://graph.microsoft.com/beta/me/onlineMeetings/{meetingId}/attendanceReports/{reportId}/attendanceRecords

响应

注意:为了提高可读性,可能缩短了此处显示的响应对象。

HTTP/1.1 200 OK
Content-Type: application/json

{
  "value": [
      {
        "id": "00000012-518d-e776-71d3-44482200c7c4",
        "emailAddress": "",
        "totalAttendanceInSeconds": 274,
        "role": "Presenter",
        "registrantId": null,
        "identity": {
            "@odata.type": "#microsoft.graph.azureCommunicationServicesUserIdentity",
            "id": "8:acs:0c6204c3-70b6-4981-9f2c-5194ced1cdd1_00000012-518d-e776-71d3-44482200c7c3",
            "displayName": "Misty Croft",
            "azureCommunicationServicesResourceId": "0c6204c3-70b6-4981-9f2c-5194ced1cdd1"
        },
        "attendanceIntervals": [
            {
                "joinDateTime": "2022-06-29T22:54:43.656285Z",
                "leaveDateTime": "2022-06-29T22:59:18.5180137Z",
                "durationInSeconds": 274
            }
        ]
      },
      {
          "id": "57caaef9-5ed0-48d5-8862-e5abfa71b3e7",
          "emailAddress": "RayBonilla@contoso.com",
          "totalAttendanceInSeconds": 209,
          "role": "Presenter",
          "registrantId": null,
          "identity": {
              "@odata.type": "#microsoft.graph.communicationsUserIdentity",
              "id": "57caaef9-5ed0-48d5-8862-e5abfa71b3e7",
              "displayName": "Raymond  Bonilla",
              "tenantId": "160eec3a-e45f-488b-b127-3dd106c48843"
          },
          "attendanceIntervals": [
              {
                  "joinDateTime": "2022-06-29T22:55:49.1084865Z",
                  "leaveDateTime": "2022-06-29T22:59:18.5180137Z",
                  "durationInSeconds": 209
              }
          ]
      }
  ]
}

示例 3:列出网络研讨会的出席情况报告的出席记录

请求

以下示例显示了一个请求。

GET https://graph.microsoft.com/beta/solutions/virtualEvents/webinars/{webinarId}/sessions/{sessionId}/attendanceReports/{reportId}/attendancerecords

响应

以下示例显示了相应的响应。

注意:为了提高可读性,可能缩短了此处显示的响应对象。

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#solutions/virtualEvents/webinars('336f94f4-3a81-5130-43e9-88f3-fcb3582cde37')/sessions('a0f934c324b7785c')/attendanceReports('2c2454-7613-4d6e-9c7c-4c8')/attendancerecords",
   "value": [
    {
      "emailAddress": "frederick.cormier@contoso.com",
      "totalAttendanceInSeconds": 322,
      "role": "Organizer",
      "registrantId": null,
      "identity": {
        "id": "dc17674c-81d9-4adb-bfb2-8f6a442e4623",
        "displayName": "Frederick Cormier",
        "tenantId": null
      },
      "attendanceIntervals": [
        {
          "joinDateTime": "2021-10-05T04:38:27.6027225Z",
          "leaveDateTime": "2021-10-05T04:43:49.7702391Z",
          "durationInSeconds": 322
        }
      ]
    },
    {
      "emailAddress": "lisa.adkins@contoso.com",
      "totalAttendanceInSeconds": 314,
      "role": "Presenter",
      "registrantId": null,
      "identity": {
        "id": "57caaef9-5ed0-48d5-8862-e5abfa71b3e9",
        "displayName": "Lisa Adkins",
        "tenantId": null
      },
      "attendanceIntervals": [
        {
          "joinDateTime": "2021-10-04T23:13:43.3776519Z",
          "leaveDateTime": "2021-10-04T23:18:57.5639338Z",
          "durationInSeconds": 314
        }
      ]
    }
  ]
}