backdrop-contrib / backdrop-drush-extension

A set of commands and boot class for Drush and Backdrop CMS.
GNU General Public License v2.0
14 stars 18 forks source link

Support listing users (`drush user-list`) #165

Open klonos opened 5 years ago

klonos commented 5 years ago

In D7 you need Drush User List to be able to do that, but this implies that it will only work on a per-site basis. Can this be implemented on the drush-level, so that it is a global command? Does it have to be supported by the main drush script, or can we implement it as a drush command? ...and in the later case, will it then also work for D7 sites (which will be a win 😄)?

klonos commented 5 years ago

In https://drupal.stackexchange.com/questions/159355/how-to-list-all-users-in-drush it is suggested to use drush uinf + drush sqlq, like so:

drush uinf $(drush sqlq "SELECT GROUP_CONCAT(name) FROM users")

...but there is a note to say that this command might fail if certain special characters are used in the username. During my tests, I got errors when usernames had spaces in them (very common I guess, since there is nothing in Drupal/Backdrop to advice against this).

serundeputy commented 5 years ago

I'm for this feature.

and in the later case, will it then also work for D7 sites (which will be a win smile)?