Skip to content

Users

users_users_ban

Ban an end user by stamping `bannedAt`.

Tool

users_users_ban

Ban an end user by stamping `bannedAt`.

Ban an end user by stamping `bannedAt`. NOTE: sessions do not exist yet — until Phase 2 lands auth flows, this is a flag on the record and nothing is revoked or refused by it. Idempotent: banning an already-banned user refreshes the stamp.

Behavior

HTTP
POST /users/users/:userId/ban

Arguments

NameTypeRequiredDescription
userIdstringThe opaque user id returned by users_users_create or _list.

Response

FieldTypeAlwaysDescription
idstring
namestring
bannedAtstring
erasedAtstring
imageUrlstring
testUserboolean
createdAtstring
deletedAtstring
productIdstring
updatedAtstring
waitlistedboolean
identifiersarray
lockedUntilstring
lastSignInAtstring
requiresResetboolean
publicMetadataobject
unsafeMetadataobject
privateMetadataobject
emailChangeLockedUntilstring

Try it

Ban an end user by stamping `bannedAt`.

When to use

Ban an end user by stamping `bannedAt`. NOTE: sessions do not exist yet — until Phase 2 lands auth flows, this is a flag on the record and nothing is revoked or refused by it. Idempotent: banning an already-banned user refreshes the stamp.

Example

Ask your agent something like this:

Ban an end user by stamping `bannedAt`.

The agent will invoke users_users_ban with these arguments:

{
  "userId": "<userId>"
}

Esc

Start typing to search the docs.

navigateselect