# Programmatically create user with OAuth2 user ID

**URL:** <https://meta.discourse.org/t/programmatically-create-user-with-oauth2-user-id/196920>\
**Category:** Product Support\
**Created:** [July 12, 2021, 11:26pm UTC](https://meta.discourse.org/t/programmatically-create-user-with-oauth2-user-id/196920 "2021-07-12T23:26:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![gnuletik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gnuletik/32/227434_2.png) [@gnuletik](https://meta.discourse.org/u/gnuletik)\
**Post date:** [July 13, 2021, 10:29am UTC](https://meta.discourse.org/t/programmatically-create-user-with-oauth2-user-id/196920/3 "2021-07-13T10:29:49Z")

</div>

Thanks for your feedback !  
I’d like to not worry about it but I need to be able to get user from my provider ID ( `GET /u/by-external/oauth2_basic/{external_uid}`).  
This is not possible until the user manually logs in through UI (I want to avoid that).

---

_[View the full topic](https://meta.discourse.org/t/programmatically-create-user-with-oauth2-user-id/196920)._
