# Role Based-Access Control on Signup?

**URL:** <https://community.auth0.com/t/role-based-access-control-on-signup/59423>\
**Category:** Get Help\
**Tags:** api, rules, roles, auth0\
**Created:** [March 15, 2021, 5:55am UTC](https://community.auth0.com/t/role-based-access-control-on-signup/59423 "2021-03-15T05:55:31Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [March 15, 2021, 12:43pm UTC](https://community.auth0.com/t/role-based-access-control-on-signup/59423/3 "2021-03-15T12:43:39Z")

</div>

Hi @chu08888,

You can add roles to users when they sign up by using a [rule](https://auth0.com/docs/rules). Rules are javascript functions that run after a user logs in.

Here’s an FAQ that shows you how to add a default role: [How do I add a default role to a new user on first login?](https://community.auth0.com/t/how-do-i-add-a-default-role-to-a-new-user-on-first-login/25857)

You can just add the role to certain users by checking an array of users like in this example: [Auth0 IP Addresses for Allow Lists](https://auth0.com/rules/simple-user-whitelist)

---

_[View the full topic](https://community.auth0.com/t/role-based-access-control-on-signup/59423)._
