Quantcast
Channel: Authentication
Viewing all articles
Browse latest Browse all 8256

Re: Batch disabling of users

$
0
0
by Peter Bowen.  

If you have all the user names in a CSV, then you can do some manipulation to produce SQL script. I do this on a weekly basis, and produce something similar to:

UPDATE mdl_user SET suspended=1 WHERE
username=jackross
OR username=johnstone
OR username=garyjones

You then run this directly on the SQL server, and the list of users is now suspended.

I would suggest that if you do not know how to run SQL against your database, than the above is not for you... :D

Kind Regards
Peter

 


Viewing all articles
Browse latest Browse all 8256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>