{"record":{"id":"5d741a9b63265681","repo":"bitwarden/server","slug":"group-not-found","errorCode":null,"errorMessage":"Group not found.","messagePattern":"Group not found\\.","errorType":"exception","errorClass":"NotFoundException","httpStatus":404,"severity":"error","filePath":"bitwarden_license/src/Scim/Controllers/v2/GroupsController.cs","lineNumber":56,"sourceCode":"        IPutGroupCommand putGroupCommand\n        )\n    {\n        _groupRepository = groupRepository;\n        _organizationRepository = organizationRepository;\n        _getGroupsListQuery = getGroupsListQuery;\n        _deleteGroupCommand = deleteGroupCommand;\n        _patchGroupCommand = patchGroupCommand;\n        _postGroupCommand = postGroupCommand;\n        _putGroupCommand = putGroupCommand;\n    }\n\n    [HttpGet(\"{id}\")]\n    public async Task<IActionResult> Get(Guid organizationId, Guid id)\n    {\n        var group = await _groupRepository.GetByIdAsync(id);\n        if (group == null || group.OrganizationId != organizationId)\n        {\n            throw new NotFoundException(\"Group not found.\");\n        }\n        return Ok(new ScimGroupResponseModel(group));\n    }\n\n    [HttpGet(\"\")]\n    public async Task<IActionResult> Get(\n        Guid organizationId,\n        [FromQuery] GetGroupsQueryParamModel model)\n    {\n        var groupsListQueryResult = await _getGroupsListQuery.GetGroupsListAsync(organizationId, model);\n        var scimListResponseModel = new ScimListResponseModel<ScimGroupResponseModel>\n        {\n            Resources = groupsListQueryResult.groupList.Select(g => new ScimGroupResponseModel(g)).ToList(),\n            ItemsPerPage = model.Count,\n            TotalResults = groupsListQueryResult.totalResults,\n            StartIndex = model.StartIndex,\n        };\n        return Ok(scimListResponseModel);","sourceCodeStart":38,"sourceCodeEnd":74,"githubUrl":"https://github.com/bitwarden/server/blob/e93b962371d80964556f5590c6615f5160a437a1/bitwarden_license/src/Scim/Controllers/v2/GroupsController.cs#L38-L74","documentation":"Error \"Group not found.\" thrown in bitwarden/server.","triggerScenarios":"Thrown in the SCIM v2 GroupsController when the group ID in the request path does not correspond to an existing group in the organization.","commonSituations":"See trigger scenarios.","solutions":["Verify the SCIM group ID in the request URL exists; list groups via the SCIM endpoint to get valid IDs.","Re-sync the IdP group provisioning configuration so the IdP uses the current group IDs.","If the group was deleted in Bitwarden, remove and recreate the provisioning assignment in the IdP."],"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"}