public interface UserReader extends CanvasReader<User,UserReader>
| Modifier and Type | Method and Description |
|---|---|
List<User> |
getUsersInAccount(GetUsersInAccountOptions options)
Retrieve a list of all users for an account.
|
List<User> |
getUsersInCourse(GetUsersInCourseOptions options)
Retrieve a list of users in a course
|
Optional<User> |
showUserDetails(String userIdentifier)
Retrieve a specific user details from Canvas by user identifier
|
readAsCanvasUser, readAsSisUser, withCallbackList<User> getUsersInCourse(GetUsersInCourseOptions options) throws IOException
options - API options for this API callIOException - When there is an error communicating with CanvasOptional<User> showUserDetails(String userIdentifier) throws IOException
userIdentifier - The object holding a user identifier value, for example:
Numeric Canvas user ID
A string like "sis_integration_id:123" to query by SIS integration ID
A string like "sis_user_id:ABC" to query by SIS ID
The special string "self" that the Canvas API interprets as "the currently logged in user"IOException - When there is an error communicating with CanvasList<User> getUsersInAccount(GetUsersInAccountOptions options) throws IOException
options - API options for this call. Acceptable options are:
search_term - what is being used to search for userssort - what order the users are coming back in;
acceptable values here are username, email, sis_id and
last_loginorder - what order the users are coming back in;
acceptable values here are asc and descIOException - When there is an error communicating with CanvasCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.