Lockout account feature on a set of users

Lockout account feature on a set of users

by Mario Gharib -
Number of replies: 1

Dear Moodlers,

Is it possible to apply the lockout account feature on a set of users ?

I know how to lockout account on all users, but I want to apply this feature on a set of users instead of all of them.

Thanks. 

Average of ratings: -
In reply to Mario Gharib

Lockout account feature on a set of users

by John Provasnik -
Picture of Particularly helpful Moodlers Picture of Testers
If you have an SIS, you can export usernames into a CSV of everyone you want to lock out. Then you throw in a 2nd column called "auth" so you can change their authentication method to "nologin" -- this will prevent them from logging in once you upload that csv to the " Site administration - Users - Accounts - Upload users" section of your site. When you're ready to 'unlock them', use the same CSV but use "manual" instead of "nologin".