图形查询错误 [英] Graph query error

查看:75
本文介绍了图形查询错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在通过图表进行查询时发现错误。

如果我运行此查询https://graph.microsoft.com/beta/groups/xxx-xxx-xx-xxx/members它返回正确的组成员。

但如果我检查其中一个用户(https://graph.microsoft.com/v1.0/users/myuser@mycompany.com/memberof)它看起来用户不在该组的成员中。

关于其余成员,他们正确地成为成员。

I noticed an error when doing a query via graph.
If I run this query https://graph.microsoft.com/beta/groups/xxx-xxx-xx-xxx/members it returns the correct members of group.
But if I check one of those users (https://graph.microsoft.com/v1.0/users/myuser@mycompany.com/memberof) it looks like the user is not in member of that group.
Regarding the remaining members, they result correctly as members.

推荐答案

嗨suoku,

Hi suoku,

我研究了你的查询。是的,查询(https://graph.microsoft.com/beta/groups/xxx-xxx-xx-xxx/members)返回活动目录中的所有用户。但是当您使用以下查询查找特定用户时,它会返回该用户的元数据。

I researched on your query. Yes, the query (https://graph.microsoft.com/beta/groups/xxx-xxx-xx-xxx/members) returns all the users in active directory. But when you are looking for specific user with the below query, it returns the metadata of that user.

https://graph.microsoft.com/v1.0/users/abcd@ Txxxx1090.onmicrosoft.com/memberof

https://graph.microsoft.com/v1.0/users/abcd@Txxxx1090.onmicrosoft.com/memberof

只有当用户的源是azure活动目录时,上述查询才会返回有关用户的元数据信息。如果您将用户添加为来宾用户,则该来源将不是Azure AD,因此该用户的元数据信息不会来自Azure
Active Directory,该用户的身份提供商不同,这就是上面的查询不会返回有关该用户的元数据信息。

The above query returns the metadata information about the user only if the source of the user is azure active directory. If you add a user as a guest user the source would not be Azure AD, so the metadata information for that user will not come from Azure Active Directory, the identity provider for that user is different, that is the reason the above query does not returns the metadata information about that user.

在您的情况下,其余用户是Azure活动目录的一部分。

In your case, the remaining users are part of Azure active directory.

下面是在用户的图像中,元数据信息仅供两个用户使用(标记为红色):

Below is the image of users, the metadata information only comes for two users (marked in red):

我希望这会有所帮助。

谢谢。


这篇关于图形查询错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆