Get a vector of users_id named by logins and lastnames from a selected course and with enrolled only or everyone

get_users(selected_course, only_enrolled, users2_init, acad_year)

Arguments

selected_course

Selected course, can be "All" or specific.

only_enrolled

Only the enrolled users or everyone.

users2_init

The table from which it gets the users.

acad_year

The academic year of the users.

Value

A vector of users_id name by logins and lastnames

Examples

# Need a reactive context and a MongoDB database