User → List
AI-generatedSummary
List users with optional control over the number of results returned, either all at once or limited to a specified maximum.
Inputs
- Return All — Boolean flag to specify whether to return all user records or limit the number returned.
- Limit — Maximum number of user records to return when 'Return All' is set to false. Minimum value is 1; defaults to 50.
Output shape
A single JSON object containing success status, operation name, the count of users returned, and an array of user objects each with id, name, email, role, and createdAt timestamp.
If 'Return All' is true, returns up to 10 users; otherwise returns up to the specified 'Limit' but capped at 10. Each user object contains id, name, email, role (either 'admin' or 'user'), and createdAt timestamp. This is a simulated data response and does not connect to a live user database.
Examples
Example 1: Return all users
Set 'Return All' to true to retrieve up to 10 user records.
Example 2: Return limited users
Set 'Return All' to false and specify 'Limit' (e.g., 5) to retrieve up to that many user records, capped at 10.