Atlas App Services User custom data not generated

Hi, I am authenticating users using email password login. and in user settings I have enabled custom user data and provided db, collection and userId field for storing it. But when I click add new user on interface and create a user with email and password. It does not automatically store custom user data to given collection I also tried adding userCreationFunction() but that does not get triggered too.

Hi Asad,

Thanks for posting and welcome to the community!

Enabling custom user data is not designed to automatically create data in the specified collection for you.

Please see the section below on creating and managing custom user data.

If you need users to be created in this collection when they log in, you can use an Authentication Trigger to create these documents via a function upon first time creation/registration of the user.

Regards
Manny

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.