# \#mezzio-authorization

**URL:** https://discourse.laminas.dev/tag/mezzio-authorization/68.md

[Latest](https://discourse.laminas.dev/latest.md) · [Categories](https://discourse.laminas.dev/categories.md) · [Tags](https://discourse.laminas.dev/tags.md)

---

## [Fill roles\[\] (UserInterface) after authenticate (oauth2)](https://discourse.laminas.dev/t/fill-roles-userinterface-after-authenticate-oauth2/2546)

<div class="topic-metadata">

**Author:** [@MichaelB](https://discourse.laminas.dev/u/MichaelB)\
**Replies:** 6\
**Last updated:** [October 20, 2021, 12:15pm UTC](https://discourse.laminas.dev/t/fill-roles-userinterface-after-authenticate-oauth2/2546 "2021-10-20T12:15:32Z")

</div>

Hi all, mezzio-authentication return a DefaultUser immutable for security reasons. I use it with mezzio-authentication-oauth2 and oauth2 do not use the roles\[\] attribute (UserInterface) but i need it to use mezzio-autho…
