# Scope not affection access\_token only id\_token

**URL:** <https://community.auth0.com/t/scope-not-affection-access-token-only-id-token/6388>\
**Category:** Get Help\
**Tags:** symfony, id\_token, php, scopes, access-token\
**Created:** [April 27, 2017, 8:58pm UTC](https://community.auth0.com/t/scope-not-affection-access-token-only-id-token/6388 "2017-04-27T20:58:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roje](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/roje/32/3279_2.png) [@roje](https://community.auth0.com/u/roje)\
**Post date:** [April 27, 2017, 8:58pm UTC](https://community.auth0.com/t/scope-not-affection-access-token-only-id-token/6388/1 "2017-04-27T20:58:53Z")

</div>

I’m working with the quick guide Symfony PHP. While intercepting the responses in the Auth0 flow I discovered something I dont quite understand. The bundle is configured to use scopes

```
scope: "openid email"

```

And right enough if I inspect the `id_token` on [jtw.io](http://jtw.io) it only showed the scoped details of the user. What is baffling is I also see an object derived from the class `HWI\Bundle\OAuthBundle\OAuth\Response\PathUserResponse` that contains the whole user profile. All data available. When I try calling the `https://{{auth0_domain}}/userinfo` with the `access_token` I get the whole user profile and not the scope I would expect from an `access_token` with scope. Am I missing something? I thought scopes limited the data returned from using an `access_token`.

Calling `https://{{auth0_domain}}/tokeninfo` with the scoped `id_token` seems to return the whole user as well.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [May 8, 2017, 8:04pm UTC](https://community.auth0.com/t/scope-not-affection-access-token-only-id-token/6388/2 "2017-05-08T20:04:31Z")

</div>

If you’re making your authentication requests as per the [OIDC compatibility mode](https://auth0.com/docs/api-auth/tutorials/adoption#terminology) then the information returned within the ID Token and as part of `/userinfo` will conform to that specification and as such honor the OIDC scopes you requested. Have in mind that `/tokeninfo` is a custom endpoint, not specified under the OIDC specs and as such it’s out of scope for this analysis.

If you’re receiving a response from `/userinfo` that includes more information than the one you requested through OIDC scopes then the likely cause is that the original request and resulting tokens were not issued as part of an OIDC compliant flow. You can see the link above for the ways to ensure you get OIDC compliant behavior in the ID Token and `/userinfo` endpoint.

---

<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 2, 2018, 5:53am UTC](https://community.auth0.com/t/scope-not-affection-access-token-only-id-token/6388/3 "2018-03-02T05:53:32Z")

</div>


