# What is the best way to handle auth with roles for my personal project?

**URL:** <https://community.auth0.com/t/what-is-the-best-way-to-handle-auth-with-roles-for-my-personal-project/87009>\
**Category:** Get Help\
**Tags:** node, react, js, login\
**Created:** [July 15, 2022, 2:52am UTC](https://community.auth0.com/t/what-is-the-best-way-to-handle-auth-with-roles-for-my-personal-project/87009 "2022-07-15T02:52:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![emily\_dev](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@emily\_dev](https://community.auth0.com/u/emily_dev)\
**Post date:** [July 15, 2022, 2:52am UTC](https://community.auth0.com/t/what-is-the-best-way-to-handle-auth-with-roles-for-my-personal-project/87009/1 "2022-07-15T02:52:41Z")

</div>

I’m new to using Auth0 beyond just the basic start guide and needing advice on the best approach to take to get what I want to achieve.

What I am wanting to achieve is having my users register using my own styled register form and automatically be assigned a ‘subscriber’ role that gives them access to other pages of my app. Only people I sent this register link to, will be able to register.

Then I want an admin role to assign to myself to manage my app and access management only pages. I may in future upgrade the ‘subscriber’ role to make that user also a manager.

Everyone else will not be able to log in or register, they just view content as a regular user.

I’ve had trouble going through the docs to find the best way to use roles in the way that I want and understanding what I need to include to do so.

I’m building a fullstack react, express app. It’s also a hobby project to practice new tech on my own, so I’m really not looking to pay for services unless it reaches the point of generating income too.

Any help would be appreciated!

---

<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:** [July 16, 2022, 12:11am UTC](https://community.auth0.com/t/what-is-the-best-way-to-handle-auth-with-roles-for-my-personal-project/87009/3 "2022-07-16T00:11:23Z")

</div>

Hey there @emily_dev welcome to the community!

> [@emily\_dev](#):
>
> I’ve had trouble going through the docs to find the best way to use roles in the way that I want and understanding what I need to include to do so.

It sounds like you might be interested in [Role Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac) (RBAC) - Typically, [roles are added to tokens](https://auth0.com/docs/manage-users/access-control/sample-use-cases-actions-with-authorization#add-user-roles-to-tokens) and used that way.

Hopefully this at least gives you an idea of what’s possible - Let us know if you have any follow up questions!

---

<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:** [July 31, 2022, 12:11am UTC](https://community.auth0.com/t/what-is-the-best-way-to-handle-auth-with-roles-for-my-personal-project/87009/4 "2022-07-31T00:11:26Z")

</div>

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