Assign teacher to course
Once you create a course as an administrator or course creator, you need to assign a user to the role of teacher for this course. Otherwise, administrators or course creators are the only ones who can edit a course.
To assign a teacher to a course, click on the course title from the main Moodle page.
Find the admin block inside this course (default is the lower, left-hand side) and choose the "Assign roles" option.
When the "Assign roles" page loads, choose the teacher link from the list.
On the second page of the "Assign roles" page, you will see two lists separated with two arrows. The left-hand list displays the current users assigned to this role (teacher in this case) and the right-hand list displays the available users. Highlight the users from the right-hand list you want to assign to the role of teacher for this class and then click the arrow pointing to the left. To remove a user already assigned to this role, highlight the user in the left-hand list and then click the arrow pointing to the right.
Whoever is in the left-hand list is now a teacher for this particular course. In this case, Zachary is now a teacher for the Sample Course 101.