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). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Configurable Field Access

2 sites No security coverage
View on drupal.org

This module allows developers to define granular access control for entity fields, determining who can view or edit specific fields based on user roles and permissions. It offers a developer-focused configuration approach for managing these field-level access rules.

This module provides access control functionality for entity fields. It allows
developers to easily configure access to view and edit fields based on user
roles.

Features

Developers can create permission maps per entity type and bundle in the form of PHP arrays that allow them to define whether a user should be granted access to view or edit a field value based on the user's roles and permissions. There is currently no UI for site builders or site administrators.

Post-Installation

Usage instructions can be found in the README file.

Additional Requirements

Requires PHP 8.0+, Drupal 9.0+.

Similar projects

Field Permissions is a module that provides similar functionality.

The Configurable Field Access module was created to improve on what I see as shortcomings in the Field Permissions module. It provides:

  • Better developer experience; UI for site builders might come later.
  • Easy overview of all permissions of an entity type in a single PHP file. Having to jump around different forms in the UI or different configuration files make it really difficult to review all permissions for all fields and that makes the process error-prone.
  • Support for both base and bundle fields.
  • Per bundle permissions for fields with the same machine name.
  • Default permissions for all bundles with the ability to override them for specific bundles only.
  • Different permissions when setting the field value on a new entity compared to when updating the value on an existing entity. This can be helpful if you want to allow, for example, setting the subject of a comment when creating it but disallow updating it once saved while allowing updates in the comment's body.
  • Support for granting access based on roles and/or permissions.
  • Support for matching roles using regular expressions.
  • Support for matching fields using regular expressions.
  • Zero spam in your user role and field storage configuration files.

Supporting this Module

Create issues in the Drupal.org queue, submit MRs. If you are interested in sponsoring this module to add more features, contact the module maintainers.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Sep 2025
Latest release
11 months ago
Releases (12 mo)
5 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
1.0.0-rc4 Pre-release 9–11 Sep 30, 2025
1.0.0-rc3 Pre-release 9–11 Sep 26, 2025
1.0.0-rc2 Pre-release 9–11 Sep 24, 2025
1.0.0-rc1 Pre-release 9–11 Sep 22, 2025
1.x-dev Dev 9–11 Sep 19, 2025