As title says... How do I enroll 200 users to 'Teacher' role?
I have been searching for a practical solution but cannot find one.
I have all users in a csv if this helps..
Thank you.
Use the upload users option...https://docs.moodle.org/30/en/Upload_users
Just add a column for role and use the role id number of your teacher role.
I have tried this.. I get an error that 'role' is not a valid field on my csv.
Try "role1"
Just tried this and the role as 'teacher' and 'editingteacher' but as the upload finishes, the Enrollment column is empty and it doesn't appear to be assigning those users to 'teacher' or 'editingteacher' .
Thanks
Are you trying to enrol these users into a course?
Theo - I have just noticed that you've posted a similar question yesterday https://moodle.org/mod/forum/discuss.php?d=327281#p1315802
Would you like to choose the one you prefer and I will delete the other one, as duplicate posts only fragment the support you may receive
No. I just want to assign them the editing teacher role so they can edit courses and enroll themselves on to the courses.
Hello again Theo. As mentioned before, please see Upload users and the section on system roles.
I see you have started two discussions on the same issue. Duplicating a post only fragments the support you might receive, so please tell me which thread is more helpful to you and I will delete the other one and we can continue the conversation on the one you prefer.
I have read it. It doesn't explain where to give multiple users a role.
I have a basic standard Moodle install I done the other day. It hasn't been released or edited from the standard installation.
I have imported 200 users. I will now like to apply them to the editing teacher role.
I have created a csv file but it does not assign them the role.
The CSV looks like this:
Username | Firstname | lastname | auth | role1 | |
user1 | name1 | last1 | email1@email.com | ldap | editingteacher |
Auser2 | name2 | last2 | email2@email.com | ldap | editingteacher |
Please see attached image after I upload the csv.
hello Theo. I presume you wish to continue the discussion on this thread, so I have deleted the other thread. I understand that the Upload users page deals with manually uploading users to a system role, but your screenshot suggest you are trying to do this with LDAP and I am afraid I have no experience of LDAP. I am editing the subject title to make it clearer to others what you are looking for. Does the documentation on Ldap authentication and/or Ldap enrolment help at all?
Are you sure you really want to add your teachers as teachers throughout the system? It's not usually a good idea, although I appreciate you may wll have reasons we are not aware of.
Thank you.
From your experience why would you not suggest giving teachers the teacher role? I will read the LDAP enrolment guide. Thanks.
How do i check the role id?
Go to the roles page in your moodle installation. If you hover over the edit button, the url that it links to will include the role id. Normally it is 3.
Thank you. I tried how ever I get either the same blank enrollment section (attached image) or if I change the column to sysrole1, i get the error 'Unknown role "3"'
Thanks
Hello Theo. Regarding not giving teachers the global teacher role, please read the documentation Assign roles