Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

How to get a list of all users assigned to a particular role?

$
0
0
I am using RBAC. For this I am creating an interface to manage all operations/tasks/roles/assignments.

Already created operations, tasks, and roles. Then assigned some roles to some users.

Now I want to show a list of users who have particular role. For example, I would choose "admin" and want to see all users with this role. How can I accomplish this using Yii native API? Currently the only way I see is to implement a model, which doesn't sound right for me. There should be an API to get this info. I might have missed some documentation.

Any help is highly appreciated. Thank you.

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>