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: Update a user

Update user by ID.

Examples

Update user by ID

let user = try await admin.updateUser(
  id: UUID(uuidString: "715ed5db-f090-4b8c-a067-640ecee36aa0")!,
  AdminUpdateUser(
    email: "newemail@email.com"
  )
)

Ban a user for 24 hours

let user = try await admin.updateUser(
  id: UUID(uuidString: "715ed5db-f090-4b8c-a067-640ecee36aa0")!,
  AdminUpdateUser(banDuration: .seconds(86_400))
)