Let's say you add 300 users via a csv file upload
. What would you want to be recorded for each student in the log file?
Or if a student "self-registers?" In this case, they created their own account.
So these examples might be why the logstore_standard_log file does not keep track of who added a user. However, you might be able to explore the enrolments tables. There might be something there. There might be some way to get to what you desire.
How do you add your users?
Here is one thing that I tried. I manually added a new user (to my experimental Moodle.) Then I looked at the logstore file to see what records were created. Yep, I see that I created a user, the user number is "objected."
So, if I was looking for users that I manually added, the query would look something like:
WHERE action = "created"
AND target = "user"
ORDER BY timecreated DESC
When I do this, I can see that I manually added the last student. However, I see that userid = 0 added most others. userid=0 is a system user, meaning no one.
You would have to do a few joins to mdl_user if you wanted the names, and not their moodle student number.