When using the Learning Locker xAPI Logstore Moodle Plugin, the wrong actor seem to be sent in the course completion statements.
The admin user is recorded as the actor in the statement instead of the log events "related user". While viewing the satement in LL, it look like the admin user is completing the course multiple times.
LL Report for completed courses:
Admin User completed Course 1 | 19 hours ago (Thu, May 4, 2017 10:51 AM)
Admin User completed Course 1 | 19 hours ago (Thu, May 4, 2017 10:42 AM)
Log event for user 6:
"http://lrs.learninglocker.net/define/extensions/moodle_logstore_standard_log": {
"eventname": "\\core\\event\\course_completed",
"component": "core",
"action": "completed",
"objecttable": "course_completions",
"objectid": "5",
"crud": "u",
"edulevel": 2,
"contextid": 22,
"contextlevel": 50,
"contextinstanceid": "2",
"userid": "2",
"courseid": "2",
"relateduserid": "6",
"other": "a:1:{s:13:\"relateduserid\";s:1:\"6\";}",
"timecreated": 1493894522,
"origin": "cli",
"object": "course"
Log event for user 7:
"http://lrs.learninglocker.net/define/extensions/moodle_logstore_standard_log": {
"eventname": "\\core\\event\\course_completed",
"component": "core",
"action": "completed",
"objecttable": "course_completions",
"objectid": "6",
"crud": "u",
"edulevel": 2,
"contextid": 22,
"contextlevel": 50,
"contextinstanceid": "2",
"userid": "2",
"courseid": "2",
"relateduserid": "7",
"other": "a:1:{s:13:\"relateduserid\";s:1:\"7\";}",
"timecreated": 1493895062,
"origin": "cli",
"object": "course"