Allow user creation via API when enable_local_logins is disabled

I’d like to pre-create user accounts, while at the same time only allow OAuth2 logins in the front-end. The more precise goal is to dismiss the Create user account window when the users log in via OAuth2.

If I disable local logins, the API rejects the user creation.

1 Like

I would just temporarily disable the site setting via API, stage the account, then turn the setting on via the API.

Hide the various bits for the sign up form just in case a user tries to log in when you are doing this thing.

3 Likes