I need to create several user accounts in order to import historical posts, and my forum uses SSO. Fortunately, I can automatically login and impersonate the user on my site and then make the necessary request to login to Discourse with SSO. However, I don’t want to trigger the welcome email for these users since they haven’t actually visited the forum themselves. (I just accidentally sent emails to ~300 users on my test Discourse. D:)
I noticed that all emails can be disabled, which I could do temporarily. It’s a little weird that it advertises the fact that emails are disabled to all users though. It’d also be really nice if the email could be triggered when the user actually visits, but I could live without that.
So:
- Can users be created with SSO using the API, and not the /session/sso route?
- If not, is there something like active=true I can use for SSO?
Thanks!