bitwarden/server · error · BadRequestException

The organization is in an invalid state. Please contact Cust

Error message

The organization is in an invalid state. Please contact Customer Support.

What it means

Error "The organization is in an invalid state. Please contact Customer Support." thrown in bitwarden/server.

Source

Thrown at bitwarden_license/src/Commercial.Core/SecretsManager/Commands/Requests/RequestSMAccessCommand.cs:28

public class RequestSMAccessCommand : IRequestSMAccessCommand
{
    private readonly IMailService _mailService;

    public RequestSMAccessCommand(
        IMailService mailService)
    {
        _mailService = mailService;
    }

    public async Task SendRequestAccessToSM(Organization organization, ICollection<OrganizationUserUserDetails> orgUsers, User user, string emailContent)
    {
        var emailList = orgUsers.Where(o => o.Type <= OrganizationUserType.Admin)
            .Select(a => a.Email).Distinct().ToList();

        if (!emailList.Any())
        {
            throw new BadRequestException("The organization is in an invalid state. Please contact Customer Support.");
        }

        var userRequestingAccess = user.Name ?? user.Email;
        await _mailService.SendRequestSMAccessToAdminEmailAsync(emailList, organization.Name, userRequestingAccess, emailContent);
    }
}

View on GitHub (pinned to e93b962371)

Solutions

  1. Verify the organization has an active subscription and Secrets Manager enabled before requesting access.
  2. Have an organization owner or admin confirm the organization is not disabled or suspended.
  3. Contact Bitwarden Customer Support with the organization ID so the invalid state can be corrected.

When it happens

Trigger: Thrown by RequestSMAccessCommand when the organization is not in a state that allows requesting Secrets Manager access, e.g., missing billing/subscription state or an inconsistent organization record.

Common situations: See trigger scenarios.


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