# Fetching 'user:roles' and "Grant type 'client\_credentials' not allowed for the client" error

**URL:** <https://community.auth0.com/t/fetching-user-roles-and-grant-type-client-credentials-not-allowed-for-the-client-error/67576>\
**Category:** Get Help\
**Tags:** jwt\
**Created:** [August 8, 2021, 11:31pm UTC](https://community.auth0.com/t/fetching-user-roles-and-grant-type-client-credentials-not-allowed-for-the-client-error/67576 "2021-08-08T23:31:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![adam.ellsworth](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adam.ellsworth/32/24898_2.png) [@adam.ellsworth](https://community.auth0.com/u/adam.ellsworth)\
**Post date:** [August 15, 2021, 9:35pm UTC](https://community.auth0.com/t/fetching-user-roles-and-grant-type-client-credentials-not-allowed-for-the-client-error/67576/2 "2021-08-15T21:35:36Z")

</div>

No longer an issue. For those who come across this, the model was wrong. Really should’ve been using Auth0 Rules from the start, that way, you can enrich your JWT and check User Roles at the frontend (if any are assigned).

This is a better overview of how to accomplish this:

> [@Get the user role on Login](https://community.auth0.com/t/get-the-user-role-on-login/39835/4):
>
> Let us know then if you have any other questions @rakesh_ostwal!

---

_[View the full topic](https://community.auth0.com/t/fetching-user-roles-and-grant-type-client-credentials-not-allowed-for-the-client-error/67576)._
