【问题标题】:O365 Graph API Not StartsWith filterO365 Graph API Not StartsWith 过滤器
【发布时间】:2020-11-06 17:55:51
【问题描述】:

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

我发现我可以使用 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-'))

与

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

两者都返回Bad Request

文档说他们支持not 和startwith

https://docs.microsoft.com/en-us/graph/query-parameters#filter-parameter

帮助?

或者,我会接受针对仅返回 Office 365 Teams 的 /groups API 的 odata 查询,不包括安全组和分发列表。

谢谢!

【问题讨论】:

  • 很遗憾,这可能类似于this。

标签: office365 odata office365api


【解决方案1】:

由于 Office 365 中 Graph 的限制,我尝试的操作是不可能的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-30
    • 1970-01-01
    • 2011-02-09
    • 1970-01-01
    • 1970-01-01
    • 2021-08-31
    相关资源
    最近更新 更多