Update email via API but disable for users

We integrate Discourse with our custom ecosystem and update user’s information via API. As part of this, I need to update user’s email address. BUT I don’t want the users to be able to update it themselves.
The API doesn’t seem to work if the “Email Editable” setting is off. Is there any workaround?
Thank you!

1 Like