如何为人员组件指定人员查询?

How to specify the people query for the people component?

我需要做什么来过滤人员图调用的响应?例如,我只需要 return 人(而不是会议室) https://graph.microsoft.com/v1.0/me/people/?$filter=personType/class eq 'Person' 和 personType/subclass eq 'OrganizationUser'"

我假设您指的是 Microsoft Graph 工具包中的 mgt-people 组件?该组件不支持自定义查询,但我鼓励您创建一个功能请求以添加该支持

您还可以查看 mgt-get,它允许您更详细地指定您希望从 Graph 返回的数据。在 https://mgt.dev/?path=/docs/components-mgt-get--get-email

的 mgt-get 组件上查看资源 attribute/property