Searches for WordPress users who are not yet members of a space, for the add-member picker.
space_id is required and must reference a real space. The search is limited to 100 candidates. Email addresses are only included for community moderators who also hold the WordPress list_users capability. On multisite the search is restricted to users with capabilities on the current site.
Endpoint
Method:
GETPath:
/spaces/users/searchEdition: Core
Controller:
SpaceController@getOtherUsersRoute source:
fluent-community/app/Http/Routes/api.php:29Controller source:
fluent-community/app/Http/Controllers/SpaceController.phpRequires the
can_add_memberpermission in the space named byspace_id.
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 Space Users
Searches for WordPress users who are not yet members of a space, for the add-member picker.
Controller: SpaceController@getOtherUsers
Route source: fluent-community/app/Http/Routes/api.php:29
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Query Parameters
Space ID read via $request->get() in getOtherUsers(). Space ID validated in getOtherUsers().
Search read via $request->getSafe() in getOtherUsers().
Responses
Successful response