Description Usage Arguments Value Examples
View source: R/simple_functions.R
Gets all user information from a specified course. You can use the argument enrollment_type to set a specific filter to user type or the argument enrollment_state for a specific enrollment state of the user, to save some time.
Gets all user information from a specified course. You can use the argument enrollment_type to set a specific filter to user type or the argument enrollment_state for a specific enrollment state of the user, to save some time.
1 2 3 4 5 6 7 8 9 10 11 12 13 | get_users_in_course(
course_id,
enrollment_type = NULL,
enrollment_state = NULL,
include = "enrollments"
)
get_users_in_course(
course_id,
enrollment_type = NULL,
enrollment_state = NULL,
include = "enrollments"
)
|
course_id |
the canvas id of the course (integer) |
enrollment_type |
the canvas enrollment type to return. Use either "StudentEnrollment", "TeacherEnrollment". Default returns all roles. (character) |
enrollment_state |
include users with a specific state. Use either "active", "invited", "deleted" or "completed". Default is "active" and "invited" (character) |
A dataframe containing information about users in the specified course.
A dataframe containing information about users in the specified course.
1 2 3 | get_users_in_course(6348, enrollment_type = "student", enrollment_state = "active")
get_users_in_course(6348, enrollment_type = "student", enrollment_state = "active")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.