Part of the Entity ecosystem · 310 projects
This module allows you to restrict access to content by requiring a password. You can set passwords at the entity, bundle, or global level, and choose which view modes are protected. When protected content is viewed in a protected mode without access, a password form is displayed instead.
The Entity Access Password module allows to restrict access to fieldable entities by requiring to enter a password.
The module provides a new field type: Password protection.
The administrator can choose per field instance the behavior (among other settings):
- the password level (can be cumulative):
- entity password
- bundle password
- global password
- the protected view modes
When a protected content entity is displayed in a protected view mode, if the user does not have access then it is the "Password protected" view mode that is displayed instead. That way, the administrator have a very flexible way to control how the password form is displayed, with the field formatter and view mode granularity.
Warning! As the module only switches the displayed view mode, a user can still access the content if exposed through web services for example.
The module does not implement hook_entity_access() to allow to still see password protected entities in listings otherwise the user would not be able to access the form to unlock the entity with a direct link.
Development notes
The module makes an intensive usage of services and service collectors to be able to let you introduce your own logic if needed. Among those services, you can add your own password validation, access check and access storage logic by implementing services with the appropriate tags.
Installation and configuration
- Read Readme.
- Read Documentation.
Similar projects and how they are different
- Protected Pages - Protected Pages uses the path to protect your page so you can password protect Views pages for example. With Entity Access Password, content creators can add the password as they create content, they don't have to go to another configuration page.
Organizations without Drupal.org page which sponsored the project:
- Ludwig-Maximilians-Universität München: sponsored initial port from Protected Node D7.
Ask your assistant about Entity Access Password
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- file Drupal core
- user Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Entity ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 2.1.0 | Stable | 11 | Nov 27, 2026 | ||
| 2.0.1 | Stable | 11 | Jul 19, 2026 | ||
| 2.0.0 | Stable | 11 | Dec 20, 2025 | ||
| 2.x-dev | Dev | 11 | Dec 9, 2025 | ||
| 1.x-dev | Dev | 10–11 | Dec 8, 2025 | ||
| 1.1.0 | Stable | 10–11 | Jun 26, 2024 | ||
| 1.1.x-dev | Dev | 10–11 | Jun 24, 2024 | ||
| 1.0.5 | Stable | 10–11 | Jun 18, 2024 | ||
| 1.0.4 | Stable | 9–10 | Jan 13, 2024 |