# API를 통해 새 사용자 추가

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

<div class="post-metadata">

### Author: ![Samir\_Sabri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samir_sabri/32/287380_2.png) [@Samir\_Sabri](https://meta.discourse.org/u/Samir_Sabri)
#### Post date: [1월 15, 2024, 4:19오후 UTC](https://meta.discourse.org/t/add-a-new-user-via-api/291683/1 "2024-01-15T16:19:31Z")

</div>

안녕하세요

내 포럼 디스커스가 SSO를 통해 웹사이트와 통합되어 있어, 모든 사용자는 실제로 내 웹사이트 DB에 존재합니다.

질문은, API를 통해 웹사이트에서 사용자를 디스커스 포럼에 추가하는 방법과 사용자가 이미 추가되었는지 확인하는 방법입니다.

감사합니다

---

<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: [1월 15, 2024, 5:19오후 UTC](https://meta.discourse.org/t/add-a-new-user-via-api/291683/2 "2024-01-15T17:19:52Z")

</div>

사용자가 Discourse를 사용하려면 로그인되어 있어야 합니다.

SSO를 사용하면 계정이 없는 경우 로그인 시도를 할 때 새 계정이 자동으로 생성되므로, 그냥 자연스럽게 진행되도록 두면 어떨까요?

[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…

---

<div class="post-metadata">

### Author: ![Samir\_Sabri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samir_sabri/32/287380_2.png) [@Samir\_Sabri](https://meta.discourse.org/u/Samir_Sabri)
#### Post date: [1월 16, 2024, 8:12오전 UTC](https://meta.discourse.org/t/add-a-new-user-via-api/291683/3 "2024-01-16T08:12:48Z")

</div>

사용자들이 포럼을 방문하지 않고도 내 웹사이트를 이용할 수 있으므로, 자연스럽게 방치해 둘 수는 없습니다. 저는 디스코urs의 뉴스레터 및 알림 기능을 활용하고 싶었습니다. 제 웹사이트는 가상 실험실에 관한 것이며, 사용자는 포럼을 방문할 필요 없이 시간을 보내며 무언가를 만들어 갑니다.
