bitwarden/server · error · NotFoundException

Group not found.

Error message

Group not found.

What it means

Error "Group not found." thrown in bitwarden/server.

Source

Thrown at bitwarden_license/src/Scim/Controllers/v2/GroupsController.cs:56

        IPutGroupCommand putGroupCommand
        )
    {
        _groupRepository = groupRepository;
        _organizationRepository = organizationRepository;
        _getGroupsListQuery = getGroupsListQuery;
        _deleteGroupCommand = deleteGroupCommand;
        _patchGroupCommand = patchGroupCommand;
        _postGroupCommand = postGroupCommand;
        _putGroupCommand = putGroupCommand;
    }

    [HttpGet("{id}")]
    public async Task<IActionResult> Get(Guid organizationId, Guid id)
    {
        var group = await _groupRepository.GetByIdAsync(id);
        if (group == null || group.OrganizationId != organizationId)
        {
            throw new NotFoundException("Group not found.");
        }
        return Ok(new ScimGroupResponseModel(group));
    }

    [HttpGet("")]
    public async Task<IActionResult> Get(
        Guid organizationId,
        [FromQuery] GetGroupsQueryParamModel model)
    {
        var groupsListQueryResult = await _getGroupsListQuery.GetGroupsListAsync(organizationId, model);
        var scimListResponseModel = new ScimListResponseModel<ScimGroupResponseModel>
        {
            Resources = groupsListQueryResult.groupList.Select(g => new ScimGroupResponseModel(g)).ToList(),
            ItemsPerPage = model.Count,
            TotalResults = groupsListQueryResult.totalResults,
            StartIndex = model.StartIndex,
        };
        return Ok(scimListResponseModel);

View on GitHub (pinned to e93b962371)

Solutions

  1. Verify the SCIM group ID in the request URL exists; list groups via the SCIM endpoint to get valid IDs.
  2. Re-sync the IdP group provisioning configuration so the IdP uses the current group IDs.
  3. If the group was deleted in Bitwarden, remove and recreate the provisioning assignment in the IdP.

When it happens

Trigger: Thrown in the SCIM v2 GroupsController when the group ID in the request path does not correspond to an existing group in the organization.

Common situations: See trigger scenarios.


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