In moodle I can find the logged userid as follows:
$userid = $USER->id;
How can I find all logged in userids' in a particular course? I have courseId with me.
courseId
I need to show Logged in usernames in my module.
moodle version : 2.9.1