Skip to content
Last updated

Lock account

The Lock account option lets you suspend all users in an account from authenticating. Locking is a reversible, account-wide control — unlocking restores normal access immediately.

Use it when you need to disable access for an entire customer organization temporarily or permanently such as during a billing dispute, security investigation, or contract termination.


What happens when an account is locked

Account lock applies only to the specific account that is locked. Users who belong to multiple accounts can still log in to their other, unlocked accounts.

While an account is locked:

  • Users in that account cannot log in to that account — including username/password, social login, and SSO.
  • Existing sessions cannot refresh their tokens, effectively ending access on the next refresh.
  • Users cannot switch into the locked account (regular switch and per-application switch).
  • Invitations cannot be created, verified, or accepted for the locked account.

Account lock vs. user lock

Locking an account is different from locking an individual user. Account lock suspends all users in the account. User lock affects only a single user across all accounts they belong to.

Use cases

  • Lock or unlock a single account from the Backoffice UI.
  • Bulk lock or unlock up to 100 accounts per API call.
  • React to lock and unlock events in external systems through webhooks.
  • Monitor blocked authentication attempts against locked accounts in security logs.

Lock an account from the portal

You can lock an account from two locations in the Backoffice:

Option A — Accounts table

  1. Go to [ENVIRONMENT] → Management → Accounts.
  2. Open the row actions menu for the account.
  3. Select Lock account.
  4. Confirm the action in the dialog.

lock-account-table


lock-account-confirm


You can also lock multiple accounts using the table's bulk actions.

Option B — Account settings

  1. Go to [ENVIRONMENT] → Management → Accounts and open an account.
  2. Open the Settings tab.

lock-account-settings


  1. In the Lock account card, toggle the switch on.
  2. Confirm the action in the dialog.

lock-account-settings-toggle


Identifying locked accounts

LocationElement
Backoffice → Accounts tableLock icon next to locked account names
Backoffice → Accounts tableRow actions menu: Lock account / Unlock account
Backoffice → Accounts tableAccess filter: All / Locked / Unlocked
Single account → Settings tabLock account card with toggle
Single account pageRed "This account is locked" banner with Unlock account button
Backoffice → Users tableLock indicator with tooltip "Account is locked" when the user's primary account is locked

Unlock an account

To unlock an account:

  • Accounts table: Open the row actions menu for a locked account and select Unlock account.
  • Locked account banner: On a locked account's page, click Unlock account in the red banner at the top of the page.
  • Account settings: Toggle off the Lock account switch in the Settings tab.

lock-account-banner

Locked account behavior

Login

Users in a locked account cannot complete login. If a user belongs to only one account and that account is locked, login fails.

For social login and SSO, the same lock check applies before authentication completes.

Active sessions

Users who are already logged in when an account is locked retain access until their access token expires. On the next token refresh, the session ends and the user must log in again — which will be blocked while the account remains locked.

Account switching

Users cannot switch into a locked account. If a user attempts to switch to a locked account, the switch is denied.

Invitations

While an account is locked:

  • New invitation links cannot be created.
  • Existing invitation links cannot be verified or accepted.

Multi-tenant users

A user who belongs to multiple accounts is not blocked entirely when one of their accounts is locked. Locked accounts are removed from the user's available accounts during login, and the user can still access their other unlocked accounts.

If a user's only account or the account they are trying to access is locked, login fails.

Lock accounts via API

Use the vendor API to lock or unlock up to 100 accounts per request. Both endpoints return 204 No Content on success and require a valid vendor token.

Lock accounts

POST /resources/tenants/v1/lock
Content-Type: application/json

{ "tenantIds": ["tenant-123", "tenant-456"] }

Unlock accounts

POST /resources/tenants/v1/unlock
Content-Type: application/json

{ "tenantIds": ["tenant-123"] }

Request limits

Each request must include at least one tenant ID and no more than 100 tenant IDs. Requests with an empty array or more than 100 IDs return a 400 Bad Request error.

Account lock status in API responses

Existing tenant GET and list endpoints now include an isLocked property in the response:

{
  "tenantId": "tenant-123",
  "name": "Acme Inc",
  "isLocked": true
}

Audit logs

Lock and unlock actions are recorded in your environment audit trail:

ActionAudit actionDescription
LockLocked tenantsNumber of tenants locked in the request
UnlockUnlocked tenantsNumber of tenants unlocked in the request

Each entry captures who performed the action and how many accounts were affected.

Webhooks

Subscribe to the following webhook events to react to account lock changes in your systems. See the full webhook events table for configuration details.

Security monitoring

When a user attempts to authenticate against a locked account, Frontegg logs a security event. Use these logs in the Monitoring section to track blocked login attempts, token refresh failures, account switch denials, and blocked invitation activity.