Searches WordPress users for the admin pickers, returning a paginated list matched on name, login and email.
Pass context=add_manager to exclude users who already hold a community role. On multisite the result is limited to users with capabilities on the current site.
Endpoint
Method:
GETPath:
/admin/usersEdition: PRO
Controller:
ProAdminController@getUsersRoute source:
fluent-community-pro/app/Http/Routes/api.php:13Controller source:
fluent-community-pro/app/Http/Controllers/ProAdminController.phpRequires the FluentCommunity community-admin permission (or a WordPress super admin).
Requires FluentCommunity Pro.
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 Admin Users
Searches WordPress users for the admin pickers, returning a paginated list matched on name, login and email.
Controller: ProAdminController@getUsers
Route source: fluent-community-pro/app/Http/Routes/api.php:13
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Query Parameters
Search read via $request->getSafe() in getUsers().
Context read via $request->get() in getUsers().
Responses
Successful response