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.
This project is not covered by Drupal’s security advisory policy.
Excluded Users is a helper module which allows administrators to select users not to appear in user listings by modules that know how to work with excluded_users. This should only be installed if you're using a module which knows how to work with it (at this time, organizational infrastructure, minutes, and site user list).
Developers, you can make use of this module like this:
$uids_to_exclude = array(0); //usually, you want to exclude the anonymous user
if (module_exist('excluded_users')) {
$uids_to_exclude = excluded_users_get_excluded_uids();
}
// ...
$users_query = db_query("SELECT uid FROM {users}
WHERE uid not in (" . implode(",", $uids_to_exclude) . ")");
Project information
- Module categories: Access Control
- Created by pukku on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.