# 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:** [2017 年 4 月 7 日午後 6:40 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:** 6

<div class="post-metadata">

**Author:** ![kraml](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kraml/32/68627_2.png) [@kraml](https://meta.discourse.org/u/kraml)\
**Post date:** [2017 年 4 月 9 日午後 1:39 UTC](https://meta.discourse.org/t/api-request-to-users-by-external-on-private-forum/60609/6 "2017-04-09T13:39:21Z")

</div>

Really? I can make success API request to /users/by-external on my forum which has login\_required on.

> [@simon](#):
>
> 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.

I don’t get the point here. You can make API call by using a predefined username that you know for sure exists in your forum, such as system or admin user. Thus before you get any knowledge of any user in Discourse, you can make the API call to find out the information for a given ID from external SSO provider. That’s the point and why the API endpoint name is “by-external”.

---

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