Context. On the Release "Users and permissions" screen, each user row has a one-click Enabled toggle. When SSO is active, an internal administrator can, in a single mouse click, disable their own account (or, with a similar one-click action, strip their own admin rights). There is no confirmation step, no re-authentication, and no way to undo it: the admin instantly loses all administrative access and cannot re-enable themselves. If no other active admin exists, the organization is locked out of its own Release instance and must go through support.

Proposed behavior.
Introduce a confirmation guard, similar to GitHub's type-to-confirm pattern when deleting a repository:
Typed confirmation. When an action removes or disables administrative capability, show a dialog requiring the user to type a confirmation phrase (e.g. the account's username, or DISABLE <username>). A click-only "OK" is not enough for actions that can lock the organization out.

Re-authentication (stronger option). For admin-rights removal and self-disable, require a fresh authentication (SSO re-login prompt or password prompt) inside the confirmation dialog, so a stray or hijacked session cannot silently drop admin rights.

Protection matrix, at minimum:
Disabling your own account → typed confirmation + warning "You will not be able to undo this yourself."
Removing admin rights (from yourself or the last remaining admin) → typed confirmation + re-authentication.
Disabling / demoting the last enabled administrator → hard block with a message: "At least one enabled administrator must remain. Promote another admin first."

Grace period (optional). Instead of an immediate kill, the disable/demotion takes effect after a countdown (e.g. 5 minutes) with a prominent "Undo" banner, and a notification is sent to all other admins.

Priority scope. Minimum viable fix: the typed confirmation on self-disable and on last-admin demotion, since these are the two irreversible lockout paths. Everything else is nice-to-have hardening.

Same behavior for the MCP

Comments