by Raúl Sanz Pérez.
No problem, the users are not duplicated.
I think what caused the issue was:
1) I did a first course restore and users were automatically onboarded in the moodle site and enrolled in the course
2) I deleted the course
3) when the course was deleted the users were kept in the moodle site
4) I removed the users from the site using the GUI
5) when I tried to restore the course again, the users were not automatically onboarded nor enrolled in the course because they already exist (but marked as deleted and with some missing data, as email addresses) but not shown in the GUI, despite they were in the DB
and the solution was:
6) remove the deletion mark from the users in the DB
7) restore the course > it restored the users in the site, with all their data, and it enrolled the users in the course
8) and now everyting works
![smile smile]()
Thanks for your help Ken.
I think what caused the issue was:
1) I did a first course restore and users were automatically onboarded in the moodle site and enrolled in the course
2) I deleted the course
3) when the course was deleted the users were kept in the moodle site
4) I removed the users from the site using the GUI
5) when I tried to restore the course again, the users were not automatically onboarded nor enrolled in the course because they already exist (but marked as deleted and with some missing data, as email addresses) but not shown in the GUI, despite they were in the DB
and the solution was:
6) remove the deletion mark from the users in the DB
7) restore the course > it restored the users in the site, with all their data, and it enrolled the users in the course
8) and now everyting works
Thanks for your help Ken.