MsGraph获取用户筛选器以仅获取个人帐户



是否有方法使用MsGraph用户API列出用户并仅过滤真实用户帐户?https://graph.microsoft.com/v1.0/users

目前,它返回个人,但也返回会议室和其他。

我看到你可以使用人API检索与你一起工作的人:

https://graph.microsoft.com/v1.0/users/{id | userPrincipalName}/people?$filter=personType/class eq 'Person' and personType/subclass eq 'OrganizationUser'

对于用户来说,有类似的东西吗?

谢谢!

当前选项是使用People API(如您所述(或Microsoft Graph Rest API Beta的List orgContacts端点。

GET https://graph.microsoft.com/beta/contacts

这将返回组织的组织联系人列表。

最新更新