additional discussion can be found in this thread - https://totara.community/mod/forum/discuss.php?d=17953
At the moment it also includes courses where people are Editors, F2F Trainers etc. These people usually never actually do the course so it is a) confusing and b) those courses will never be completed.
Background: some users are enrolled as teachers in courses, and therefore do not have to complete them. Due to them being enrolled, completion records are created for them nonetheless to be displayed in the Completion Record. But also, due to them being teachers, they never get to "complete" these courses, making the said completion records stay there forever.
Solution: introduce a custom course-level permission; users who lack that permission for this particular course would not be having this course in their Completion Record. Moodle has a native permission to the similar effect ("moodle/course:isincompletionreports"), which excludes users from the course completion report (/report/completion/index.php). Would be great to have something like this for Totara completions as well.
A reverse solution could also work: only courses where users HAVE this permission would be included in the Completion Record (because basically we only want students have such completion records, and no one else).
The Moodle permission you're referring to is not exactly the issue - I just mentioned it as an example of what we'd like to see for the completion records. And by Completion Record I mean:
- Record of Learning for a user (visible at totara/plan/record/evidence/index.php) - i.e. entries in mdl_comp_records table.
- Reports in Report Builder, which use the same information.