bitwarden/server · error · BadRequestException

You can't leave this organization vault because your account

Error message

You can't leave this organization vault because your account is claimed. Contact your admin for more information.

What it means

Error "You can't leave this organization vault because your account is claimed. Contact your admin for more information." thrown in bitwarden/server.

Source

Thrown at src/Api/AdminConsole/Controllers/OrganizationsController.cs:282

    [HttpPost("{id}/leave")]
    public async Task Leave(Guid id)
    {
        if (!await _currentContext.OrganizationUser(id))
        {
            throw new NotFoundException();
        }

        var user = await _userService.GetUserByPrincipalAsync(User);

        var ssoConfig = await _ssoConfigRepository.GetByOrganizationIdAsync(id);
        if (ssoConfig?.GetData()?.MemberDecryptionType == MemberDecryptionType.KeyConnector && user.UsesKeyConnector)
        {
            throw new BadRequestException(new LeaveOrgSsoBlockedError().Message);
        }

        if ((await _userService.GetOrganizationsClaimingUserAsync(user.Id)).Any(x => x.Id == id))
        {
            throw new BadRequestException(new LeaveOrgClaimedAccountError().Message);
        }

        await _removeOrganizationUserCommand.UserLeaveAsync(id, user.Id);
    }

    [HttpDelete("{id}")]
    public async Task Delete(string id, [FromBody] SecretVerificationRequestModel model)
    {
        var orgIdGuid = new Guid(id);
        if (!await _currentContext.OrganizationOwner(orgIdGuid))
        {
            throw new NotFoundException();
        }

        var organization = await _organizationRepository.GetByIdAsync(orgIdGuid);
        if (organization == null)
        {
            throw new NotFoundException();

View on GitHub (pinned to e93b962371)

Solutions

  1. Contact your organization owner or admin and ask them to remove your account from the organization.
  2. Admins can remove the claimed account from the Admin Console member management screen.

When it happens

Trigger: Thrown when a user whose account is claimed by an organization attempts to leave that organization's vault; claimed accounts must be removed by an admin.

Common situations: See trigger scenarios.


AI-assisted analysis of bitwarden/server@e93b962371 (2026-08-13). Data as JSON: /api/errors/7b54e6c0eba9c116. Report an issue: GitHub.