Forum Discussion

ChaseOfSpades's avatar
ChaseOfSpades
Copper Contributor
Oct 07, 2022
Solved

Azure Dynamic Group query not working correctly

Here is my query:  user.memberof -any (group.objectId -in ["GroupIdA", "GroupIdB"]) -and user.memberof -any (group.objectId -in ["GroupIdC"])   I would like to only allow members into the dynami...
  • LainRobertson's avatar
    LainRobertson
    Oct 11, 2022

    ChaseOfSpades 

     

    I have to say, the parsing is frighteningly untrustworthy and inconsistent for this kind of scenario. But while a couple of other iterations produced unexpected results, the following example worked.

     

    Effectively, I brought the single group "and" criterion to the front and finished with the "or" criterion, which produces the correct resulting membership.

     

     

    Cheers,

    Lain

Resources