Make sure you checked on “system” where Context types where this role may be assigned :

Enabling teachers to assign the role of teacher

Assign the role of teacher with system roles:

  1. Access Site Administration > Users > Permissions > Define roles.
  2. Click the “teacher role” and Edit .
  3. Click the checkbox “System” where Context types where this role may be assigned.
  4. Click the “Save changes” button.

Enabling student to assign the role of student

Assign the role of student with system roles:

  1. Access Site Administration > Users > Permissions > Define roles.
  2. Click the “student role” and Edit .
  3. Click the checkbox “System” where Context types where this role may be assigned.
  4. Click the “Save changes” button.

After checkbox “System” where Context types where this role may be assigned

you will see list of teacher and student added in “Asign system roles”:

File upload in .csv you should check below:

sysrole1,sysrole2 and sysrole3:we use  “short name” of role to asign it system roles.

for example:

  • user1:there are role manager and student.
  • user2:there are role manager ,student and teacher.
username lastname firstname email sysrole1 sysrole2 sysrole3
user1 user1 user1 User1@gmail.com manager student
user2 user2 user2 User1@gmail.com manager student editingteacher

After upload file and you can see the Result as below:

Conclusion :

when you have a lot user in your project,you should upload user beacause it does not spend a lot of time for adding new user.for my project,there are 271 users which I researched with my test with this success and wanna share to everyone.

Finally I hope you enjoy with this.