# Scope Added to the role is not getting assigned to the user with that role

**URL:** <https://community.auth0.com/t/scope-added-to-the-role-is-not-getting-assigned-to-the-user-with-that-role/109053>\
**Category:** JWT.io\
**Tags:** error, authorization, access-token, auth0\
**Created:** [June 12, 2023, 6:48am UTC](https://community.auth0.com/t/scope-added-to-the-role-is-not-getting-assigned-to-the-user-with-that-role/109053 "2023-06-12T06:48:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaurav1](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@gaurav1](https://community.auth0.com/u/gaurav1)\
**Post date:** [June 12, 2023, 6:48am UTC](https://community.auth0.com/t/scope-added-to-the-role-is-not-getting-assigned-to-the-user-with-that-role/109053/1 "2023-06-12T06:48:01Z")

</div>

I am assigning scope to the particular role by calling auth0 api from the C# .net project. And, scope is assigned correctly to the role. But, the problem is that, the scope is not getting assigned to the user with that role.

What may be the cause of this problem?  
What is the solution?

---

<div class="post-metadata">

**Author:** ![andrea.chiarelli](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andrea.chiarelli/32/16034_2.png) [@andrea.chiarelli](https://community.auth0.com/u/andrea.chiarelli)\
**Post date:** [June 13, 2023, 8:20am UTC](https://community.auth0.com/t/scope-added-to-the-role-is-not-getting-assigned-to-the-user-with-that-role/109053/2 "2023-06-13T08:20:48Z")

</div>

Hi @gaurav1,  
Welcome to the Auth0 Community!

It’s not clear from your problem description what the context of your application is. If your application is an API and you are looking for scopes/permissions in the access token, you should configure the API on the [Auth0 dashboard](https://manage.auth0.com/) by enabling the **Add Permissions in the Access Token** toggle (see [here](https://auth0.com/docs/get-started/apis/enable-role-based-access-control-for-apis)).

---

<div class="post-metadata">

**Author:** ![gaurav1](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@gaurav1](https://community.auth0.com/u/gaurav1)\
**Post date:** [June 16, 2023, 11:35am UTC](https://community.auth0.com/t/scope-added-to-the-role-is-not-getting-assigned-to-the-user-with-that-role/109053/3 "2023-06-16T11:35:09Z")

</div>

thanks for your suggestions

---

<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:** [June 30, 2023, 11:35am UTC](https://community.auth0.com/t/scope-added-to-the-role-is-not-getting-assigned-to-the-user-with-that-role/109053/4 "2023-06-30T11:35:55Z")

</div>

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