When a person creates an account in Zitadel, I would like an action to trigger an endpoint where I will create an internal user entity with an internal user_id and link that internal user entity with the Zitadel account.
I would also like it so that if my internal user entity fails to create then the Zitadel account also fails to create and the person is presented with an error message and they can try again. If the internal user entity succeeds, but for some reason the Zitadel account fails, then that is fine; I'll just have an internal user entity linked to an non-existant Zitadel account that won't be used for anything, and I can try and clean these up somehow (cron job or something?).
What I don't want is for a situation where the Zitadel account creation succeeds and the internal user entity fails to get created, unless there are ways to retry the internal user entity creation BEFORE they get a valid user session. I don't want user's coming to my app with a valid Zitadel auth token for a Zitadel account that isn't linked to a valid internal user entity.
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
Z
ZITADEL
ZITADEL - Identity infrastructure, simplified for you.