Repository navigation
Description
Affected module
UI and Backend (RBAC / Authorization, Search & Domain-based access control)
Describe the bug
When a group is assigned to multiple domains and a policy using the hasDomain condition is applied, users belonging to that group cannot access any assets in the UI.
This impacts key user journeys such as Explore, Domains pages, and Data Products pages (Glossary pages are working as expected).
I have tried several policy and rules combination as explained below.
This is the organization policy :
Test 1 : Combination of hasDomain() & !hasDomain() and Enable roles & Policies in search is on (when we disactivate this, the user also sees assets from other domains, which does not meet the RBAC requirement)
This behavior prevents using domain-based RBAC for common use cases where one functional group needs access to multiple domains.
Hera are some behaviors I encountered during test 1 :
- Explore page → No assets are returned even when filtering by domain
- Domain page → Domain show 0 assets and 0 Data Products
- Data Products page → No Data products are visible
To be noticed : If I assign two domains to an asset and the group has the same domains as the asset, the user can see the asset with the hasDomain condition
-
Glossary Page → Work has expected
Policy debugger for an asset of an assigned domain :
result in explore view : the dashboard is not visible
When combining hasDomain and !hasDomain, and the group is assigned to a domain, the behaviour is as expected: regardless of the page, the user can only access assets from their group’s domain.
Test 2 : HasDomain() and Enable roles & Policies in search is on
Here are some behavior I encountered during test 2 :
- Explore Page → User can see all assets even those whose domain is not assigned to their group. Here product domain is not part of the user group. However when the user click on the asset he can’t access it.
-
Data products page → All the data products are visible regardless of whether or not they belong to group domains. However when the user click on the asset he can’t access it.
-
Glossary page → All the glossary terms are visible regardless of whether or not they belong to group domains. However when the user click on the asset he can’t access it.
This solution works to some extent, as the user cannot access the details, but it is not satisfactory in that the user should not be able to see them at all.
To Reproduce
Setup
- Create 2 domains and assign domain to assets
- Ceate a group and assign both domains to the group
- Assign the policy to the group
- Enable "Enable Roles & Policies in Search"
- Log in as a user who belongs to the group
Expected behavior
A user should be able to:
- Access assets belonging to any domain assigned to their group
- NOT see assets from domains that are not assigned to their group
The hasDomain condition and !hasDomain() should work as an OR condition across multiple domains, not require a strict match with all domains at once.
Version:
- OpenMetadata version: 1.11.7
Additional context
Slack discussion related to this issue:
https://openmetadata.slack.com/archives/C02B6955S4S/p1772716333606479?thread_ts=1770309822.282879&cid=C02B6955S4S
Activity
harshach commentedon Mar 10, 2026
@daridcl can you add details of what policy you have and also the screenshots of policy debugger
daridcl commentedon Mar 10, 2026
@harshach i add in the main description : group policy and organization policy as well as the permission debugger and the explore page for a dashboard asset assigned.
fix: hasDomain() search filter uses OR logic for multi-domain users (#…
Fix: hasDomain() search filter uses OR logic for multi-domain users (#…
Fix: hasDomain() search filter uses OR logic for multi-domain users (#…
Fix: hasDomain() search filter uses OR logic for multi-domain users (#…