# Scope doesnt assign to access token on React

**URL:** <https://community.auth0.com/t/scope-doesnt-assign-to-access-token-on-react/110748>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [July 7, 2023, 9:21am UTC](https://community.auth0.com/t/scope-doesnt-assign-to-access-token-on-react/110748 "2023-07-07T09:21:56Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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 7, 2023, 11:38pm UTC](https://community.auth0.com/t/scope-doesnt-assign-to-access-token-on-react/110748/3 "2023-07-07T23:38:17Z")

</div>

Hello @Xepobopa welcome to the community!

A Management API Access Token () obtained by the SPA is [limited](https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-tokens-for-single-page-applications#available-scopes-and-endpoints) in the scopes it can have - Instead, you’ll need to utilize a backend of sorts to get and use a properly scoped access token. The following article outlines this flow:

[https://community.auth0.com/t/how-can-i-enable-users-to-change-their-email-address-from-a-spa-or-native-app/44064](https://community.auth0.com/t/how-can-i-enable-users-to-change-their-email-address-from-a-spa-or-native-app/44064)

Alternatively (and easiest route), you can add a user’s roles as a claim to an Access Token and get them that way:

[https://community.auth0.com/t/how-to-add-roles-and-permissions-to-the-id-token-using-actions/84506](https://community.auth0.com/t/how-to-add-roles-and-permissions-to-the-id-token-using-actions/84506)

Hope this helps!

---

_[View the full topic](https://community.auth0.com/t/scope-doesnt-assign-to-access-token-on-react/110748)._
