Step 1: Prepare Your CSV File

You’ll need a CSV file with at least the following two columns:

Image Placeholder

  • The username must match exactly with the usernames in your Moodle site.

  • The suspended field is set to 1 to suspend the user (set to 0 to unsuspend).

You can add more fields if needed, but only these two are necessary for suspension.

Step 2: Go to the Upload Users Page

  1. Log in as a Site Administrator.

  2. Go to:

    Site administration > Users > Accounts > Upload usersImage Placeholder

Step 3: Upload the CSV File

  1. Upload your CSV file using the file picker or drag-and-drop.

  2. Click Upload users.Image Placeholder


Step 4: Set Upload Settings

On the preview screen:

  • Upload type: Leave as “Add new and update existing users”

  • Existing user details: Choose "Override with file"

  • Allow suspending and deleting accounts: Make sure this is set to Yes

  • Other settings can remain at default unless needed.

Then click Upload users.Image Placeholder


Step 5: Confirm Upload and Check Results

  • You’ll see a confirmation page listing the results.

  • Suspended users won’t be able to log in until they are unsuspended.