{"record":{"id":"7b54e6c0eba9c116","repo":"bitwarden/server","slug":"you-can-t-leave-this-organization-vault-because-yo","errorCode":null,"errorMessage":"You can't leave this organization vault because your account is claimed. Contact your admin for more information.","messagePattern":"You can't leave this organization vault because your account is claimed\\. Contact your admin for more information\\.","errorType":"exception","errorClass":"BadRequestException","httpStatus":400,"severity":"error","filePath":"src/Api/AdminConsole/Controllers/OrganizationsController.cs","lineNumber":282,"sourceCode":"    [HttpPost(\"{id}/leave\")]\n    public async Task Leave(Guid id)\n    {\n        if (!await _currentContext.OrganizationUser(id))\n        {\n            throw new NotFoundException();\n        }\n\n        var user = await _userService.GetUserByPrincipalAsync(User);\n\n        var ssoConfig = await _ssoConfigRepository.GetByOrganizationIdAsync(id);\n        if (ssoConfig?.GetData()?.MemberDecryptionType == MemberDecryptionType.KeyConnector && user.UsesKeyConnector)\n        {\n            throw new BadRequestException(new LeaveOrgSsoBlockedError().Message);\n        }\n\n        if ((await _userService.GetOrganizationsClaimingUserAsync(user.Id)).Any(x => x.Id == id))\n        {\n            throw new BadRequestException(new LeaveOrgClaimedAccountError().Message);\n        }\n\n        await _removeOrganizationUserCommand.UserLeaveAsync(id, user.Id);\n    }\n\n    [HttpDelete(\"{id}\")]\n    public async Task Delete(string id, [FromBody] SecretVerificationRequestModel model)\n    {\n        var orgIdGuid = new Guid(id);\n        if (!await _currentContext.OrganizationOwner(orgIdGuid))\n        {\n            throw new NotFoundException();\n        }\n\n        var organization = await _organizationRepository.GetByIdAsync(orgIdGuid);\n        if (organization == null)\n        {\n            throw new NotFoundException();","sourceCodeStart":264,"sourceCodeEnd":300,"githubUrl":"https://github.com/bitwarden/server/blob/e93b962371d80964556f5590c6615f5160a437a1/src/Api/AdminConsole/Controllers/OrganizationsController.cs#L264-L300","documentation":"Error \"You can't leave this organization vault because your account is claimed. Contact your admin for more information.\" thrown in bitwarden/server.","triggerScenarios":"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.","commonSituations":"See trigger scenarios.","solutions":["Contact your organization owner or admin and ask them to remove your account from the organization.","Admins can remove the claimed account from the Admin Console member management screen."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e93b962371d80964556f5590c6615f5160a437a1","analyzedAt":"2026-08-13T14:22:19.382Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}