Drupalwoo ☉

Restrict Drupal content types with role-based access

Role-based access control is Drupal’s native mechanism for deciding who can create, change, publish, or delete content. For a site with several editorial teams, it turns broad administrator privileges into defined responsibilities. The aim is not to conceal content types from curious users; it is to make sure the right person can perform the right operation and that every change has a clear permission trail.

Many Australian organisations use Drupal for federal service portals, state government information, university sites, and corporate campaigns. A Canberra agency might publish a program update through one team while a Queensland office prepares an event listing through another. Personal information can also be copied between content types, so the Privacy Act 1988 and applicable state or territory privacy laws give teams a practical reason to keep access decisions narrow.

A useful access model separates four questions: can a user create the content type, can they change it, can they publish it, and can they read it? Drupal answers the first three mainly through permissions and workflow transitions. Reading published content often depends on separate node access rules. Treating these as one setting can leave existing content visible even after its add form has disappeared.

Build the model in a non-production environment, then test it with real accounts and realistic content. Small teams often manage a .com.au website, a campaign microsite, and a parent corporate site at once. Their Drupal administrators may work across Sydney, Melbourne, and Brisbane in Australian Eastern, Central, and Western time zones, making precise role assignments more valuable than a shared administrator login.

Understand what Drupal permissions control

Drupal assigns every user one or more roles, and each role contains permissions. When a user has several roles, Drupal combines their permissions; the result is additive, with no native deny rule that overrides a broader role. The Anonymous and Authenticated user roles also matter. Anonymous applies to every visitor, while Authenticated user is granted to every signed-in account and can provide the foundation for an editorial role.

For standard node content, Drupal generates permissions such as create article content, edit own article content, edit any article content, and their delete equivalents. Granting create access allows the relevant /node/add/... route, while own operations are limited to nodes authored by that user. Unpublished content has separate view own unpublished content and view any unpublished content permissions.

The practical differences fit into this comparison:

Decision Native Drupal control Practical effect
Add content create article content Makes the article add form available to the role
Change content edit own article content or edit any article content Separates author-level editing from organisation-wide editing
Remove content delete own article content or delete any article content Controls deletion by ownership rather than content type alone
Read unpublished view own unpublished content or view any unpublished content Works with ownership and moderation status to determine visibility
Read published General published-content access plus node access grants Drupal core does not offer a simple published-view switch for each content type

Removing a create permission stops that role from opening the add route, but it does not remove existing nodes from listings, search results, feeds, or APIs. Give an editor edit any only when cross-author work is required; otherwise, edit own combined with a narrow publishing role creates a cleaner audit trail. Administrative permissions such as administer nodes can bypass routine access checks and should stay with trusted staff.

Build roles around editorial responsibilities

Create roles at People > Roles that represent responsibilities rather than personal names or seniority. A practical set might include Content Author, Content Editor, Content Publisher, and Content Administrator. The built-in Administrator role remains the final escalation path. If staff change jobs, move them between these working roles instead of editing the built-in role to fit one team.

Map each role to a small permission bundle. An Author may create and edit their own content, plus view their own unpublished items. An Editor may need access content overview, edit any for selected types, and the ability to return work to an author. A Publisher can view any unpublished content and use the workflow’s publish transition. Add a Compliance or Records role only when a documented duty requires separate access.

Role design also has to fit Australian procurement and staffing patterns. Federal and state teams may combine Drupal with single sign-on, ticketing systems, and automated account provisioning. Agencies often need repeatable permissions across client projects, while smaller sites cannot justify a full-time platform specialist. Organisations without an in-house administrator can obtain specialist Drupal support for major releases, then retain role ownership and quarterly reviews internally. Keep role names stable in configuration so deployments do not silently transfer access between teams.

Apply content type permissions safely

Open People > Permissions, select a role, and use the permission filter to locate the exact content type. Review create, edit, delete, and unpublished-view permissions separately. A common starting point is create plus own edit for authors, any edit for designated editors, and publish-transition access for publishers. Revoke obsolete rights before assigning a broader operational role, especially if the same person still belongs to an older team role.

Because permissions combine across roles, test the complete set for each person, not each role in isolation. Adding a temporary Editor role to someone who is also an Author gives them the union of both bundles. Sites using single sign-on should map identity-provider groups to these Drupal roles deliberately, and should remove dormant accounts or group memberships when employment or project assignments end. Do not use the Anonymous role to hold restricted permissions, and avoid granting administer permissions outside the smallest trusted administration group.

Make permission changes in staging or through version-controlled Drupal configuration where possible. Export the affected role configuration, review it with the editorial owner, and deploy it in the same controlled change as content-type or workflow adjustments. This prevents a live site from temporarily combining an old workflow with new permissions. After deployment, verify that cached pages, administrative overviews, and the node add routes reflect the intended access.

Combine permissions with workflow and visibility

Drupal’s Content Moderation and Workflows modules add states such as Draft, In review, Approved, and Published. A transition can require a different role from ordinary editing: an author may revise a draft, an editor may send it to review, and a publisher may publish it. Configure transition access alongside the node permissions, then check that users with view any unpublished content can move through the workflow without gaining unnecessary delete rights.

Published content requires separate attention. Standard Drupal permissions commonly allow signed-in users to view published nodes across content types, so revoking a create permission does not make existing published material confidential. For restricted records, use node access grants or a maintained access-control contrib module, or implement carefully reviewed node access code for the specific rule. Field-level visibility has different requirements and may call for a field-access module rather than content-type permissions.

Check every output path after changing access. JSON:API and XML feeds normally follow Drupal access rules, while search indexes and cached pages can retain information after access changes. A view may bypass node access if it is configured to do so, so test those listings explicitly. Configure search access filters for the index being used, and check anonymous requests as well as logged-in ones. Hiding a menu link is not a substitute for enforcing access on the route.

Test, monitor, and review access

Create a test account for every role, including a private browser session for Anonymous access. For each content type, record the expected result for create, edit, delete, publish, and view actions. Test both an author’s own node and a node owned by someone else, because the own-versus-any distinction is easy to miss. Multi-role accounts are especially important: their access is the union of every assigned bundle.

Make access changes observable. A custom Drupal logging channel can separate permission-related denials, role changes, and content transitions from routine site traffic. Include role, content type, operation, and result in each event, while avoiding personal information that the logging setup does not need. Review the records after a launch and whenever an editor reports an unexpected missing page.

Treat role reviews as a scheduled operations task, not an annual cleanup. Compare current assignments with the organisation’s current project teams after contract changes, staff movements, and campaign handovers. In an arvo release window, Brisbane and Perth colleagues may work two hours apart while Sydney and Melbourne share a time zone, so responsibility for approving and rolling back access should be explicit. The final production check should confirm that each role has an owner, each permission change is deployed from configuration, and each restricted content type has a verified reader and editor path.