apps/docs/content/guides/manage/customize/behavior.mdx
In this guide, you will create a ZITADEL action. After users register using an external identity provider, the action assigns them a role.
Before you start, make sure you have everything set up correctly.
addGrant.https://github.com/zitadel/actions/blob/main/examples/add_user_grant.js
Now, make the action hook into the external authentication flow.
New users automatically are assigned a role now if they register by authenticating with an external identity provider.