# How to automatically configure a newly created (sign up) user

**URL:** <https://community.auth0.com/t/how-to-automatically-configure-a-newly-created-sign-up-user/38873>\
**Category:** Get Help\
**Tags:** extensibility, signup\
**Created:** [March 4, 2020, 4:34pm UTC](https://community.auth0.com/t/how-to-automatically-configure-a-newly-created-sign-up-user/38873 "2020-03-04T16:34:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerardo.zenobi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerardo.zenobi/32/19263_2.png) [@gerardo.zenobi](https://community.auth0.com/u/gerardo.zenobi)\
**Post date:** [March 4, 2020, 4:34pm UTC](https://community.auth0.com/t/how-to-automatically-configure-a-newly-created-sign-up-user/38873/1 "2020-03-04T16:34:52Z")

</div>

Let’s say I would like to automatically add a certain role or setup something on a particular user at the moment they are created within Auth0.

I understand that the place to perform this logic would be within a [Post User Registration Hook](https://auth0.com/docs/hooks/extensibility-points/post-user-registration) , correct ?

If so, how we would do the same but for scenarios using Social or Enterprise connections, it seems these are not supported?

Thanks in advance.

---

<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:** [March 5, 2020, 12:56am UTC](https://community.auth0.com/t/how-to-automatically-configure-a-newly-created-sign-up-user/38873/3 "2020-03-05T00:56:30Z")

</div>

Hi @gerardo.zenobi,

If you want to add some data to a user’s auth0 profile on _first login_, and have it happens regardless of connection type (social vs db vs enterprise), you will have to do so in a rule. Typically customers will check for a first login flag, or some data that you would’ve added on first login, and add it then.

This thread details the difference between using a rule vs a hook.

> [@Add Default Role to New User Sign-up](http://community.auth0.com/t/add-default-role-to-new-user-sign-up/36763):
>
> There seem to be a number of topics related to this, but no clear approach. If users can self-sign-up to an application, I would hope there is an ability to assign a default role to such users. I have read topics on assigning a role at the first log-on and using a hook (but limited to API rates), is there an easy approach to achieving this upon sign-up? If not, then please say so.

There is a caveat when using rules vs hooks; if you create a user with the signup endpoint or through the dashboard/management API, they will not get the data until their first login. If this is an issue there are strategies to cover that case too. Let me know and we can discuss them.

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![gerardo.zenobi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerardo.zenobi/32/19263_2.png) [@gerardo.zenobi](https://community.auth0.com/u/gerardo.zenobi)\
**Post date:** [March 5, 2020, 8:55am UTC](https://community.auth0.com/t/how-to-automatically-configure-a-newly-created-sign-up-user/38873/4 "2020-03-05T08:55:45Z")

</div>

Thanks for the rapid reply @dan.woda !

To summarise then:  
For this requirement, one off user setup/configuration, **Hooks** would not work neither for social nor enterprise connections. Instead **Rules** upon first login would have to be used. Correct?

Lastly, is there a plan for Hooks to support social/enterprise connections in the future?

Thanks.

Gerardo.

---

<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:** [March 5, 2020, 9:15pm UTC](https://community.auth0.com/t/how-to-automatically-configure-a-newly-created-sign-up-user/38873/5 "2020-03-05T21:15:21Z")

</div>

You are correct. I have heard it mentioned, but it is not on our roadmap at the moment. If you would like to give us some [feedback](https://auth0.com/feedback) on your use-case we would greatly appreciate it!

---

<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:** [March 20, 2020, 9:23pm UTC](https://community.auth0.com/t/how-to-automatically-configure-a-newly-created-sign-up-user/38873/6 "2020-03-20T21:23:51Z")

</div>

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