Solved

Drush to disable all accounts?

Posted on 2013-11-06
2
239 Views
Last Modified: 2013-11-21
I've got a community driven site with over 8000 authenticated, active users.

I want to temporarily block all users, but the People interface only allows me to select 50 at a time.

1) Can I do a "select all" another way , or 2) perhaps use Drush? (if so, what's the command?)
0
Comment
Question by:sandshakimi
2 Comments
 
LVL 13

Assisted Solution

by:Arrow_1
Arrow_1 earned 250 total points
ID: 39628235
I don't know of any Drush command, but you can use the Administration Views module replace the user page with a View. Then you can edit that view to show as many users per page as you like.

You may also want to pay attention to any accounts that are already blocked to be sure you don't unblock them when you restore the others.

Out of curiosity, why are you temporarily blocking all of the accounts? Maybe there is something better you could be doing.
0
 
LVL 2

Accepted Solution

by:
itkadmin earned 250 total points
ID: 39630148
Arrow_1 last question is worth consideration. Maybe something with permissions may accomplished what you want to do more efficiently.

For managing users, I use views with bulk operations (VBO). https://drupal.org/project/views_bulk_operations

This allows me to sort users on all our custom parameters, city, area code, language etc using views filters. then I use VBO work with the accounts to change entity values.

I'm not sure how well that will work for you. I'm not dealing with anything near 8000 site members. Running VBO on that many users might choke or take a long time depending on how robust your server environment is.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
mysql between clause 2 24
AWS EC2 & RDS Instance 5 35
editing example file and creating an accessible same directory error log txt file 2 33
website maintenance mode 1 17
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question