我想在图形 API 用户中搜索名字符合的每个人not从一些值开始
I tried
https://graph.microsoft.com/v1.0/users?$filter="NOT startswith(displayName,'J')"
https://graph.microsoft.com/v1.0/users?$filter=not(startswith(displayName,'J'))
但我得到
过滤子句无效
有什么办法可以实现这一点吗?
我实际上需要在 C# 中执行此操作,我遇到了同样的问题 - 我想知道是否有一种指定的方法NOT STARTSWITH
使用SDK?
string filter = String.Format("startswith(displayName,'J')");
List<QueryOption> options = new List<QueryOption>
{
new QueryOption("$filter", filter)
};
var users = await graphClient.Users
.Request(options)
.Top(500)
.GetAsync();
恐怕这种类型的过滤器不支持users
(或任何其他 Azure AD 资源)。来自文档 https://developer.microsoft.com/en-us/graph/docs/concepts/query_parameters#format-parameter:
下列$filter
Azure AD 资源不支持运算符:ne
, gt
, ge
, lt
, le
, and not
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)