# API request to users/by-external on private forum

**URL:** <https://meta.discourse.org/t/api-request-to-users-by-external-on-private-forum/60609>\
**Category:** Development\
**Created:** [April 7, 2017, 6:40pm UTC](https://meta.discourse.org/t/api-request-to-users-by-external-on-private-forum/60609 "2017-04-07T18:40:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [April 8, 2017, 8:55pm UTC](https://meta.discourse.org/t/api-request-to-users-by-external-on-private-forum/60609/4 "2017-04-08T20:55:28Z")

</div>

I’ve looked at this some more. It seems that it’s not possible to make an API request to `/users/by-external` on a private forum. If it was possible to do it without authentication, it would be a security breach. With authentication, you need to know the API key and username of the user you are looking for by the `external_id`, but if you already have that information, there’s no need to make the request.

For my purpose, what I really need to know is the WordPress user’s Discourse id. The best approach to getting that seems to be to use a Discourse webhook to send the user data to WordPress when the user is created or updated on Discourse. That data can then be stored on WordPress.

---

_[View the full topic](https://meta.discourse.org/t/api-request-to-users-by-external-on-private-forum/60609)._
