Searches for WordPress users who are not yet enrolled in the course, for the add-student picker.
Limited to 100 candidates. Email addresses are only included for callers with the WordPress list_users capability. On multisite the search is restricted to users with capabilities on the current site.
Endpoint
Method:
GETPath:
/admin/courses/{course_id}/users/searchEdition: Core
Controller:
CourseAdminController@getOtherUsersRoute source:
fluent-community/Modules/Course/Http/course_api.php:35Controller source:
fluent-community/Modules/Course/Http/Controllers/CourseAdminController.phpRequires a course admin for this course, or a WordPress user with
manage_options.
Live sample
The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.
GET Search Course Users
Searches for WordPress users who are not yet enrolled in the course, for the add-student picker.
Controller: CourseAdminController@getOtherUsers
Route source: fluent-community/Modules/Course/Http/course_api.php:35
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Course ID extracted from the URL path.
Query Parameters
Search read via $request->getSafe() in getOtherUsers().
Responses
Successful response