Current plan level (Free, Team, Business, or Enterprise: Retool pricing): Enterprise Monthly/Annual (if Team or Business): / Version of Retool (if self-hosted): Self-Hosted
Question / Description:
Hi there!
Is there any way to predefine the password for users that are created via the POST /users/ API Endpoint?
If not, is there any workaround for doing so?
There isn't currently a way to programmatically set a new user's password when they're created via the API. Those newly created users should be able to immediately login with SSO, though, which is more or less the intended use case. They would otherwise need to go through the password reset flow.
One alternative is to instead use the POST /user_invites endpoint, but you still wouldn't have the ability to set the password on behalf of the user.
This last thought only applies to cloud-hosted instances and, as such, isn't super applicable for you, but I'll mention it anyway. Retool does support passwordless login for mobile applications.
All this to say - there doesn't seem to be a great workaround if your goal is to centrally manage user passwords on their behalf. I'll talk to the owning team to see if it makes sense to put this on the roadmap!