General developer forum

Using GDPR delete

 
Picture of Esko Virtanen
Using GDPR delete
 

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() ?



 
Average of ratings: -
Picture of Andrew Nicols
Re: Using GDPR delete
Core developersMoodle HQParticularly helpful MoodlersPlugin developersTesters

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

 
Average of ratings: -