This did work until there’s a significant amount of users:
$criteria = craft()->elements->getCriteria(ElementType::User); $users = $criteria->search('customField:' . $someValue);
I’m using search as I need to find a value within the custom field. The field is typically 1,2,3 and I need to check for one of those values.
I have also tried to limit it without success.
$criteria->groupId = 1; $criteria->limit = null;
What’s the best way to do this?
The users getting missed are those that had the fields I’m searching populated by another plugin. This looks as though the data is not being saved in the same way as when it’s entered manually in the CP.