Decidim census verification with a CSV of emails: when a known list is enough
If your body must limit a process to members, employees or residents who already appear on a list, Decidim can check participants against a census of email addresses. This suits closed groups far better than open public votes, where anyone with an email address could register and act. The census of emails is the control: a participant can only pass verification if the address they use appears on the list you supplied.
The feature fits situations such as a staff consultation, a members' ballot in an association, or a board vote limited to registered members. In each case the question is not who someone claims to be, but whether their email is on the approved roster. Decidim's census-based authorization is the organization's own authorization, so you decide which list is used and who maintains it. Before you rely on it, confirm with your team which address each person must use, how the list will be kept current during the process, and whether the people on it know they must register with that exact address.
Decidim's modules documentation lists community verification handlers, including decidim-verifications-custom_csv_census, which points to a richer census import than the built-in option. Treat that module as a separate decision: confirm that it is compatible with the Decidim version you run, check how it handles duplicate or changed rows, and ask who maintains it. Because the list is the trust anchor, the people who prepare the CSV should be the same people who can answer for it. Plan the list cut-off date, the process for late additions, and what you will do with participants who are on the list but never register. Keep the limits in mind: a plain email list proves that someone controls an inbox on the roster, not that they are the person named on it.
Which census approach fits which organization
A CSV of emails is usually a good fit when the eligible group is a stable staff directory or membership list that one owner maintains and can export in full before each process opens. The built-in census matches a participant's verified email against the uploaded list, so the organization controls who can complete authorization without writing an integration. The file effectively becomes the access control, so the list owner should be part of the decision from the start.
- Stable headcount: Staff or members who join and leave on a predictable cycle can be re-exported before each process.
- Email as the identifier: People who verify with the address in the directory pass without extra steps, while aliases and personal addresses will not match.
- One accountable owner: Name who produces, checks and deletes the file, and who handles a colleague who is missing from it.
- Minimal data: Include only the fields needed for matching, so HR attributes are not copied into the platform.
A community handler or a custom census handler becomes worth considering when departures must remove access the same day, when the directory must be queried live, or when matching needs more than an email address. Confirm with the HR or membership owner how often the list changes and whether removed people must lose access before the next process.
A CSV of emails is a weaker fit for a municipal participatory budget, because residents rarely appear in a single list the city can share with a platform. Voter rolls and resident registers are often restricted by law or policy, and a list of registered participants from an earlier process covers only the people who already signed up. The built-in census can work for a narrow pilot, but the team should first confirm that the city holds a complete, lawful and current list of eligible residents with email addresses.
- Coverage gaps: A list built from past participants will exclude new residents and anyone who never registered.
- Lawful basis: Confirm with the data protection officer that sharing resident contact details with the platform is permitted for this purpose.
- Residence proof: Participatory budgets often need evidence of address, which an email list cannot provide on its own.
- Voting window: Plan the import so the list is frozen before voting opens and the same file is used for the whole window.
Look at a community handler or a custom census handler when the city already runs a residence or census database that can answer eligibility questions directly. Where the city cannot share a list at all, the document-based, postal or ephemeral methods described in the sibling topics are more likely to be the practical route.
A CSV of emails works only as a snapshot, so it fits a live membership database poorly once the database changes faster than the export schedule. The built-in census reflects the file as it was uploaded, which means a member who cancels after the import keeps eligibility until the list is replaced or the authorization is revoked. For a process with a live source of truth, the team should compare how quickly the database changes with how often a CSV can realistically be refreshed.
- Staleness risk: Each export is out of date as soon as it is created, so cancellations and new joiners lag behind.
- Manual refresh load: Every refresh needs someone to export, check and upload the file, and that effort recurs for every process.
- Custom census handler: A handler can query the membership system at authorization time, which keeps eligibility aligned with the source.
- Community CSV handler: The community CSV handler still reads a file, so it solves import mechanics but not freshness.
- Renewal policy: Define how long a verification stays valid and when members must verify again, using the revocation and renewal approach.
A custom handler is usually the right next step when the membership database is the source of truth and access must follow it closely. Confirm the database API or query options, the identifiers available, and the operational owner before estimating the build.
Census handler options and when each fits
This table compares the built-in census authorization with the community handlers named in the Decidim modules documentation. Read each row for the data it expects, who keeps the list current, and the situations where it fits best. Confirm column formats and behavior against each module's own documentation before you commit to one.
| Option | Data it needs | Who maintains the list | When it fits |
|---|---|---|---|
| Built-in census authorization | A list of eligible participants supplied in the format the core census feature accepts | Organization administrators, who upload and replace the file | A single, fixed list that changes rarely. Confirm supported file fields and matching rules. |
| decidim-verifications-custom_csv_census | A CSV file of eligible emails, with any extra columns the module documents | Organization staff who export and re-upload the CSV for each cycle | A member or employee list held in a spreadsheet or export. Confirm column names and how re-uploads treat existing verifications. |
| decidim-verifications-direct_verifications | Named user accounts that administrators verify directly, without a list file | Administrators, case by case, inside the Decidim admin panel | A small group of people verified by hand, such as board members or invited experts. Staff time grows with the number of people. |
| decidim-module-access_requests | Access requests submitted by participants, plus the reviewer's decision | Reviewers who approve or reject each request | Participants self-identify and staff review each case. Confirm how approvals link to authorization and component permissions. |
| Custom census handler | Whatever the municipal or membership database exposes, read through code you write and maintain | Your IT team or partner, with the source system's owners | A live database that must be checked on each action. Needs development, testing and an upkeep plan. |
How to set up a CSV census in Decidim
This sequence takes a Decidim platform from a confirmed version to a tested census check, so that only people on your member or employee list can take restricted actions. Each step ends with a check you can record before any process opens.
Confirm the Decidim version and supported branch
Someone on the platform team checks which Decidim version is running and whether its minor branch still receives security updates. Decidim supports only the last two minor versions until version 1.0, which at the time of the supplied facts meant 0.32.x and 0.31.x, so 0.30.x and earlier must be upgraded first. Confirm the current support status in the project's security policy before you build anything on top of it. The step is done when the running version, the branch it belongs to, and its support status are written in your change log.
Install or update the platform
Your infrastructure or hosting team installs Decidim as a Rails application or with Docker, or moves an existing instance to a supported version. Follow the installation guide for a new setup, or the update guide for an existing one, and upgrade one minor version at a time because some releases change database structures. Back up the database before any update. The step is done when the application starts, the admin panel loads, and a test organization can be reached over HTTPS.
Enable the census authorization or community module
An administrator with access to the server enables the census handler that matches your data. Decidim's community modules include a custom CSV census handler, decidim-verifications-custom_csv_census, which is listed in the modules documentation, but you should confirm that it is compatible with your exact Decidim version before you add it to the application. Module installation follows the installation and update guides, so use those for the gem setup and the required restart. The step is done when the authorization appears in the organization's verification list in the admin panel.
Prepare and validate the CSV file
The data owner exports the member or employee list and the platform team checks it against the format the handler expects. Confirm the exact column names and the email normalization rules in the module's own documentation, then remove duplicates, blank rows and addresses with obvious typos. Store the file in a restricted location and record who produced it and when. Decide, before loading, how the census will be refreshed, since a new file replaces or adds to the old one depending on the module. The step is done when a dry run on a copy of the file reports the expected row count and no rejected lines.
Load the census into the organization
An administrator uploads the validated CSV through the census interface or the command path that the module provides. Watch the import output for rejected rows, errors about encoding or delimiters, and any count that differs from the dry run. Keep the source file and the import log together so that questions from the data owner can be answered later. The step is done when the imported count matches the dry run and a sample of addresses can be found in the census records.
Assign the census to the restricted actions
The platform team links the census authorization to the actions that should be restricted, such as voting or commenting, using the component permission settings. Set each permission deliberately and avoid applying the census to the whole organization by default. Decide whether participants must also verify through the census before they can open the restricted action, and document the choice for the process owner. The step is done when the permission settings for each component are exported or recorded in the change log.
Test with a sample participant before opening
The team creates a test account whose email is on the census and a second test account whose email is not, then attempts the restricted actions from each. The listed account should be able to complete the authorization and take the action, while the unlisted account should be refused with a clear message. Also test a case-changed or spacing-variant version of a listed email, to confirm the matching rule behaves as the data owner expects. The step is done when both results are recorded and the test accounts are removed or flagged before any process opens.
How a participant passes a census check
The flow starts when an administrator imports the approved CSV of emails into the census handler, which keeps that list inside the organization's Decidim instance. When a signed-in participant submits the census form with an email, Decidim checks that email against the imported list and either grants or refuses the authorization. The key boundary sits between the stored list and the public site: participants see only a yes or no, never the list itself.
Administrator import and participant check, with the stored list kept off the public site.
Where the census data lives and what it reveals
The imported list does not become a participant record on its own. In a CSV census flow, Decidim compares each uploaded email with the accounts already on the platform, and only a matching user can be authorized. Before you upload anything, confirm with your Decidim contact exactly which fields the census handler reads from the file, how it normalizes emails, and what it does with rows that match no account. The file itself is the sensitive asset: a list of addresses tied to membership, employment or residence reveals who belongs to an organization even when no vote is cast. Treat the CSV as personal data from the moment it leaves your HR or membership system, and plan its storage, transfer and deletion accordingly.
After a match, the record Decidim keeps is the authorization, not the census. You should verify this against your own test instance: check whether the imported rows are retained in the database or in attachments, whether the matched authorization stores the email or only a reference, and whether any log lines echo addresses. Those answers determine what a database backup, a support request or a staff export would expose. Data minimization follows from them. Include only the columns the handler needs, remove departments, salaries or home addresses that a participation check does not require, and agree a retention rule for the original file that matches your privacy policy.
Decide who can upload and who can view the file before the first test run. Uploading a census is a privileged action, so limit it to a named administrator role and record who performed it. Staff who need to know that a census was loaded do not need to open it, and vendors or volunteers working on the site should not have file access by default. Ask your team to document these decisions with the rest of the verification setup, because an auditor or a data protection officer will ask who could see the list and for how long. Confirm the role model and audit trail for your Decidim version before a live census is loaded, since the answers depend on the platform release you run.
Limits of a CSV census to confirm before launch
A CSV census is only as good as the matching behind it. The cards below cover the places where a list of emails tends to break down in practice, and what to confirm in the chosen census module and in your own environment before a process opens to participants.
Matching on email only
A CSV census typically matches participants by the email address they register with. Confirm exactly which field the handler compares, whether matching is case-sensitive, and how it treats leading or trailing spaces and plus-addressing. Ask the module maintainers or read its source, then run a sample file through a test organization. A mismatch that looks like a typo to a person is a rejected member to Decidim.
Participants who change addresses
Members often switch work or personal email addresses between census exports. Decide whether an address change means a new participant with no history, and whether your team can supply a second identifier such as a member number. Confirm whether the handler accepts one, and agree with the business owner who issues corrections when a person cannot verify with the address on file.
Updating the list between processes
A census file is a snapshot. Confirm how a replacement file is loaded, whether previously granted authorizations survive a reload, and whether removed people lose access to actions they already took. Plan the export schedule, the person who owns the file, and how you will record which version was used for each process. Revocation and renewal are covered in a sibling topic.
Unmatched rows
Rows that match no account, and accounts that match no row, need a defined outcome. Confirm whether the handler reports unmatched rows, where those reports appear, and whether anyone can see them without exposing personal data. Decide who follows up on rejected people, how long the follow-up takes, and whether a rejected person has a documented route to appeal.
Shared and reused accounts
A list of emails does not prove that the person typing the code is the person on the list. Shared family or office mailboxes, and accounts created by someone else, can pass a census check. Confirm whether the handler limits one verification per identity, and decide whether your rules require a second method for high-stakes votes. Check the conflicts behavior in a sibling topic.
Testing before launch
Test the whole path with a copy of the real census, not a hand-made sample. Include a member who changed address, an unmatched row, a duplicate row and a person without an account. Confirm that component permissions block unverified actions in each component, and record the results. The test evidence is also what your compliance reviewers will ask to see.
Decidim modules docsQuestions buyers ask about census verification in Decidim
What does census verification with a CSV file cost?
Cost depends on the scope of work, not on a list price, and DeployOpen does not publish prices. Decidim is free software licensed under the AGPL-3.0, so the main costs are the people and infrastructure around it. One-time costs include defining the eligible population, preparing and cleaning the export from your membership or HR system, configuring the authorization, testing on staging, and documenting the process. Recurring costs include hosting, applying security updates, re-running the import for each cycle, and support. Costs rise with the number of data sources, the number of components that need gating, custom code, and the amount of testing. A fixed-scope quote should list each deliverable, what your team provides, and what is excluded.
How long does setup take for a CSV census list?
No duration can be given without knowing your list and environment. The main drivers are the size and quality of the list, how many sources feed it, whether the export is produced by hand or automatically, and how quickly approvals and access to your hosting environment arrive. Installation time depends on whether Decidim runs on servers you control or in containers, and on whether production services such as background jobs, file storage and SMTP are already in place. Testing time grows with the number of components and actions that need verification. Ask any provider for a written timeline tied to a named scope, and confirm how the chosen module behaves in its current documentation before you plan.
What must our team provide before a census import starts?
Your team should provide a written definition of who is eligible, agreed by the data owner, along with a sample export that shows the fields and format the import will receive. In practice this means:
- Access to the data owner who approves the eligibility rules and the update schedule
- A sample file from the source system, with a description of each column
- A staging environment and test accounts for each eligibility case
- Named staff for administration, test sign-off and the decision on which actions require verification
- Confirmation from your privacy or legal contact on what personal data may be stored and for how long
Agree these before the build, because they determine the module choice and the testing plan.
Can our own staff run CSV census verification without a partner?
Yes, if the team can operate a Ruby on Rails application with PostgreSQL and can read a module's code and documentation. Decidim is free software, and the installation guides cover both manual and Docker setups. The harder parts are usually not the import itself. They are production configuration, keeping the census current, testing each gated action, answering data protection questions, and applying security updates promptly. A partner adds value when the timeline is short, the team lacks Decidim experience, or the organization needs an outside security review. To decide, list the skills each task requires and compare them with the people you have available.
How do we choose between the built-in method and a community module?
Start with what the census must do. Decidim's authorization system lets an organization restrict actions to verified participants, and its census authorization covers the common case of matching participants to a known list. Community modules exist for richer census imports. The Decidim modules documentation lists community verification handlers such as decidim-verifications-custom_csv_census, decidim-verifications-direct_verifications and decidim-module-access_requests. Compare each candidate on what it imports, how it stores data, whether it supports your Decidim version, its release history, its license, and who maintains it. A module your team maintains itself carries upgrade and security work, so include it in the operations plan.
Which Decidim versions receive security updates for census modules?
Until version 1.0, Decidim supports only the last two minor versions with security updates, currently 0.32.x and 0.31.x, so a census setup on 0.30.x or earlier falls outside that support. Community modules follow their own release cycles, so confirm that a module declares support for your version before you install it. Plan upgrades one minor version at a time, follow each release's instructions, and back up the database first, because a module that works on one version may need changes on the next. Report security issues through the channels in the project's security policy.
What are the limits of verifying participants from an email list?
An email list shows that an address appears on the list. It does not show that the person holding the address is the member or employee. Addresses can be shared or reused, and a list is a snapshot, so people who leave the membership may stay verified until their authorization is revoked. Ask the data owner how often the list is refreshed, and plan a revocation step for leavers. For higher-stakes votes, consider a second method such as SMS verification or identity documents. Test how the import handles duplicates and capitalization differences in addresses. Treat the file as personal data with access limits and a deletion date, and confirm the handling rules with your privacy team before the first import.
How DeployOpen scopes a census verification project
DeployOpen plans, implements, customizes, integrates, hardens and documents Decidim inside the client's own infrastructure, so census verification runs on servers and data the organization controls. The work starts with a written scope that defines which census source, which participants and which actions the CSV check must cover.
How we scope
- Confirm which actions need the CSV check, such as proposing, voting or signing, and which components they belong to
- Agree the CSV format, column rules, email matching behavior and who owns the census file
- Define how the census is refreshed between processes and who approves each new import
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts
How we build
- Configure the organization's census authorization and test it against a sample file before any production import
- Write or adapt a community census handler only where the built-in method cannot meet the agreed rules
- Set component permissions so each action requires the verification the scope names, then test each one
- Check how unmatched, duplicate and malformed rows are reported to administrators and participants
How we hand over
- Document the census file format, import steps, permission map and the test cases used during acceptance
- Provide a runbook for administrators covering imports, errors, conflicts and revoking old verifications
- Record any custom code, its version and the Decidim release it targets for later upgrades
- Walk the client's team through the handover so they can run the next census import without us
How we support
- Support is available as a retainer for imports, Decidim upgrades and changes to the census rules
- Ongoing support covers reviewing new Decidim security releases and applying them to the verification setup
- Continuous testing can re-check component permissions before each process opens to participants
- Ask for the support scope, response expectations and retest approach in the written quote

