Re-register user to another group

Re-register user to another group

by Volker Radmer -
Number of replies: 1

Hello,

I have a question about uploading with a CSV file.

This CSV file is created and uploaded successfully:

username;firstname;lastname;sysrole1;cohort1;group1;group2
tjones;Tom;Jones;employee;home;class1;class2

Now the user completes the course and I want to put him into another group.

So I upload the following file:

username;firstname;lastname;sysrole1;cohort1;group1;group2
tjones;Tom;Jones;employee;home;roomA;roomB

When I upload, I make sure that the appropriate fields are updated with the data from the CSV.

Unfortunately, Moodle goes here and creates a new group for the user or enters both groups for the user. (under user propertires -> class1,roomA)

How can I get it to "forget" the first group and only enter the user in the second group?

I already tried to upload the user with blank group field, but Moodle does not forget the old name sad

Deleting the user (deleted=1) is not an option, since all course progress/certificates is then also deleted.

Has anyone ever had the same problem and had a solution???

Thanks for a reply

Many greetings,
Volker Radmer

Average of ratings: -
In reply to Volker Radmer

Re: Re-register user to another group

by Volker Radmer -

Hello all,

no one has an idea or already had the problem itself?

Would there be a possibility on database level?

Thank you very much for a little comment.


Many greetings,

Volker Radmer