For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

Swift: List all users

List all users in the system.

Examples

List users

let page = try await admin.listUsers()
let users = page.users

List users with pagination

let page = try await admin.listUsers(
  page: 2,
  pageSize: 10
)
let users = page.users
let total = page.total

Iterate over every user

for try await user in admin.users(pageSize: 100) {
  print(user.id)
}