Dynamic user creation for multi tenant system

Hi Lukas,

Great question! As you’ve noticed it takes a bit of time for those users to be applied. In order to help you manage this programmatically we have an endpoint in the Atlas Admin API here - MongoDB Atlas Administration API As the apply is happening the state will be PENDING but once the users are ready it should move to APPLIED. This can replace the timeout and should give you a consistent connection flow.

Let us know if you have any other questions.

Best,
Melissa