Office365 O365图形API未使用筛选器启动

Office365 O365图形API未使用筛选器启动,office365,odata,office365api,Office365,Odata,Office365api,我正在做一个项目,我试图列出所有团队的集合 我发现我可以通过Graph API中的/groupsAPI访问它 以下是我的odata查询: https://graph.microsoft.com/v1.0/groups?$filter=startswith(displayName, 'SEC-') 此查询返回一组安全组。如果要编写查询以获取除安全组以外的所有内容,我尝试了以下操作: https://graph.microsoft.com/v1.0/groups?$filter=not(start

我正在做一个项目,我试图列出所有团队的集合

我发现我可以通过Graph API中的
/groups
API访问它

以下是我的odata查询:

https://graph.microsoft.com/v1.0/groups?$filter=startswith(displayName, 'SEC-')
此查询返回一组安全组。如果要编写查询以获取除安全组以外的所有内容,我尝试了以下操作:

https://graph.microsoft.com/v1.0/groups?$filter=not(startswith(displayName, 'SEC-'))

两者都返回了
错误请求

文档说明它们支持
not
startwith

帮忙

或者,我会接受针对
/groups
API的odata查询,该API只返回
Office 365团队
,不包括安全组和通讯组列表


谢谢大家!

基于Office 365中Graph的限制,我所尝试的是不可能的。

不幸的是,这可能类似于。
https://graph.microsoft.com/v1.0/groups?$filter=startswith(displayName, 'SEC-') eq false