User become Teacher after importing course activity

User become Teacher after importing course activity

by Dhimas Prakoso -
Number of replies: 3

Dear All,

I have a question about importing course activity.

We're importing course activity using menu Import in Course, and it works, exactly what we want.

But.... after importing course activity, users become Teacher in those training

Is this standard Moodle thing? Or are we missing something?

In our case, we allow non editing to import (with capabilities moodle/backup:backuptargetimport & moodle/restore:restoretargetimport) but not allow them to edit the course


Before importing activity:


After importing course activity:


Thank You 

Average of ratings: -
In reply to Dhimas Prakoso

Re: User become Teacher after importing course activity

by Randy Thornton -
Picture of Documentation writers
Dhimas,

What setting do you have in Site administration > Users > Permissions > User policies :: Restorers' role in courses? The default is Teacher.

Since the Import process uses the Restore process in the background, it will assign a user that new role in accordance with that setting. In your case, since the Importer is a Non-editing teacher, it is adding the Teacher role assignment as it is set to do.

You can change that setting to "None" if you want to avoid adding any new role assignment after restores or imports.

Randy
Average of ratings: Useful (3)
In reply to Randy Thornton

Re: User become Teacher after importing course activity

by Dhimas Prakoso -
Hi Randy,

I changed setting in Site administration > Users > Permissions > User policies :: Restorers to "None"
And.. it works just like we wanted. Non editing teacher stays

Thank You Randy for your help
Average of ratings: Useful (1)