Yeah, you should be able to filter by doc_type WebUser and domain_memberships.role_id to serve the same purpose.  You can also tailor the query to return just the ids rather than the full matching doc.