Add the SSO record external id to UserSerializer

Could the user’s SSO record external_id be added to the UserSerializer?

It would be useful for syncing Discourse user data with the SSO provider’s user data through the user event webhook.

I am not sure, this has security implications, it is not the business of the end user what the external id is.

إعجاب واحد (1)

I’m OK if we add it to

https://github.com/discourse/discourse/blob/master/app/serializers/web_hook_user_serializer.rb

5 إعجابات

I’m working on something now that could use this. Is the best way to get it done to submit a PR?