if (!empty($search)) {
            // only user backends have the capability to do a complex search for users
            $searchOffset = 0;
            $searchLimit = $limit * 100;
            if ($limit === -1) {