Hello, my team is using Kratos and it works great,...
# talk-kratos
b
Hello, my team is using Kratos and it works great, we have our own made roles-permission system, I would like to somehow assign default roles when a kratos user is created, is there something in kratos I could use or do I have to pull the db ?
b
You can either use metadata_public (if you want this information to be visible to the user) or metadata_admin (keep it visible only to the admin) to achieve this.
How is the user being created?
b
sry my description was poor, I don't want this information to be saved in kratos, I want to be able to run some code when a kratos user is created
so when a user is created I can call an API to add default roles for the user
b
web hook then
b
aah perfect!! thanks!