Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By ksoonson on
How can I find list of users who belongs to certain role X?
I don't see any link for that in the admin page even though I enabled search module.
Thanks
Comments
a new feature request?
I can't see anywhere that this functionaly is built in to the user module, though I agree it would be useful. I suggest filing a feature request (issue) against user.module.
One way to do this would be to add filtering by role to function user_admin_account() (creates the page at administer >> users), similar to the filtering by node type, status, etc. that one can do at administer >> content.
How many user roles do you have? For the moment, you could create custom pages with PHP for each user role.
---
Work: BioRAFT
There is a userlists module
There is a userlists module that gives you tabs at admin>>users according to users by role. As far as i remember, it was cvs only, worked with 4.6 and has not been updated for 4.7
a quick snippet
Here's a snippet that mostly reuses the code from function user_admin_account(). A quick check of it seems to work- paste into a page or story node with PHP input format. Let me know if it works for you.
---
Work: BioRAFT
thanks very much. it works
thanks very much. it works fine...