# Add a new user via API

**URL:** https://meta.discourse.org/t/add-a-new-user-via-api/291683
**Category:** Development
**Tags:** rest-api
**Created:** [January 15, 2024, 4:19pm UTC](https://meta.discourse.org/t/add-a-new-user-via-api/291683 "2024-01-15T16:19:31Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [January 15, 2024, 5:19pm UTC](https://meta.discourse.org/t/add-a-new-user-via-api/291683/2 "2024-01-15T17:19:52Z")

</div>

For the user to use Discourse, they need to be signed in.

With SSO a new account is created when they attempt to log in if one does not exist already, so why not just let it happen organically?

I assume you are using [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true)?:

> [@Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/setup-discourseconnect-official-single-sign-on-for-discourse-sso/13045):
>
> [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) is a core Discourse feature that allows you to configure “Single Sign-On (SSO)” to completely outsource all user registration and login from Discourse to another site. Offered to our [pro, business and enterprise hosting customers](https://discourse.org/pricing). information_source (Feb 2021) ‘[Discourse SSO](https://meta.discourse.org/t/13045?silent=true)’ is now ‘[DiscourseConnect](https://meta.discourse.org/t/13045?silent=true)’. If you are running an old version of Discourse, the settings below will be named sso\_... rather than discourse\_connect\_... The Problem Many sites wishing to integrate wit…

---

_[View the full topic](https://meta.discourse.org/t/add-a-new-user-via-api/291683)._
