Moodle CSV Upload User with Roles -


there 2 questions need ask:

  1. when upload csv , mention password field in generic password "!letmein123", can't login through password. if try specified username in password i.e same username , password, logs me in. how can overcome this?

  2. is there way can define role of user in csv? default 1 too. right after successful upload of csv, need define user role 1 one. can in csv?

wich moodle version use?

for question 1: if included, values should meet requirements site's password policy.

for question 2:

you can use role id of role, including roles have created. in example below, i'm assigning student role (roleid 5) john smith in "features" course. can find role id of role going site administration -> users -> permissions -> define roles , letting mouse hover on 1 of roles (see roleid in uri).

username,password,firstname,lastname,email, role1, course1 jsmith, demo, john, smith, s7@example.com, 5, features


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -