Using GDPR delete

Using GDPR delete

Esko Virtanen -
回帖数:1

Hi

if you need to automate user deletion, can you use the test script in the page below ("Test of deleting user data") to delete them GDPR-style?
https://docs.moodle.org/dev/Privacy_API/Utilities

Or is there a simple function to use, such as delete_user() ?



回复Esko Virtanen

Re: Using GDPR delete

Andrew Lyons -
Core developers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像 Testers的头像

Hi Esko,


In the latest versions of Moodle you can configure Moodle to raise a GDPR delete request when a user is deleted. User who have previously been deleted and who do not have a GDPR delete request can also be created en bulk via a new scheduled task that you can run.

You can also bulk approve these requests.

I would not recommend using the utilities. They are very basic and do not respect the 'Protected' flag on the various contexts. The actual APIs do respect this flag.

Andrew