Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Views Access by User

No security coverage Maintenance fixes only 14 sites

Part of the Views ecosystem · 280 projects

This module provides a way to restrict access to specific views based on individual users, rather than just roles or permissions. Site builders can select one or more users by their username to grant them access, and optionally allow anonymous users as well. This is useful for creating user-specific content, dashboards, or private blocks.

Views Access User adds a new "Access control" plugin for Views that lets site builders restrict access to specific users — without needing any roles or permissions.

Features

An additional access restriction type, "User" is available for site builders to select when configuring views access. Unlike the Permission or Role restriction, the new type allows site builders to select one or more individual users to restrict access to.

  • Restrict view access by individual user IDs
  • Add users using a username-based textarea in the Views UI
  • Enable anonymous access via a simple checkbox
  • Supports full autocomplete-to-ID mapping and validation
  • Integrates cleanly with the Views admin interface
  • Skips access checks for users with the "administer views" permission (for preview/edit)

Use Cases

  • Show content only to selected staff members
  • Create private blocks for individual users
  • Build user-specific dashboards or reports
  • Allow anonymous users to access specific views when needed

Usage

  • Go to Structure > Views
  • Edit or create a view
  • Under the Access settings, choose “User (Views Access User)”
  • Add usernames (one per line)
  • Optionally, check "Allow anonymous users"
  • Save and test the view with different user accounts

Access Rules

  • Only the listed users can access the view
  • Anonymous users are allowed only if that option is checked
  • Users with administer views permission always have access in the admin UI for preview purposes

Supporting this Module

If this module saves you time or adds value to your project, you can show your support in two ways:

  • Buy me a coffee to say thanks:
    https://buymeacoffee.com/tylerhastain
  • Want to contribute or sponsor development?
    Reach out directly if you're interested in helping improve or maintain the module — contributions, ideas, and support are always welcome!

Ask your assistant about Views Access by User

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

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
2
Tracked since
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.0-beta1 Pre-release 10–11 May 11, 2025
1.0.x-dev Dev 10–11 Feb 17, 2025