列出 educationClass 的成员
命名空间:microsoft.graph
检索 educationClass 的 educationUser 成员。
此 API 可用于以下国家级云部署。
全局服务 | 美国政府 L4 | 美国政府 L5 (DOD) | 由世纪互联运营的中国 |
---|---|---|---|
✅ | ❌ | ❌ | ❌ |
权限
为此 API 选择标记为最低特权的权限。 只有在应用需要它时,才使用更高的特权权限。 有关委派权限和应用程序权限的详细信息,请参阅权限类型。 要了解有关这些权限的详细信息,请参阅 权限参考。
权限类型 | 最低特权权限 | 更高特权权限 |
---|---|---|
委派(工作或学校帐户) | EduRoster.ReadBasic | 不可用。 |
委派(个人 Microsoft 帐户) | 不支持。 | 不支持。 |
应用程序 | EduRoster.Read.All | EduRoster.ReadWrite.All、Member.Read.Hidden |
注意
请注意,如果使用委派令牌,成员只能看到有关其自己课程的信息。
HTTP 请求
GET /education/classes/{id}/members
可选的查询参数
此方法支持OData query parameters以帮助自定义响应,包括 $search
、$count
、 和 $filter
为该资源添加或更新项目时,将对它们进行专门索引,以便与 $count
和 $search
查询参数一起使用。 在添加或更新项目与在索引中可用之间可能会稍有延迟。
有关 OData 查询选项的详细信息,请参阅 OData 查询参数。
请求标头
标头 | 值 |
---|---|
Authorization | 持有者 {token}。 必填。 详细了解 身份验证和授权。 |
请求正文
请勿提供此方法的请求正文。
响应
如果成功,此方法会在响应正文中返回 200 OK
响应代码和 educationUser 对象的集合。
示例
请求
以下示例显示了一个请求。
GET https://graph.microsoft.com/v1.0/education/classes/7e4ec76c-8276-43ef-ba10-9aaa197cb212/members
响应
以下示例显示了相应的响应。
注意:为了提高可读性,可能缩短了此处显示的响应对象。
HTTP/1.1 200 OK
Content-type: application/json
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.educationUser)",
"value": [
{
"id": "87d349ed-44d7-43e1-9a83-5f2406dee5bd",
"accountEnabled": true,
"displayName": "Adele Vance",
"givenName": "Adele",
"surname": "Vance",
"userPrincipalName": "AdeleV@contoso.com",
"userType": "Member",
"primaryRole": "teacher",
"onPremisesInfo": {
"immutableId": null
},
"teacher": {}
},
{
"id": "b66ecf79-a093-4d51-86e0-efcc4531f37a",
"accountEnabled": true,
"displayName": "Christie Cline",
"givenName": "Christie",
"surname": "Cline",
"userPrincipalName": "ChristieC@contoso.com",
"userType": "Member",
"primaryRole": "student",
"onPremisesInfo": {
"immutableId": null
},
"student": {}
},
{
"id": "f5289423-7233-4d60-831a-fe107a8551cc",
"accountEnabled": true,
"displayName": "Ben Walters",
"givenName": "Ben",
"surname": "Walters",
"userPrincipalName": "BenW@contoso.com",
"userType": "Member",
"primaryRole": "student",
"onPremisesInfo": {
"immutableId": null
},
"student": {}
},
{
"id": "48d31887-5fad-4d73-a9f5-3c356e68a038",
"accountEnabled": true,
"displayName": "Megan Bowen",
"givenName": "Megan",
"surname": "Bowen",
"userPrincipalName": "MeganB@contoso.com",
"userType": "Member",
"primaryRole": "teacher",
"onPremisesInfo": {
"immutableId": null
},
"teacher": {}
},
{
"id": "c03e6eaa-b6ab-46d7-905b-73ec7ea1f755",
"accountEnabled": true,
"displayName": "Allan Deyoung",
"givenName": "Allan",
"surname": "Deyoung",
"userPrincipalName": "AllanD@contoso.com",
"userType": "Member",
"primaryRole": "student",
"onPremisesInfo": {
"immutableId": null
},
"student": {}
}
]
}