# How do I add a default role & permissions to a user?

**URL:** <https://community.auth0.com/t/how-do-i-add-a-default-role-permissions-to-a-user/43269>\
**Category:** Get Help\
**Tags:** rules, rbac\
**Created:** [May 19, 2020, 2:52pm UTC](https://community.auth0.com/t/how-do-i-add-a-default-role-permissions-to-a-user/43269 "2020-05-19T14:52:51Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![gil.edelman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gil.edelman/32/11462_2.png) [@gil.edelman](https://community.auth0.com/u/gil.edelman)\
**Post date:** [January 19, 2021, 1:51am UTC](https://community.auth0.com/t/how-do-i-add-a-default-role-permissions-to-a-user/43269/4 "2021-01-19T01:51:28Z")

</div>

I’m also looking for a solution that will include the permissions in the access token on first login without forcing the client to refresh the access token. @dan.woda Are you able to assist and update the [FAQ](https://community.auth0.com/t/how-do-i-add-a-default-role-to-a-new-user-on-first-login/25857)?

There are several threads on this topic with no clear answer:

> [@Add roles to user in Custom database migration](https://community.auth0.com/t/add-roles-to-user-in-custom-database-migration/35885):
>
> Hi, I implemented a Login script that retrieves from a legacy database all the information related to users (name, email…), including Roles. I would like to assign those Roles to the user in the moment it is migrated, so when the Token is generated it will include the permissions for the predefined Role. Can I assign the Roles on the Login Script? If so, can you provide an example. If it is not possible. What other option do I have to accomplish this? Thanks,

> [@How to add roles, permissions to a user during signup?](https://community.auth0.com/t/how-to-add-roles-permissions-to-a-user-during-signup/27006):
>
> I have an application whose end users I like to store in Auth0 “Database” connection. I want to have end users credentials (username + password) to authenticate them with Auth0. On Successful login, I want Auth0 to return an id\_token which has a user role, permissions. Also, I want to know how I can I set these roles and permissions when a user signsup?

---

_[View the full topic](https://community.auth0.com/t/how-do-i-add-a-default-role-permissions-to-a-user/43269)._
