What is the difference between suspending and soft-deleting a user?

What is the difference between suspending and soft-deleting a user?

Mark Thornton -
Erantzun kopurua: 9

In the database, in the mdl_user table, I can set deleted = 1 or suspended = 1.

Both lock the user out of the Moodle website.  So what is the difference between these two flags?

Puntuazioen batez bestekoa:Useful (1)
Mark Thornton(e)ri erantzunda

Re: What is the difference between suspending and soft-deleting a user?

Christopher Murad -

When you delete a user in the moodle GUI the deleted flag is set to 1 - not actually removed from the database -  if you wanted to suspend a user from the site you would actually set the user auth to no-login


It appears to me that the suspended field is not in a stock moodle database, perhaps added with certian types of authentication? I tried to do some digging but didn't come up with anything useful.

 

Hope this helps

Thanks

Chris

Puntuazioen batez bestekoa:Useful (1)
Mark Thornton(e)ri erantzunda

Re: What is the difference between suspending and soft-deleting a user?

Johnny America -
I have the same question... whats the difference between setting deleted = 1 and suspended = 1?
Johnny America(e)ri erantzunda

Re: What is the difference between suspending and soft-deleting a user?

Petr Skoda -
Core developers-ren irudia Documentation writers-ren irudia Particularly helpful Moodlers-ren irudia Peer reviewers-ren irudia Plugin developers-ren irudia
Deleted users loose email, username, all preferences, enrolments, group membership, grades - as much as possible. The only exception is data such as forum posts or wiki entries which we can not delete because data of other users depend on it.

Suspended users can not login, but teacher can enrol them, etc. It is a temporary prevention of login. They also do not receive any messages from moodle.
Puntuazioen batez bestekoa:Useful (6)
Petr Skoda(e)ri erantzunda

Re: What is the difference between suspending and soft-deleting a user?

Chris Fryer -

When a suspended user attempts to log in, they get the same message ("Invalid login, please try again") as someone who enters an incorrect password, or attempts to log in with a disabled account, or a non-existent account.  Is that deliberate?  By which I mean also to ask: would it not be useful to give users whose accounts have been suspended a message to that effect?

Puntuazioen batez bestekoa:Useful (1)
Chris Fryer(e)ri erantzunda

Re: What is the difference between suspending and soft-deleting a user?

Melissa Tommarello -

To me this has the possibility for causing quite a lot of confusion to users.  It would be great if suspening an account produced a different message when users attempt to log-in.  As far as I can tell this doesn't look possible without some customising.

In my organisation people often leave and then come back and it would be great if we could just reactive suspended accounts.  However, if a user doesn't realise there account is suspend I image that is going to cause us problems.  Chris has this been an issue for you?

Melissa Tommarello(e)ri erantzunda

Re: What is the difference between suspending and soft-deleting a user?

Constance Horne -

I am having a problem where a Site News post that sends email to everyone is sending email to DELETED users.

So the statement above that deleted users "loose email ..." is not a correct statement. I am on v2.4.0. I am also looking for a FIX!

Constance Horne(e)ri erantzunda

Re: What is the difference between suspending and soft-deleting a user?

G. M. -

Hi Constance,

The statement is correct, however, it could be that the deleted field was set manually and then the deletion process was not executed. You could try to set the deleted field to zero and then delete the user through Moodle.

G. M.(e)ri erantzunda

Re: What is the difference between suspending and soft-deleting a user?

Constance Horne -

I will try this in dev.

Why would it matter if they were originally set up as having LDAP authentication - because that method was abandoned during the original testing.

Also, when querying the users in the system, moodle does not find those ldap users either.