Flatfile by username instead of user ID?

Re: Flatfile by username instead of user ID?

by Iñaki Arenaza -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Is that supposed to be the # of the user that you seen when you click on a user's name and see their profile?

No, you need to specify the 'ID Number' of the user. That's a field you can fill by editing the user profile, with whatever information you want.

If you want to user usernames, just copy the username there. You can do this in a single go by executing the following database query:

UPDATE mdl_user SET idnumber=username;

Beware this will set the 'ID Number' for every single user in your Moodle site (including the guest and admin users).

Saludos. Iñaki.