【问题标题】:GRAPH API Cannot filter enumGRAPH API 无法过滤枚举
【发布时间】:2018-08-20 09:02:12
【问题描述】:

我正在尝试使用以下方法过滤来自 AAD directoryAudits 的 SSPR 结果:- https://graph.microsoft.com/beta/auditLogs/directoryAudits?filter=categoryeq 'SSPR' 这很好用,但是如果我尝试过滤说结果: 结果 eq 成功 “结果”:“成功”
我得到错误: - "message": "字符串 'Microsoft.AAD.Reporting.operationResult'success'' 不是有效的枚举类型常量。", 所以我在元数据中搜索并找到了一些合适的枚举,并尝试了它们,但似乎没有任何效果! 这似乎是一件很简单的事情,但我似乎无法解决它。 我不确定它是只是这个字段,还是一般的枚举。 请帮忙:)

【问题讨论】:

标签: enums azure-ad-graph-api


【解决方案1】:

根据错误信息the string 'Microsoft.AAD.Reporting.operationResult'success'' is not a valid enumeration type constant,表示$filter success不支持

根据List directoryAudits API,$filter 支持以下属性。 但根据我的测试,您提到category 也受支持。

如果可能,您可以过滤客户端上的result 作为解决方法。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-09-22
    • 1970-01-01
    • 1970-01-01
    • 2012-07-29
    • 2021-02-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多