Hello, I’ve been using Discourse API and OAuth2 plugin to migrate and log-in users from my own SSO service to a private Discourse installation. So far, I’ve managed to programmatically migrate all SSO users to discourse successfully. When migrating programmatically, new users are created with an auto-incrementing Discourse-specific id. My question is: Can I use the API to create a user using an explicit id for that user? meaning that, if assign a user to id:22, then I can query him/her with
I’ve tried passing ‘id’ and ‘external_id’ parameters in the POST body, but it won’t work.
edit: also, is there a way through the API, given a specific user id, to change his/her username?