Skip to content

Admin Users

List Users

List/search every user on the platform, cross-tenant.

Org counts and platform-admin flags come from public; the sign-in columns are a second pass over Better Auth’s tables, joined by email and omitted entirely when that schema is unreadable.

Parameters

NameInTypeRequiredDescription
admins_onlyquerybooleannoOnly users holding platform-admin access.
limitqueryintegerno
offsetqueryintegerno
org_idquerystring (uuid)noOnly members of this organization.
qquerystringnoSearch email/name (substring, case-insensitive)
statusquerystringnoFilter on the account’s is_active flag.

Responses

StatusDescriptionBody
200Successful ResponseUserListResponse
422Validation ErrorHTTPValidationError

Get User

One user: account, org memberships, API tokens, and sign-in identity.

Parameters

NameInTypeRequiredDescription
user_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseUserDetailResponse
422Validation ErrorHTTPValidationError

Get User Audit

Admin-panel actions this user performed, plus actions performed on them.

Three shapes have to be matched, because admin_audit_log records a user in three different places: as the actor, as a user-typed target (deactivate, admin grant), and — for membership changes — as meta.user_id behind an org_membership target id. Matching only the first two silently drops every “added to org X” row, which is exactly the history a support question asks about.

Parameters

NameInTypeRequiredDescription
limitqueryintegerno
offsetqueryintegerno
user_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseUserAuditResponse
422Validation ErrorHTTPValidationError

Get User Sessions

Sign-in history: the Better Auth sessions still on record for this user.

Empty with auth_directory_available: false means “we cannot see the auth tables”, which is a different statement from “this user never signed in” — the console distinguishes the two.

Parameters

NameInTypeRequiredDescription
limitqueryintegerno
offsetqueryintegerno
user_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseSignInHistoryResponse
422Validation ErrorHTTPValidationError