bitwarden/server · error · NotFoundException
Resource not found.
Error message
Resource not found.
What it means
Error "Resource not found." thrown in bitwarden/server.
Source
Thrown at bitwarden_license/src/Commercial.Core/SecretsManager/Commands/Projects/CreateProjectCommand.cs:38
public CreateProjectCommand(
IAccessPolicyRepository accessPolicyRepository,
IOrganizationUserRepository organizationUserRepository,
IProjectRepository projectRepository,
ICurrentContext currentContext)
{
_accessPolicyRepository = accessPolicyRepository;
_organizationUserRepository = organizationUserRepository;
_projectRepository = projectRepository;
_currentContext = currentContext;
}
public async Task<Project> CreateAsync(Project project, Guid id, IdentityClientType identityClientType)
{
if (identityClientType != IdentityClientType.User && identityClientType != IdentityClientType.ServiceAccount)
{
throw new NotFoundException();
}
var createdProject = await _projectRepository.CreateAsync(project);
if (identityClientType == IdentityClientType.User)
{
var orgUser = await _organizationUserRepository.GetByOrganizationAsync(createdProject.OrganizationId, id);
var accessPolicy = new UserProjectAccessPolicy()
{
OrganizationUserId = orgUser.Id,
GrantedProjectId = createdProject.Id,
Read = true,
Write = true,
};
await _accessPolicyRepository.CreateManyAsync(new List<BaseAccessPolicy> { accessPolicy });
View on GitHub (pinned to e93b962371)
Solutions
- Confirm the organization ID in the request exists and the caller has access to it.
- Refresh the client or list projects for the organization to get the current valid identifiers.
- If the resource was recently deleted, remove the stale reference and retry.
When it happens
Trigger: Thrown by CreateProjectCommand when the organization (or related resource) referenced by the project creation request does not exist or is not accessible to the requesting identity.
Common situations: See trigger scenarios.
AI-assisted analysis of bitwarden/server@e93b962371 (2026-08-13).
Data as JSON: /api/errors/a67c23c2680d2d8f.
Report an issue: GitHub.