PHP/API לבדיקה האם משתמש קיים (לפי אימייל) ושייך לקבוצה ספציפית

Your best bet is to Reverse engineer the Discourse API to see how those things work.

I think there may be another endpoint to get user by email address, but the one on admin/users should work.