views_access_user
2 sites
No security coverage
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!