# Post User Registration Action Flow for SSO

**URL:** <https://community.auth0.com/t/post-user-registration-action-flow-for-sso/119900>\
**Category:** Get Help\
**Tags:** connections, saml-enterprise-connection\
**Created:** [October 31, 2023, 8:57pm UTC](https://community.auth0.com/t/post-user-registration-action-flow-for-sso/119900 "2023-10-31T20:57:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![milan.milojic](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/milan.milojic/32/46649_2.png) [@milan.milojic](https://community.auth0.com/u/milan.milojic)\
**Post date:** [October 31, 2023, 8:57pm UTC](https://community.auth0.com/t/post-user-registration-action-flow-for-sso/119900/1 "2023-10-31T20:57:06Z")

</div>

Hello there,

From the [documentation](https://auth0.com/docs/customize/actions/flows-and-triggers/post-user-registration-flow) I understand this triggers only for database and passwordless connections only. How would I go about a usecase where I need to run something only once after the user “registers”. I understand that for SAML SSO connections, registration is technically happening on the first login. Some user object is created and stored somewhere on Auth0’s database, otherwise I wouldn’t be able to see the user on the Users Dashboard.  
Do you plan on including SAML connections in the post registration action flow?  
If not how would you suggest I achieve “do this only when user registers”? Post login action flow and some custom metadata flag? Or login counter \< 2? What is the most solid, trustworthy approach here that’s applicable to all users regardless of how they register (in case you need to support multiple login types like username/password, passwordless, SSO, etc.)?  
Thank you

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 6, 2023, 5:18pm UTC](https://community.auth0.com/t/post-user-registration-action-flow-for-sso/119900/3 "2023-11-06T17:18:30Z")

</div>

Hi @milan.milojic,

I would suggest using the post login action flow with some custom flag. For example, if you require every user to go through some onboarding flow, you may add a flag like `app_metadata.onboarded = true` for users who have completed it and check each user for that flag and send them to the onboarding flow if it doesn’t exist.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 20, 2023, 5:19pm UTC](https://community.auth0.com/t/post-user-registration-action-flow-for-sso/119900/4 "2023-11-20T17:19:04Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
