# Pre-user registration action

**URL:** <https://community.auth0.com/t/pre-user-registration-action/104854>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [April 17, 2023, 10:17am UTC](https://community.auth0.com/t/pre-user-registration-action/104854 "2023-04-17T10:17:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranjeet.kumar](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ranjeet.kumar](https://community.auth0.com/u/ranjeet.kumar)\
**Post date:** [April 17, 2023, 10:17am UTC](https://community.auth0.com/t/pre-user-registration-action/104854/1 "2023-04-17T10:17:48Z")

</div>

does pre-user registration action get triggered for first-time users coming through SAML connections?  
I want to add some attributes to the app\_metadata of every user while onboarding them, what would be the best way to do it?  
I tried using `api.user.set_appmetadat("key", "val")` through pre-user registration action, for some reason it doesn’t reflect.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 28, 2023, 11:10pm UTC](https://community.auth0.com/t/pre-user-registration-action/104854/3 "2023-04-28T23:10:49Z")

</div>

Hey there @ranjeet.kumar welcome to the community!

> [@ranjeet.kumar](#):
>
> does pre-user registration action get triggered for first-time users coming through SAML connections?

The pre-user registration action is not triggered for incoming SAML users (same goes for social connections like Google, Facebook).

> [@ranjeet.kumar](#):
>
> I want to add some attributes to the app\_metadata of every user while onboarding them, what would be the best way to do it?

Your best bet is to use a post-login action instead.

Hope this helps to clarify!

---

<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:** [May 12, 2023, 11:11pm UTC](https://community.auth0.com/t/pre-user-registration-action/104854/4 "2023-05-12T23:11:20Z")

</div>

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