In admin account user screen when seletected a user and clicked a button i need to display all the roles assigned to the user.
So i get the user id there also user object. But there is no authorities in user object
So i need to fetch the user object with authorities using user id
You need Roles? Not Policies? You can load them through RoleAssignmentEntity
. RoleAssignmentEntity
contains username
and role_code
and role_type
.