Content Access

Drupal allows you to customize who can view and modify content.

Permissions are defined per entity type in the permissions table.

Set them per entity on it's manage permissions tab.

APIs

Access Policy API

Authentication API

Core Permissions

Access Content Permission

Aka "View published content". This is granted to all users by default.

View Own Unpublished Content Permission

If content authors can create unpublished content, they should have access to it as well.

Modules

There are many modules available that restrict access. They are in various states of development, so some digging is needed to find what works.

By Entity type, Content type, or Bundle

Private Content

View Private content on Drupal.orgPrivate contentCovered by the Drupal security advisory policy (2,064 installs)
Option to set content type to private. Can be overridden per node.

Nodeaccess

View Nodeaccess on Drupal.orgNodeaccessCovered by the Drupal security advisory policy (5,254 installs)

Grant roles access per content type. Users can grant permissions to others.

Content Access

View Content Access on Drupal.orgContent Access (13,839 installs)

Role based content type access.

Tags
Change records