SSO Sync moderators and admins


(Manthan Mallikarjun) #1

Hey!

Is there any way I can sync the moderators and admins from discourse to my SSO site? I want everything to be synced up.

Thanks.


(Kane York) #2

Yes, include the admin= and moderator= parameter in the SSO payload, I think.


(Manthan Mallikarjun) #3

Sorry, wasnt clear enough in the OP.

I wanted to do the opposite, where when I set a moderator or admin in Discourse, it sends a callback to my site where I update it in my own database.


(Logan Mathews) #4

While there is a means of syncing from an sso provider to the discourse site (as Riking mentioned), no, there is currently no way to add an additional callback to sync the permissions from discourse back to the provider.

Is it possible? It absolutely could be done in a plugin. Will it be? I doubt you’ll find it being done by the official team or even a modder anytime soon due to my perceived lack of demand for it. You might be able to find someone in the market place to do it for a fee or attempt it on your own by asking questions in the extensibility forum.


(Sam Saffron) #5

webhooks were recently discussed here:

The hooks you are describing would be way down that list.