Organization scope your work dashboard
What does this MR do and why?
Filter dashboard content by the Current Organization. This MR finalizes the work started in !198437 (merged) where we brought the dashboards within the Organization scope.
Organizations are isolated from each other and the dashboards will only display items within the current Organization.
This work is behind Feature Flags.
Closes #556096 (closed)
SQL Plan
I used my own user ID and the Default Organization (ID=1) which is by far the worse case.
https://postgres.ai/console/gitlab/gitlab-production-main/sessions/42275/commands/129506
References
Screenshots or screen recordings
You will see the groups and projects in the dashboard visible change depending on the Organization.
| Organization 1 | Organization 2 |
|---|---|
![]() |
![]() |
How to set up and validate locally
- In rails console enable the feature flag
Feature.enable :allow_organization_creation
Feature.enable :organization_switching
Feature.enable :ui_for_organizations
Feature.enable :organization_scoped_paths
- Create an Organization through the
+sidebar button. - Visit your Organization using the Organization switcher drop down in the sidebar.
- You will land on the project dashboard pages.
- Create groups and projects (easiest is with the
+sidebar button) and you will see that they are visible depending on the current Organization.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

