Solved

Drush to disable all accounts?

Posted on 2013-11-06
2
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

730 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