# PHP/API 检查用户是否存在（通过电子邮件）并属于特定组

**URL:** https://meta.discourse.org/t/php-api-to-check-whether-user-exists-by-email-and-is-in-specific-group/241814
**Category:** Development
**Tags:** rest-api
**Created:** [2022年十月13日 12:04 UTC](https://meta.discourse.org/t/php-api-to-check-whether-user-exists-by-email-and-is-in-specific-group/241814 "2022-10-13T12:04:35Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2022年十月13日 12:21 UTC](https://meta.discourse.org/t/php-api-to-check-whether-user-exists-by-email-and-is-in-specific-group/241814/2 "2022-10-13T12:21:13Z")

</div>

最好的办法是[逆向工程 Discourse API](https://meta.discourse.org/t/reverse-engineer-the-discourse-api/20576)，看看那些东西是如何工作的。

我认为可能还有另一个端点可以通过电子邮件地址获取用户，但 admin/users 上的那个应该可以工作。

---

_[View the full topic](https://meta.discourse.org/t/php-api-to-check-whether-user-exists-by-email-and-is-in-specific-group/241814)._
