# Creat a user automatically when granted a Discord Role?

**URL:** https://meta.discourse.org/t/creat-a-user-automatically-when-granted-a-discord-role/219918
**Category:** SSO
**Created:** [March 3, 2022, 4:09am UTC](https://meta.discourse.org/t/creat-a-user-automatically-when-granted-a-discord-role/219918 "2022-03-03T04:09:58Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [March 3, 2022, 5:14pm UTC](https://meta.discourse.org/t/creat-a-user-automatically-when-granted-a-discord-role/219918/3 "2022-03-03T17:14:40Z")

</div>

For User creation, use the out of the box behaviour of the Discord login.

For group membership you are looking at something more complex.

@spirobel has a plugin that syncs Discord roles → Discourse groups, but he charges for it (good for him), so maybe discuss with him privately?

If you want to contribute to the main open source Discord/Discourse bot project, look at:

> [@Discord Bot Construction Kit robot](https://meta.discourse.org/t/discord-bot-construction-kit/122530):
>
> Purpose of this plugin This plugin does several things: Allows you to power a Discord bot using your Discourse server to do stuff to link the two systems. Fork this repo and expand it with simple Ruby to create all kinds of bot functionality. Existing functionality to serve as examples and useful utility: Provides some two-way auto posting of content that meet some criteria. Command to copy messages ad hoc to Discourse Command to sync group membership to role membership of your Discor…

(but bear in mind it currently does not have fully automated sync (it is command initiated) and it in any case syncs the other way, but would give you a foundation in any case.).

There is also this plugin, but it doesn’t seem to be actively supported, and again goes the wrong direction. It is based on my code: [Discord Sync: sync a Discourse forum with a Discord server](https://meta.discourse.org/t/discord-sync-sync-a-discourse-forum-with-a-discord-server/175864). There is also a useful discussion about the topic further down.

---

_[View the full topic](https://meta.discourse.org/t/creat-a-user-automatically-when-granted-a-discord-role/219918)._
