authentik icon indicating copy to clipboard operation
authentik copied to clipboard

How to map social login users (discord) to directory groups ?

Open ednxzu opened this issue 1 year ago • 2 comments

Describe your question/ I'm trying to map discord users from the discord social login to group within the builtin authentik directory

Additional context I have two sources of authentication, either local using the builtin directory, or via discord auth. I'm trying to figure out how to map discord users to groups (based ideally on their discord role) so that I don't have to manually add them everytime someone new logs in.

I couldn't find any documentation on this so any help is welcome.

ednxzu avatar Mar 23 '24 00:03 ednxzu

Please post it here if you get this figured out, currently trying to do something similar

los93sol avatar Mar 23 '24 15:03 los93sol

https://github.com/goauthentik/authentik/pull/5760 might help you

rissson avatar Mar 25 '24 13:03 rissson

#5760 might help you

This looks exactly like what I need, thanks, I'll give it a shot !

ednxzu avatar Mar 30 '24 17:03 ednxzu

I got it working for my scenario with this, happy to share the policy expressions I used if you need them

los93sol avatar Mar 30 '24 17:03 los93sol

I got it working for my scenario with this, happy to share the policy expressions I used if you need them

Feel free to open a PR (that hopefully doesn't conflict with #5760) or to comment on that PR!

rissson avatar Apr 02 '24 00:04 rissson

I'll close as this appears to be resolved.

rissson avatar Apr 02 '24 00:04 rissson

I got it working for my scenario with this, happy to share the policy expressions I used if you need them

@los93sol How do you managed it to work?

mamichini avatar Apr 27 '24 06:04 mamichini