# Symfony not receiving user Roles

**URL:** <https://community.auth0.com/t/symfony-not-receiving-user-roles/9279>\
**Category:** Get Help\
**Tags:** symfony, user, roles\
**Created:** [January 24, 2018, 3:14pm UTC](https://community.auth0.com/t/symfony-not-receiving-user-roles/9279 "2018-01-24T15:14:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel21](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/daniel21/32/7797_2.png) [@daniel21](https://community.auth0.com/u/daniel21)\
**Post date:** [January 24, 2018, 3:14pm UTC](https://community.auth0.com/t/symfony-not-receiving-user-roles/9279/1 "2018-01-24T15:14:25Z")

</div>

I have created a Symfony application that uses the Auth0 to authenticate, I have got the ability to log a user into the application, and they can access the secured areas allowed to `ROLE_OAUTH_USER`, but I can’t seem to get the user roles stored in the `app_metadata` to allow access to `ROLE_SUPER` areas.

I have used the Auth0 tester to show the user data and this is the result (I have removed sensitive info):

```
{
  "email": "REMOVED",
  "username": "REMOVED",
  "picture": "REMOVED",
  "nickname": "REMOVED",
  "name": "REMOVED",
  "user_metadata": {},
  "app_metadata": {
    "admin_level": "superadmin",
    "roles": 
      "ROLE_SUPER"
    ]
  },
  "admin_level": "superadmin",
  "email_verified": true,
  "user_id": "REMOVED",
  "clientID": "REMOVED",
  "identities": 
    {
      "user_id": "REMOVED",
      "provider": "auth0",
      "connection": "Username-Password-Authentication",
      "isSocial": false
    }
  ],
  "updated_at": "2018-01-24T06:51:24.969Z",
  "created_at": "2018-01-19T12:50:14.665Z",
  "roles": 
    "ROLE_SUPER"
  ],
  "sub": "REMOVED"
}

```

The only roles that are showing for this or any other user on Symfony is `ROLE_USER` and `ROLE_OAUTH_USER`

It’s probably something silly, or I’m missing a step, any help would be appreciated 🙂

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 14, 2018, 6:10pm UTC](https://community.auth0.com/t/symfony-not-receiving-user-roles/9279/2 "2018-12-14T18:10:32Z")

</div>

As it has been more than a few months since this topic was opened, and there has been no reply or further information provided as to the existence of the issue, we are closing this topic. Please don’t hesitate to create a new topic if this issue is still present, we would be happy to work with you to help find a resolution.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 14, 2018, 6:10pm UTC](https://community.auth0.com/t/symfony-not-receiving-user-roles/9279/3 "2018-12-14T18:10:35Z")

</div>


