简体   繁体   English

Microsoft Graph API 瞬态用户过滤器

[英]Microsoft Graph API transient user filter

Is there a way for me to get back ONLY users when I call List group transitive users in graph API?当我在图表 API 中调用列表组传递用户时,有没有办法让我只取回用户?

The response I get has objects for groups as well as users EG:我得到的响应包含组和用户 EG 的对象:

{group: IT support},

{user: Kevin},
{user: Bob},
{user: Phil},

{group: Developers},

{user:phil}

Id like to be able to filter out the group objects but no dice.我希望能够过滤掉组对象但没有骰子。 Has anyone been able to do this before?有没有人能够做到这一点? Thanks谢谢

Usually, we can use $filter query parameter to retrieve the response we need, but it seems that '@odata.type' is not supported to be a query param here.通常,我们可以使用$filter查询参数来检索我们需要的响应,但是这里似乎不支持 '@odata.type' 作为查询参数。 I will double confirm with Azure support engineer.我将与 Azure 支持工程师再次确认。

By the way, the response is in json format, you can write a filter yourself to get the user objects only.顺便说一句,响应是 json 格式,您可以自己编写过滤器来仅获取用户对象。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM