This project is not covered by Drupal’s security advisory policy.
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!
Supporting organizations:
Project information
Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Access control
17 sites report using this module
- Created by luke.leber on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
1.0.0-beta1
released 11 May 2025
Works with Drupal: ^10.3 || ^11
Install:
Development version: 1.0.x-dev updated 11 May 2025 at 02:39 UTC

