Hello! I'll have to implement some kind of auth-ro...
# support-questions-legacy
t
Hello! I'll have to implement some kind of auth-roles. For example ["superadmin", "admin", "editor"] (1) is there a built-in feature for this in supertokens? Can't find that (2) is there a general strategy/guide for syncing user-data out of supertokens into the exisiting db/backend (based on a postgres-db here)?
d
I'm no expert, but I think https://supertokens.com/docs/thirdpartyemailpassword/user-roles/initialisation might be what you're looking for
Not sure about (2) though. Sorry!
t
Thank you @dbottisti! Don't know how I didn't found that. But I'll have to dive in a bit to understand how to add roles subsequently...
d
No problem! I found it to be pretty easy to add on the backend (Python + FastAPI).
Let me know if you have questions and I can try to help (again, I'm new to SuperTokens)
t
Thanks again. Maybe I'll really come back to you 🙂