Hello Jackie. I would first check that the users who cannot have the same capabilities as the users who can and are enrolled in the same courses - iirc you have some custom roles which might have an effect on this. I presume it is this: moodle/course:overridecompletion?
Roles and permissions
requireloginerror / Course or activity not accessible
This discussion has been locked so you can no longer reply to it.