azure-ad-graph-api - Azure AD Graph API:无法在任何函数下使用 StartsWith
问题描述
我想问一下在 Azure AD Graph Explorer 中查询时如何在 Any 函数中应用 StartsWith。
根据文档,以下是查询多值属性时的示例。
https://graph.windows.net/contoso.com/users?$filter=signInNames/any(x:x/value eq 'joe@example.com')&api-version=1.6
但是,该示例使用“ eq ”,这意味着它正在执行精确匹配。
如果我们可以在这种情况下执行StartsWith ,是否有可能?
我已经检查了本教程,但我得到了如下所示的错误。
使用“test”获取所有 SignName
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."
解决方案
推荐阅读
- angular - 清除数组时使用 Dialog 回调导致错误
- wordpress - 在网站上使用 yoast 插件后卸载
- angular - 如何防止恶意用户从 localStorage 中获取令牌来调用 REST API
- javascript - 如何检测特定元素或 div 是否在 jQuery 中滚动?
- ios - 如果视频仍未保存到照片中,如何获取视频的 PHAsset?
- android - 如何处理在 Recycler View 中创建的动态视图
- c - 即使分配了自由指针,它们也不起作用
- r - R - knitr::kable("html) - col.names from names(list)
- java - 在自身内部重复 for 循环
- scala - 如何在 zipWithIndex 之后映射无形 HList?