【发布时间】:2021-02-10 01:43:17
【问题描述】:
我正在尝试使用不可变 ID 查找 Azure 用户,但它不起作用。 手动查找 Azure 用户,我可以看到不可变 id 已填充(实际属性名称为“immutableId”),并且与我要查询的内容相匹配。
实际上,我无法使用任何过滤器检索任何用户,例如: https://graph.windows.net/{tenant}/users?&api-version={version}?$filter=startswith(displayName,'{startofuid}')
不同的测试uri:
https://graph.windows.net/{tenant}/users?&api-version={version}?$filter=immutableIdeq '{id}'
https://graph.windows.net/{tenant}/users?&api-version={version}?$filter=immutableId+eq+'{id}'
正常的资源查找工作:
https://graph.windows.net/{tenant}/users/{azureguid}?&api-version={version}
有什么想法可能是错的吗?
【问题讨论】:
-
尝试使用:
https://graph.microsoft.com/v1.0/users?$filter=onPremisesImmutableId+eq+'{id}'
标签: api graph azure-active-directory