Skip to content

Multi-Domains access - HasDomain condition #26381

Closed

Description

@daridcl

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 :

Image

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.

Image

Hera are some behaviors I encountered during test 1 :

  • Explore page → No assets are returned even when filtering by domain
Image
  • Domain page → Domain show 0 assets and 0 Data Products
Image
  • Data Products page → No Data products are visible
Image

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

Image
  •   Glossary Page → Work has expected
    

Policy debugger for an asset of an assigned domain :

Image

result in explore view : the dashboard is not visible

Image

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

Image

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.
Image Image
  • 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

  1. Create 2 domains and assign domain to assets
  2. Ceate a group and assign both domains to the group
  3. Assign the policy to the group
  4. Enable "Enable Roles & Policies in Search"
  5. 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

  1. harshach commented on Mar 10, 2026

    @harshach
    Collaborator

    @daridcl can you add details of what policy you have and also the screenshots of policy debugger

  2. daridcl commented on Mar 10, 2026

    @daridcl
    Author

    @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.

  3. self-assigned this
    on Mar 13, 2026
  4. added this to Shipping and removed this from Roadmapon Mar 18, 2026
  5. moved this to In Progress 🏗️ in Shippingon Mar 18, 2026
  6. moved this from In Progress 🏗️ to Done ✅ in Shippingon Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status
    Done ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions