Share via

https://graph.microsoft.com/v1.0/auditLogs/directoryAudits

Scropio 0 Reputation points
2024-01-25T03:43:34.1833333+00:00

Help filter results targetResources/modifiedProperties/displayName eq "AccountEnabled" from api https://graph.microsoft.com/v1.0/auditLogs/directoryAudits I am trying to use https://graph.microsoft.com/v1.0/auditLogs/ directoryAudits?$filter=targetResources/any(r:r/modifiedProperties/any(p:p/displayName eq 'AccountEnabled')) But there is an error "The Any/All nesting limit of '1' has been exceeded. 'MaxAnyAllExpressionDepth' can be configured on ODataQuerySettings or EnableQueryAttribute." and try adjusting it to https://graph.microsoft.com/v1.0/auditLogs/directoryAudits?$filter=targetResources/any(r:r/modifiedProperties/any(p:p/displayName eq 'AccountEnabled'))&$top=10&$ count=true&$maxanyallexpressiondepth=2 It still cannot be used and the same error occurs.

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

Microsoft Teams | Microsoft Teams for business | Other

1 answer

Sort by: Most helpful
  1. Vasil Michev 127K Reputation points MVP Volunteer Moderator
    2024-01-25T08:51:52.53+00:00

    You cannot nest multiple lambda operators... best filter this client-side.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.