We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    I just stumbled onto this post and thought I'd mention that the MODX user getList processor will filter by usergroup.

    $fields = array(
       'limit' => 0;
       'usergroup' => $groupId;
    );
    
    $users = $modx->runProcessor('security/user/getlist', $fields);


    The result will be a JSON object and you'll get some fields you may not want. The getList processor takes a 'where' property, but unfortunately, it can only be used to search for a specific user.
      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