Best practice to copy user id from Zitadel DB my App DB?
Should I use Actions after creation for this? I am completely new to Zitadel and Authentication in general.
2 Replies
Hi @RikiMaro, I'm an AI assistant for ZITADEL. While a team member reviews this question, I'll see if I can find relevant sources for your question.
Answer
I wasn't able to find a direct answer, here are some relevant sources:
1. ZITADEL Actions : Actions allow you to define scripts which are then run on certain triggers, including Post Creation flows that execute after a user is successfully created (1)  .
2. Migrate from Actions v1 to v2 : Covers Post Creation triggers that run after ZITADEL successfully creates a user, with use cases including handling user creation events (2)  .
To learn more, see the sources I considered:
[1] ZITADEL Actions
[2] Migrate from Actions v1 to v2
Feel free to tag @Ask Inkeep with additional questions.
Got it. Tagging @Rajat for additional help.
hey @RikiMaro yes you can write actions to do that.
you can run this actions like its described here to copy user id when a user logs in https://zitadel.com/docs/guides/integrate/actions/webhook-site-setup#1-introduction