Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: Video.js (HTML5 Video Player) 10.0.0-alpha1 First alpha version released for module videojs (10.0.0-alpha1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Domain Access Entity

1,966 sites Security covered Drupal 10–11 Domain ecosystem
View on drupal.org

This module allows you to apply domain access controls to various entities beyond just nodes, restricting their visibility based on assigned domains. You can configure how entities are associated with domains, either automatically or through user selection, and administrators with appropriate permissions can access entities across multiple domains.

Overview

This module provides a solution to add Domain Access on entity.

You can use this module to restrict access for entity as you do with node.

This module can add domain access only on fieldable entities

You can choose for each bundle the assignation behavior you want to use :

  • Affiliate automatically created entity to a value (no widget on entity creation form, auto-assignation)
  • User choose affiliate, with a default value (form widget on the entity creation form)

The access rule is basic for front end user (without specific permission):

  • Entities are only accessible on the domain(s) is assigned.
    This is the default behavior for user in administration and front office.

For administration / administrator:

  • Site contributors, with specific permission, can access and/or edit content of multiple domain
    The user need to be assigned to the domain he can edit (in user/*/edit)
    And the user need the permission "access entities affiliate on assigned domains"
  • With domain views, You can create a list of entities and expose the domain field, to filter entities by domain.

To use this module with views, you may need to disable SQL rewriting on some views. (open your views -> go in advanced settings pane -> query settings), if you don't want to disable SQL rewriting, you can add manually a view filter on the field that hold the domain(s) id.

Features

- Enable Domain Access on entities
- UI for enabling domain access on entity type, and batch update of existing entities
- views integration
- Domain source integration

Setup

- Enable domain_entity
- Go to admin/structure/domain/entities
- Enable domain on entity types, choose the behavior widget you want for each bundle (existing content of your website will be assigned to the default bundle domain value)
- For site administrator roles that you want to allow to see multiple domain entities on one domain (only in administration path) :

  • Create a user
  • Add a role to the user with the permission "access entities affiliate on assigned domains"
  • Assign the user to the domain(s) he can access ("Affiliate editor options" in admin/people)

Requirements

- Domain

- Domain Access

Extra requirements

To expose domain filter in views: Domain views (Only for 7.x) (to verify as D7 is no longer supported)

Drupal commerce

Should I use this module for my shop sub domains ?

you just want to separate editorial product by domain :
don't activate domain entity on commerce_product entity, and use domain access on the node that display the product instead.
OR
You want a commerce store by domain:
you should activate domain entity on commerce order entity with a default value on "current domain", so the user have different cart on each store.
See https://drupal.org/node/2043677#comment-7684719 for more details

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Mar 2025
Latest release
4 months ago
Releases (12 mo)
3 ▼ from 4
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.0.0 Stable 10–11 Apr 16, 2026
2.0.x-dev Dev 10–11 Apr 3, 2026
8.x-1.0-rc6 Pre-release 10–11 Sep 18, 2025
8.x-1.0-rc5 Pre-release 10–11 Mar 9, 2025
8.x-1.0-rc4 Pre-release 10–11 Mar 7, 2025
8.x-1.0-rc3 Pre-release 10–11 Mar 7, 2025
8.x-1.0-rc2 Pre-release 10–11 Mar 6, 2025