Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module allows you to mask sensitive information in webform submissions based on user roles. Instead of permanently deleting data, it hides certain fields from specific user roles within the Drupal interface, while authorized users can still see the full details. This helps with privacy compliance by controlling who can view personal data.

The Webform Anonymize module provides a flexible, role-based anonymization layer for Webform submissions.

Unlike modules that permanently anonymize data in the database, this module focuses on UI-level anonymization. It allows administrators to restrict the visibility of sensitive user data in the Drupal interface based on specific user roles, while keeping the original data intact for authorized users or automated processes.

Features

  • Per-Webform Configuration: Enable or disable anonymization for each individual webform.
  • Role-Based Access: Define which user roles should see anonymized data (e.g., mask data for "Content Editors" but show full data to "Site Administrators").
  • Multiple Anonymization Modes:
    • Full: Completely masks the value.
    • Half: Masks the second half of the string (default).
    • Partial: Shows only the first two characters.
    • Custom: Specify exactly how many characters should remain visible.
  • Customizable Masking: Choose your masking character (e.g., `*`, `#`, `•`).
  • Security First:
    • Automatically blocks access to Webform export routes for roles subject to anonymization.
    • Prevents access to submission edit forms for restricted roles.
    • Dynamically anonymizes values in submission lists and view pages.

    Use Case

    Perfect for GDPR compliance where certain staff members need to manage submission statuses or view lists without having access to the full personal details of the respondents.

    Dependencies

    * [Webform](https://www.drupal.org/project/webform)

Activity

Total releases
2
First release
Jan 2026
Latest release
5 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0 Stable Jan 27, 2026
1.0.x-dev Dev Jan 27, 2026