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). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

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!

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 Release date
1.0.0-beta1 Pre-release 10–11 May 11, 2025
1.0.x-dev Dev 10–11 Feb 17, 2025