# Why are scopes/permissions are duplicated in JWT tokens issued by Auth0?

**URL:** <https://community.auth0.com/t/why-are-scopes-permissions-are-duplicated-in-jwt-tokens-issued-by-auth0/132912>\
**Category:** Get Help\
**Created:** [April 26, 2024, 9:10pm UTC](https://community.auth0.com/t/why-are-scopes-permissions-are-duplicated-in-jwt-tokens-issued-by-auth0/132912 "2024-04-26T21:10:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![magic\_al](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@magic\_al](https://community.auth0.com/u/magic_al)\
**Post date:** [April 26, 2024, 9:10pm UTC](https://community.auth0.com/t/why-are-scopes-permissions-are-duplicated-in-jwt-tokens-issued-by-auth0/132912/1 "2024-04-26T21:10:25Z")

</div>

I use [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac) in Auth0.

The user tokens contain always all permissions assigned to the user. Scopes on the other hand are only included if they are requested during the authentication process.

In case of applications I can enable to include permissions but the scopes are still included and I end up with all the information duplicated.

I’m wondering if there is any reasoning behind this. Is it necessary for some reason to differentiate between scopes and permissions even tough they are effectively the same?

I’m also a bit concerned about the token size. I’m afraid to hit hit a token size limit at some point if everything included twice.

Thanks for helping me to understand the concepts here!

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [April 29, 2024, 2:33pm UTC](https://community.auth0.com/t/why-are-scopes-permissions-are-duplicated-in-jwt-tokens-issued-by-auth0/132912/3 "2024-04-29T14:33:59Z")

</div>

Hi there @magic_al ,

I would go either with the `scope` or `permissions` claim, not both simultaneously. If you send the [/authorize call](https://auth0.com/docs/api/authentication#login) with the `scope` parameter added, then you can expect the `scope` claim to be added by default to the access token, so in that case, I would skip adding the `permissions` claim (as it’s optional).

The advantage of adding the `scope` parameter to the `/authorize` call is that the user, while logging in, will be shown a _consent screen_ with all the requested by the calling application scopes (so they can accept or revoke the access for the application). → In the case of first-party applications (a scenario where both a calling application and the API are registered on your Auth0 tenant or the calling application and your API are on the same domain), the consent screen can be skipped, though.

> [@magic\_al](#):
>
> The user tokens contain always all permissions assigned to the user.

If the access token includes the `permissions` claim, it will contain only permissions of your _custom API_ that the calling application specifies as the `audience`. (The user may also have permissions of another API, but that won’t be included there for the transaction. )

> [@magic\_al](#):
>
> Scopes on the other hand are only included if they are requested during the authentication process.

That’s right 👍🏼

Please let me know if that clears your concerns or if you have any other questions on that.

---

<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 3, 2024, 6:36am UTC](https://community.auth0.com/t/why-are-scopes-permissions-are-duplicated-in-jwt-tokens-issued-by-auth0/132912/6 "2024-06-03T06:36:07Z")

</div>

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