Change email address and pool format?
# support-questions-legacy
j
Change email address and pool format?
Hi, Im evaluating super tokens for a new platform, and I have a couple of questions, 1. Is there is possible to change the email address of a userid, and 2. if also there is a way to change the format for the userId or customize the user pool?
r
Hey @jccastro.mx
1. Yes it is. You can either make the user do it, or you can do it without the user taking any action. There are functions for this in the backend SDK
2. There is a way to customise the user id format. We have functions for user id mapping which you can use post sign up and then subsequent references to that user will resolve to the custom user id you chose.
I can show you code snippets for for these if you tell me which backend SDK you intend to use.
j
thats will be great, I'll will be doing the backend in python
r
1) for updating email of a user, you can call the
update_email_or_password
function from the emailpassword recipe (i assume that's the recipe you are using, if not, there is an equivalent function in others): https://supertokens.com/docs/python/recipe/emailpassword/asyncio/index.html#supertokens_python.recipe.emailpassword.asyncio.update_email_or_password 2) To customise the user ID format, you can call the `create_user_id_mapping`: https://supertokens.com/docs/python/asyncio/index.html after overriding the sign up function on the backend (see https://supertokens.com/docs/emailpassword/advanced-customizations/backend-functions-override/usage) Both of these functions have a syncio version as well.
2 Views