:+1:  You'll need to filter out deleted and inactive users too, though: https://github.com/dimagi/commcare-hq/blob/master/corehq/elastic.py#L43-L44