How to import pre-sso discourse users?

(Michael Ravits) #1


I have the admin user which was created before discourse was set to use SSO.
How could I possibly “convert” it to an SSO user?


(Rafael dos Santos Silva) #2

Just use the same email that SSO is going to send to Discourse.

(Felix Freiberger) #3

To clarify: There is no difference between “SSO users” and “regular users”.

The only difference is in whether Discourse knows the external id of the user. When logging in a users, Discourse proceeds like this:

  1. Do I know a user with this external id? If so, log him in, and possibly update his email.
  2. Otherwise, do I know a user with this email? If so, remember his external id, and log him in.
  3. Otherwise, create a new account.