Hi, I am new to using Descope, and I wanted to kno...
# ask-a-descoper
l
Hi, I am new to using Descope, and I wanted to know how userID is generated. I have an API that accepts UUID, name, and email, and it would be convenient to generate UUID for userID through descope and send that id to the backend when storing a user's data to the database. Is there a way to view/change generation method or userID type through Descope?
r
Hi @loud-iron-97339, The UserID is generated internally by Descope. It’s unique for every user and can’t be controlled from the outside. Can you elaborate about your use case? Why isn’t it possible to get the current UserID from Descope’s response and store it in your backend?
l
I can retrieve the userID, but I was just wondering if I am able to format the generated ID for my specific use case. There's nothing elaborate about my use case, I just have a Java spring boot application that manages my APIs and database accesses, and it uses UUID data type for the primary key. If there's no way to modify the user ID generation, that's okay. I will modify my backend.
s
we are planning to add soon a feature to support custom fields on user with that you will bb able to add a custom user ID for your users, that match your DB Will that cover your need?