简体   繁体   English

Microsoft Graph:展开 transitiveMemberOf 不返回嵌套组

[英]Microsoft Graph: Expand transitiveMemberOf does not return nested groups

I am calling Microsoft's Graph API to retrieve user data via the /me endpoint, using $expand=transitiveMemberOf to get the user's groups both direct and indirect.我正在调用 Microsoft 的 Graph API 通过/me端点检索用户数据,使用$expand=transitiveMemberOf直接和间接获取用户组。

Before I had been using $expand=memberOf to just get direct groups which was sufficient.在我一直使用$expand=memberOf来获取直接组之前,这就足够了。 However, I now need to get indirect memberships aswell.但是,我现在也需要获得间接会员资格。

The problem I am facing is that $expand=transitiveMemberOf seems to just be returning the same groups as $expand=memberOf .我面临的问题是$expand=transitiveMemberOf似乎只是返回与$expand=memberOf相同的组。

Due to the implementation, which I cannot change, I am restricted to a single API call, in which I also require information provided by /me .由于我无法更改的实现,我仅限于单个 API 调用,其中我还需要/me提供的信息。

Am I missing something or is this a bug in Microsoft's API?我是否遗漏了什么或者这是 Microsoft 的 API 中的错误?

Any help appreciated:)任何帮助表示赞赏:)

Created a new bug for the issue, dev team will help you to fix that issue - https://github.com/microsoftgraph/microsoft-graph-docs/issues/16118为该问题创建了一个新错误,开发团队将帮助您解决该问题 - https://github.com/microsoftgraph/microsoft-graph-docs/issues/16118

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

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