Best way to search users by a custom field inside a plugin?
Does something like this work? You might need to add some wildcards as documented here to run the right kind of search.

$criteria = craft()-&gt;elements-&gt;getCriteria(ElementType::User);
$users = $criteria-&gt;search('customField: *' . $someValue.'*');