[英]Microsoft Graph OData query parameter $expand doesn't seem to work
I'm currently developing an application that uses an Azure AD instance. 我目前正在开发一个使用Azure AD实例的应用程序。 I'm trying to query this AD to sync the users to my system.
我正在尝试查询此AD以将用户同步到我的系统。 I want to retrieve all the users and their groups.
我想检索所有用户及其组。 The Microsoft Graph API has the following function for this operation:
Microsoft Graph API具有以下用于此操作的功能:
https://graph.microsoft.com/v1.0/users?$expand=memberOf
However, this gives me the same response as calling: https://graph.microsoft.com/v1.0/users
. 但是,这给了我与调用相同的响应:
https://graph.microsoft.com/v1.0/users
: https://graph.microsoft.com/v1.0/users
。 Users in my AD do have groups and I did try calling the api with $select
instead of $expand
, but also without result. 我AD中的用户确实有群组,我尝试使用
$select
而不是$expand
来调用api,但也没有结果。
Is this a bug? 这是一个错误吗? Am I doing something wrong?
难道我做错了什么?
Thanks! 谢谢!
Expanding navigation properties on user entities is currently not working on the production (v1.0). 扩展用户实体的导航属性当前不适用于生产(v1.0)。 Please see this post for more information: https://stackoverflow.com/a/39022980 .
有关更多信息,请参阅此帖子: https : //stackoverflow.com/a/39022980 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.