auto-delete user accounts after a period of inactivity

auto-delete user accounts after a period of inactivity

napisao/la Marc Delisle -
Broj odgovora: 7
Hi,

I already am using the auto-unsubscribe from a class after x days of inactivity. Is there a way to auto-delete student accounts after x days of inactivity?

Thanks.

Marc Delisle
Odgovor na Marc Delisle

Re: auto-delete user accounts after a period of inactivity

napisao/la Eloy Lafuente (stronk7) -
Slika Core developers Slika Documentation writers Slika Moodle HQ Slika Peer reviewers Slika Plugin developers Slika Testers
Hi Marc,

I think that deleting users at all can be a really problem to mantain the "integrity" of your Moodle instalation. There are a lot of info asociated with the student that you want/need to delete (forum posts, assignments, quizzes...pieces of work in general).

In Martin's words:

User accounts are never deleted, they just get marked deleted. The username field gets changed to something unique so that that username is freed up to be used again.

The reason we keep the user data is that other data (like forum posts) may still exist throughout in your installation that references that user. For example, it would be impossible to show the name of the person who made a forum post if the user record was missing.


Ciao osmijeh
Odgovor na Eloy Lafuente (stronk7)

Re: auto-delete user accounts after a period of inactivity

napisao/la Marc Delisle -
Thanks Eloy,

I understand the reasons for keeping the user data, and I agree
to them. However, if there was a way to automatically "mark deleted" the accounts, some pages like "edit user accounts" and "assign teachers" would be less cluttered.

Marc Delisle
Odgovor na Marc Delisle

Re: auto-delete user accounts after a period of inactivity

napisao/la Gustav W Delius -

Go to Administration --> Configuration --> Variables and then set the longtimenosee variable to whatever you desire. The instructions next to that setting say:

"If students haven't logged in for a very long time, then they are automatically unsubscribed from courses. This parameter specifies that time limit. "

However the way I understand it the students are not only unsubscribed from the courses but are also marked as deleted.

Odgovor na Gustav W Delius

Re: auto-delete user accounts after a period of inactivity

napisao/la Martin Dougiamas -
Slika Core developers Slika Documentation writers Slika Moodle HQ Slika Particularly helpful Moodlers Slika Plugin developers Slika Testers
No, they aren't deleted, but a similar setting called "deleteunusedaccounts" would be a good idea.  It wouldn't really delete them from the database but would still mark them as deleted.
Odgovor na Martin Dougiamas

Re: auto-delete user accounts after a period of inactivity

napisao/la Chris Ainsworth -
Hi Martin - I would not mark them as deleted - as this could be confusing  during an external Auditor of the LMS as we are starting to see in Austraia and will gradually spread globally. I needs to be a name that is identifiable - maybe Student Archive.

Auditors  seem to follow trails that  have the word "deleted" appear anywhere them and the instruction reading something like Student records transferred to Student Archive, or something of that nature.

Just food for thought


Odgovor na Chris Ainsworth

Re: auto-delete user accounts after a period of inactivity

napisao/la Timothy Takemoto -

Dear Martin,

I note that some once-were-Moodler who are no longer members of the moodle.org moodle course. It may well be that they chose to opt out of the course but it also may be simply that they did not post for a while and their membership lapsed.

This may be especially true in the Japanese forum where we find that Japanese members are shy to post, but if they do not post they will be automatically removed from the course database.

Please may I suggest longtime no see setting be lengthened (perhaps indefinately?) for "Using Moodle", or perhaps just "Japanese." 

I guess that this will stress the server so, I can see why you would want to prune but at the same time it is a shame to see the registered user base seep away.

Tim

Timothy Takemoto
By the way, I am thinking of people like "Chris U" and John Bristor. They probably logged out themselves.

Odgovor na Timothy Takemoto

Re: auto-delete user accounts after a period of inactivity

napisao/la Lev Abramov -

Talking of longtimenosee:

I cannot remember whether this has been entered as an item for the wishlist:

it would make a lot of sense to move the longtimenosee automatic unenroll from one site-wide setting to a table in the db with the option of making it course-specific.

Where does this stand, Martin? Any chance?

Lev