# Unable to Retrieve Value of 'scope' claim in JWT

**URL:** <https://community.auth0.com/t/unable-to-retrieve-value-of-scope-claim-in-jwt/128647>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [February 29, 2024, 7:59pm UTC](https://community.auth0.com/t/unable-to-retrieve-value-of-scope-claim-in-jwt/128647 "2024-02-29T19:59:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ogglethorp](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ogglethorp](https://community.auth0.com/u/ogglethorp)\
**Post date:** [February 29, 2024, 7:59pm UTC](https://community.auth0.com/t/unable-to-retrieve-value-of-scope-claim-in-jwt/128647/1 "2024-02-29T19:59:48Z")

</div>

I am unable to retrieve the ‘scope’ claim contained in the JWT when using the ‘AuthService’ class provided in ‘@auth0/auth0-angular’.  
Neither the ‘user’ or ‘idTokenClaims’ property in AuthService contain the ‘scope’ claim.  
Many other claims are there but not the needed ‘scope’ claim.  
The JWT does contain the ‘scope’ claim and the expected values for that claim.  
How can I retrieve the value of the ‘scope’ claim in the Auth0 JWT?

This is the documentation available for what I am using: [AuthService | @auth0/auth0-angular](https://auth0.github.io/auth0-angular/classes/AuthService.html)

Example JWT claims:  
{  
“[.xyz Domain Names | Join Generation XYZ](http://xyz.com/roles)”: [  
“multi\_xyz-dev-poweruser”,“multi\_xyz\_dev-user”  
],  
“[https://xyz.io/tenant":"cust1](https://xyz.io/tenant%22:%22cust1)”,  
“[https://xyz.com/tenant":"cust1](https://xyz.com/tenant%22:%22cust1)”,  
“[https://xyz.io/email":"jdoe@cust1.com](https://xyz.io/email%22:%22jdoe@cust1.com)”,  
“[https://xyz.io/username":"jdoe](https://xyz.io/username%22:%22jdoe)”,  
“[https://xyz.io/naiat\](https://xyz.io/naiat%5C)”:1709227953,  
“exp”:1709314353,  
“azp”:“4BTh7q71cHi9Ya0Vs5ZWW6n9BfznzjLv”,  
“scope”:“openid profile email ia:user ia:poweruser”  
}

---

<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:** [February 29, 2024, 10:13pm UTC](https://community.auth0.com/t/unable-to-retrieve-value-of-scope-claim-in-jwt/128647/2 "2024-02-29T22:13:50Z")

</div>

Hey there @ogglethorp welcome to the community!

> [@ogglethorp](#):
>
> I am unable to retrieve the ‘scope’ claim contained in the JWT when using the ‘AuthService’ class provided in ‘@auth0/auth0-angular’.

This is by design as the scope claim is only relevant to the backend service/API consuming the access token.

---

<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:** [March 14, 2024, 10:14pm UTC](https://community.auth0.com/t/unable-to-retrieve-value-of-scope-claim-in-jwt/128647/4 "2024-03-14T22:14:51Z")

</div>

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