Actions12
User → Get Many
AI-generatedSummary
Retrieve multiple WordPress users with optional filtering, sorting, and pagination via the WordPress API.
Inputs
- Return All — Boolean to specify whether to return all users or limit by a specified number.
- Limit — Maximum number of users to return if not returning all. Must be between 1 and 10.
- Options — Collection of advanced parameters including context (view/embed/edit), order (asc/desc), orderBy (email, id, include, include_slugs, name, registered_date, slug, url), search string, and who (authors only).
Output shape
a list of user objects returned from the WordPress API.
If 'Return All' is true, all matching users are returned, handling pagination internally. Otherwise, only up to 'Limit' users are returned. The response fields and scope depend on the 'context' option.
Examples
Example 1: Get up to 10 users sorted by ID in descending order with default context
Return All set to false; Limit set to 10; Options with default values (context: view, order: desc, orderBy: id)
Example 2: Get all user authors matching a search string
Return All set to true; Options with who set to authors and search string provided