# Discord login and obtain discord roles in discourse

**URL:** https://meta.discourse.org/t/discord-login-and-obtain-discord-roles-in-discourse/113070
**Category:** Feature
**Created:** [31 maart 2019 om 21:10 UTC](https://meta.discourse.org/t/discord-login-and-obtain-discord-roles-in-discourse/113070 "2019-03-31T21:10:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chagara](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chagara](https://meta.discourse.org/u/chagara)
#### Post date: [31 maart 2019 om 21:10 UTC](https://meta.discourse.org/t/discord-login-and-obtain-discord-roles-in-discourse/113070/1 "2019-03-31T21:10:34Z")

</div>

Hello,  
I was looking around and was wondering if anyone has been able to use the discord login and been able to obtain the roles assigned in the discord server? for example:

- My Discord server is mydiscord.
- I have 20 users and 2 admins.
- They login into discourse using discord and obtain auto admin for those 2 users and everyone else is a regular user.

is this possible yet using the discord login? or need to do some API calls to discord?

---

<div class="post-metadata">

### Author: ![nekodroid](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nekodroid/32/154550_2.png) [@nekodroid](https://meta.discourse.org/u/nekodroid)
#### Post date: [19 november 2019 om 21:49 UTC](https://meta.discourse.org/t/discord-login-and-obtain-discord-roles-in-discourse/113070/2 "2019-11-19T21:49:01Z")

</div>

Yeah I love this idea.

Syncing Discore roles with badges would be genius as well!

:content:

---

<div class="post-metadata">

### Author: ![Anatolia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/anatolia/32/133777_2.png) [@Anatolia](https://meta.discourse.org/u/Anatolia)
#### Post date: [19 november 2019 om 23:19 UTC](https://meta.discourse.org/t/discord-login-and-obtain-discord-roles-in-discourse/113070/3 "2019-11-19T23:19:58Z")

</div>

This may help:

> [@Discord Bot Construction Kit robot](https://meta.discourse.org/t/discord-bot-run-one-on-your-discourse-server-keep-things-in-sync/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…

---

<div class="post-metadata">

### Author: ![Valiantiam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/valiantiam/32/164562_2.png) [@Valiantiam](https://meta.discourse.org/u/Valiantiam)
#### Post date: [21 november 2019 om 22:00 UTC](https://meta.discourse.org/t/discord-login-and-obtain-discord-roles-in-discourse/113070/4 "2019-11-21T22:00:30Z")

</div>

My only issue with the current implementation of that plugin, is how you have to manually sync, and it seems to sync all custom roles. I generally speaking, just want it to sync specific roles I ask it to, and be able to possibly even tell it what role to match it against on my discord server. Not let it create that role entirely on its own.
