# Vue Assign custom roles on creation?

**URL:** <https://community.auth0.com/t/vue-assign-custom-roles-on-creation/77070>\
**Category:** Get Help\
**Tags:** vuejs, login, auth0\
**Created:** [January 26, 2022, 7:43pm UTC](https://community.auth0.com/t/vue-assign-custom-roles-on-creation/77070 "2022-01-26T19:43:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaptenkeps](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kaptenkeps/32/33596_2.png) [@kaptenkeps](https://community.auth0.com/u/kaptenkeps)\
**Post date:** [January 26, 2022, 7:43pm UTC](https://community.auth0.com/t/vue-assign-custom-roles-on-creation/77070/1 "2022-01-26T19:43:05Z")

</div>

Hello! I am a bit confused about a thing or two here

Im trying to figure out how to assign one of my custom roles to user who sign up on my app.  
So the first thing, am i using hooks or rules for this?

Second thing, how can i check for a users role in like, a console.log? Because i cant find this info on the browser console.

Im using a SPA application for this, but im using vue vite, not vue CLI for this.

Thanks in advance

---

<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:** [January 17, 2023, 5:35pm UTC](https://community.auth0.com/t/vue-assign-custom-roles-on-creation/77070/4 "2023-01-17T17:35:59Z")

</div>

Hey there @kaptenkeps welcome to the community!

> [@kaptenkeps](#):
>
> Im trying to figure out how to assign one of my custom roles to user who sign up on my app.  
> So the first thing, am i using hooks or rules for this?

The current recommended approach is to use an Action as outlined in [this FAQ](https://community.auth0.com/t/how-can-i-use-the-management-api-in-actions/64947).

> [@kaptenkeps](#):
>
> Second thing, how can i check for a users role in like, a console.log? Because i cant find this info on the browser console.

Where exactly are you looking to check for roles? These are typically added to ID/Access tokens and leveraged that way.

---

<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:** [April 29, 2023, 12:18am UTC](https://community.auth0.com/t/vue-assign-custom-roles-on-creation/77070/5 "2023-04-29T00:18:37Z")

</div>

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