Skip to content

richardbporter/drush-users-commands

Repository files navigation

CI Status

drush-users-commands

Drush commands to interact with multiple Drupal users.

Requirements

  • Drush ^12.2 || ^13.0
  • Drupal ^10.2 || ^11.0

Installation

Since this is a site-wide Drush command, it will only be found when installed in certain directories. It is recommended to update your Composer installers path for drupal-drush packages to:

"drush/Commands/{$name}": ["type:drupal-drush"]

Then install it as usual:

composer require richardbporter/drush-users-commands

Note that the directory the package is installed to (UsersCommands) differs from the repository name (drush-users-commands) due to the installer name property.

Commands

drush users:list

List all Drupal users in a table format. See drush users:list --help for filtering options.

Aliases: ulist, user-list, list-users

drush users:toggle

Block/unblock all users while keeping track of previous state.

For example, say you have the following five users with corresponding statuses:

  • admin -> active
  • foo -> blocked
  • bar -> active
  • baz -> active
  • qux -> blocked

Running drush users:toggle will block admin, bar and baz. Running drush users:toggle again will unblock admin, bar and baz but foo and qux stay blocked since that was their previous status.

Aliases: utog

About

Drush commands to interact with multiple Drupal users.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy