Advanced search does not consider shared groups any more

Summary

The Advances search does not consider shared group memberships and only finds results in projects where people have direct access to the project or groups.

I tested this by adding the top-level group to a subgroup, so the roles are inherited. In the shared groups of my subgroup, the top-level group is shown.

The member with the role "Developer" who cannot find the search results in the code of a shared project can select the project in the filter of the advanced search and also access the code in the repository.

Steps to reproduce

Create a group (N) in a top-level group (T) and a project (X). Then add the top level group (T) to that new group (N) with role "Developer". Then use advanced search as a member of group (E) and check if it finds any results in the code of any project in (N).

The search result will not show any findings in the code of the project (X) but it can be selected in the filter panel for the advanced search. Even on selecting the group (N) no code findings are shown.

Example Project

https://gitlab.com/apollo-cloud/vechta/bugreport

Members of group (E) cannot find any results in the code of projects in group (N) any more. Previously it was possible to find the results.

What is the expected correct behavior?

I would expect that the user can see the results in the code findings. It succeeded a week ago with the previous installed GitLab version 18.1.2.

Relevant logs and/or screenshots

Result of my search having GitLab Admin privileges

Result of the member who only has access via Shared groups image

Result of my search having Admin Privileges: image

Output of checks

Results of GitLab environment info

GitLab Ultimate omnibus installation on Version 18.2.1 Previous installation was 18.1.2

I cannot run commands on the server to get more info about the instance because I do not have access to the server.

Results of GitLab application Check

I cannot run commands on the server to get more info about the instance because I do not have access to the server.

Possible fixes

typebug groupglobal search workflowsolution validation

Patch release information for backports

High-severity bug remediation

Edited Jul 31, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading