How can I retrieve the list of all admin that has the same role?
For example, I create a new role called "Seller" and assign some admin users to that role.
How to list all admin users with the role "Seller"?
Thank you very much
adminrole
How can I retrieve the list of all admin that has the same role?
For example, I create a new role called "Seller" and assign some admin users to that role.
How to list all admin users with the role "Seller"?
Thank you very much
Best Answer
To get all the Roles
To get the Role users
Or in your database you can check in the table
admin_role
which role you want to check, for example id=1 is my administrator and then with the queryYou get all users with the Administrator role. And I have customer service with id=2 so the query would be
Which gives me all users with the role customer service and so on...