Suspended, deleted or neither?

Suspended, deleted or neither?

by Roberto Catanuto -
Number of replies: 1

Moodle 3.9.8+

I have a csv users' file like this: 

username,firstname,lastname,email,suspended
marwan.maheria,Marwan,Maheria,marwan@gmail.com,1
then I add the column for deletion, but I forget to remove '1' from the "suspended" column:
username,firstname,lastname,email,suspended, deleted
marwan.maheria,Marwan,Maheria,marwan@gmail.com,1,1
What does Moodle do? Deletion or Suspension?
Thanks for support

Average of ratings: -
In reply to Roberto Catanuto

Re: Suspended, deleted or neither?

by Randy Thornton -
Picture of Documentation writers
It does both. It suspends then, then deletes them. It will tell you this on the report screen after the upload runs.

However, as part of deleting an account, Moodle removes any suspension setting and returns it back to 0, since it is irrelevant to a deleted user. If you were able to restore a deleted user, it would have suspension set to 0 not 1. You can verify this in the database by looking at any deleted user and you will see that deleted =1 but suspended = 0.
Average of ratings: Useful (2)