# Programmatically adding users when SSO is being used

**URL:** <https://meta.discourse.org/t/programmatically-adding-users-when-sso-is-being-used/79925>\
**Category:** SSO\
**Created:** [February 6, 2018, 4:33pm UTC](https://meta.discourse.org/t/programmatically-adding-users-when-sso-is-being-used/79925 "2018-02-06T16:33:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [February 6, 2018, 4:54pm UTC](https://meta.discourse.org/t/programmatically-adding-users-when-sso-is-being-used/79925/2 "2018-02-06T16:54:05Z")

</div>

You can do it via the API. Here’s an example: [GitHub - pfaffman/discourse-user-creator: Create an activated user, optionally assigning to group · GitHub](https://github.com/pfaffman/discourse-user-creator)

---

_[View the full topic](https://meta.discourse.org/t/programmatically-adding-users-when-sso-is-being-used/79925)._
