We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49659
    • 86 Posts
    With the 'GetExtUsers' snippet, is there a way to construct the '&where=' string to restrict the user list to members of a defined group, or more than one defined group?

    I'm wanting to use 'GetExtUsers' rather than 'PeopleGroup', because I have extra user fields to list (from Bob Ray's ClassExtender).

    Thanks in advance,

    Karl
      • 3749
      • 24,544 Posts
      getExtUsers will accept a &where property that's a JSON string, but since the user group memberships are in a separate table, it would require a join and I can't think of a way to do it without a custom snippet. Maybe someone else can.

        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting