Azure AD Graph API:无法在任何函数下使用 StartsWith
Azure AD Graph API: Unable to use StartsWith under Any function
想请教如何在Azure AD Graph Explorer中查询时在Any函数中应用StartsWith。
基于documentation,下面是查询多值属性时的示例。
https://graph.windows.net/contoso.com/users?$filter=signInNames/any(x:x/value eq 'joe@example.com')&api-version=1.6
但是,示例使用“eq”,这意味着它正在执行完全匹配。
是否可以在这种情况下执行StartsWith?
我已经检查过这个 tutorial 但我收到如下所示的错误。
获取所有带有“test”的 SignNames
https://graph.windows.net/myorganization/users?$filter=signInNames/any(x:x.startswith(x,'test'))
错误:
"value": "An unknown function with name 'x.startswith' was found. This may also be a key lookup on a navigation property, which is not allowed."
GET https://graph.windows.net/myorganization/users?$filter=signInNames/any(c:startswith(c/value, 'test'))
很遗憾,会报错:value only supports equals-match。不支持 PrefixMatch。
请使用以下查询 Azure 广告图中的登录名
https://graph.windows.net/myorganization/users?$filter=signInNames/any(c:c/value eq '***')
想请教如何在Azure AD Graph Explorer中查询时在Any函数中应用StartsWith。
基于documentation,下面是查询多值属性时的示例。
https://graph.windows.net/contoso.com/users?$filter=signInNames/any(x:x/value eq 'joe@example.com')&api-version=1.6
但是,示例使用“eq”,这意味着它正在执行完全匹配。
是否可以在这种情况下执行StartsWith?
我已经检查过这个 tutorial 但我收到如下所示的错误。
获取所有带有“test”的 SignNames
https://graph.windows.net/myorganization/users?$filter=signInNames/any(x:x.startswith(x,'test'))
错误:
"value": "An unknown function with name 'x.startswith' was found. This may also be a key lookup on a navigation property, which is not allowed."
GET https://graph.windows.net/myorganization/users?$filter=signInNames/any(c:startswith(c/value, 'test'))
很遗憾,会报错:value only supports equals-match。不支持 PrefixMatch。
请使用以下查询 Azure 广告图中的登录名
https://graph.windows.net/myorganization/users?$filter=signInNames/any(c:c/value eq '***')