Skip to content

Add pagination support for admin users list endpoint #482

@JohnRDOrazio

Description

@JohnRDOrazio

Description

The GET /admin/users endpoint currently uses a default limit of 100 users for both listProjectUsers() and listAllUsers() calls. With more than 100 users, results will be silently truncated.

Suggested Enhancement

  • Accept limit and offset query parameters
  • Return pagination metadata (total count, current page, etc.)
  • Consider auto-pagination to fetch all pages if no limit is specified

Files Affected

  • src/Handlers/Admin/UsersHandler.php
  • src/Services/ZitadelService.php (methods already support limit/offset)

Priority

Low - current limit of 100 is sufficient for the expected user base.


Identified by CodeRabbit code review.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions