Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support listing users (drush user-list) #165

Open
klonos opened this issue May 7, 2019 · 2 comments
Open

Support listing users (drush user-list) #165

klonos opened this issue May 7, 2019 · 2 comments

Comments

@klonos
Copy link
Member

klonos commented May 7, 2019

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
Copy link
Member Author

klonos commented May 7, 2019

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
Copy link
Member

serundeputy commented Jun 14, 2019

I'm for this feature.

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

  • the backdrop commands will not be picked up by D7 as it checks for a backdrop env before swapping out/injecting any backdrop-drush-extension commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants