CKAN self-registration: who should be able to create an account
Most publishing portals should keep public sign-up closed and bring publishers in through invitations or single sign-on. A public catalog where anyone can create an account needs moderation of new users, while a catalog with only invited accounts keeps the publisher list under the portal owner's control. Self-registration controls one thing: whether people can create a new account through the web interface and, separately, through the API. It does not control what an account can do once it exists. Sysadmin status, organization membership, collaborator roles and dataset visibility are governed by their own settings and by the grants made to each user, so closing registration does not remove access that existing accounts already hold.
Change the default only when the portal has a defined reason for open accounts, such as a community that comments on datasets or suggests new ones. Even then, a new account does not publish anything by itself, so confirm which organization roles new users receive. Before you change anything, confirm the registration default in your installed CKAN version, since CKAN 2.10.4 disables registration by default, and check whether your ckan.ini file overrides that default. Teams that do open registration should write down who may register, how accounts are reviewed and how inactive accounts are removed, and assign one owner to that process.
If you run single sign-on, make the identity provider the place where access is decided. The ckanext-saml2auth extension adds SAML2 single sign-on to CKAN 2.10 and later, and it can assign users to organizations and roles from SAML2 attributes and manage sysadmins from an email list (ckanext-saml2auth repository). In staging, test two cases: a user removed from the identity provider's group should lose organization rights in CKAN, and any local account created before SSO should be either disabled or mapped on purpose. Ask your integrator to confirm which of these behaviors your extension version supports before you rely on them.
CKAN self-registration options and when each one fits
This table compares five ways to decide who can create a CKAN account and how those accounts gain publishing rights. Read each row for who creates the account, who approves publishing rights, how exposed the portal is to spam and abuse, and what the team must run to keep it working. The hybrid row often fits portals that accept public sign-up, because publishing stays with invited, accountable people.
| Option | Accounts and publishing rights | Spam and abuse exposure | Operational work for the portal team |
|---|---|---|---|
| Open public sign-up | Anyone can create an account. Publishing rights come only from an admin adding the account to an organization. | Highest exposure. Automated and fake sign-ups are possible, so plan for rate limits and periodic removal of unused accounts. | Ongoing. Review organization requests, clear spam accounts and answer recovery requests. Confirm registration settings for your version. |
| Closed sign-up with admin-created accounts | A sysadmin creates each account, then an organization admin adds it to the right organization with a role. | Low for sign-up spam. The main risk is an account created for the wrong person or a leaver left active. | Ongoing and manual. Every new user is a request, and every departure needs removal. Suits small publisher groups. |
| Invitation of publishers into organizations | Organization admins add named people to their organization. Confirm whether your version sends email invitations or only adds existing users. | Low when used alone, since only chosen people can publish. Check that each invitation goes to the right address. | Shared between organization admins and the portal team. Admins need training on roles, and the team reviews who holds admin rights. |
| SSO with account creation on first login | The identity provider authenticates the user and the portal creates the account on first login. Group or attribute mapping can set organization roles. | Low for sign-up spam, since the identity provider gates entry. Risk shifts to the provider's enrollment process and to leavers. | Moderate to high setup: attribute mapping, testing and offboarding. Confirm your SSO extension supports your CKAN version. |
| Hybrid: public sign-up, invited publishers | Anyone can create a reader account. Publishing rights come only from an organization admin's invitation. | Account volume matches open sign-up, but publishing is limited to vetted people. Monitor sign-ups for abuse. | Moderate. Needs sign-up moderation and an invitation process. Worth it only if public accounts serve a feature you confirm. |
How a new publisher account reaches a closed CKAN portal
The diagram starts when someone needs to publish. The portal first checks whether public sign-up is open. If it is, the person registers and the team reviews their identity before anything else happens. If sign-up is closed, a portal administrator creates the account or invites the user. Where single sign-on is in place, the identity provider sends user attributes at login, and an SAML2 extension such as ckanext-saml2auth can assign users to organizations and roles from those attributes. In every branch, the portal team checks identity first, then an organization admin adds the user as a member or editor, and the team checks that the role matches the request. Confirm the attribute mapping with your SSO configuration before go-live.
Decision path from access request to an organization role on a closed CKAN portal.
Configuring CKAN self-registration step by step
This sequence closes public account creation on a CKAN portal and moves new publishers onto invitations. Each step ends with a check, so the team confirms the register page, the account API, invited sign-ins and organization roles behave as planned before the portal is handed over. The portal team carries out the work, and the portal owner signs off on the test results.
Record current registration and account state
Before changing anything, the portal administrator records the current registration settings from the configuration file and the running site. Also list existing user accounts, noting which are sysadmins, which hold organization memberships, and which were created through the public register page, by invitation or through SSO. Note the installed CKAN version, because the setting names and defaults depend on it, and check in the release policy that this version is still supported. The step is done when the team has a written, dated inventory that another administrator could use to explain the portal's current state.
Back up the configuration file
The portal administrator copies the CKAN configuration file and any site-specific settings files to a dated location outside the application directory. Take a database backup as well if one is not already scheduled. Store the copies under the same access controls as the production server, because the configuration file holds secrets such as database credentials. Open the copy and confirm it contains the registration settings recorded in the previous step. The step is done when the copy is readable and the team knows where it is stored and who can restore it.
Change web account-creation settings
The portal administrator updates the setting that controls whether the public register page accepts new accounts. Confirm the exact setting name and its default in the documentation for the installed version before editing, because CKAN 2.10.4 disables registration by default and other versions may differ. Make the change in a staging copy first where one exists, then apply it to production. The step is done when the change is logged with the old and new values and a second reviewer has approved it.
Change API account-creation settings
The portal administrator sets the account-creation option for the API separately from the web setting. Check the API documentation for the installed version to confirm whether the API has its own option and which actions create accounts. Review existing API tokens and scripts that rely on account creation, and decide with the owners whether they keep working or move to an invitation path. The step is done when the team can name every account-creation path on the portal and the setting that governs each one.
Restart application services
The operator restarts the web and background worker processes that load the configuration, using the service manager or container platform the portal runs on, so the new settings take effect. Restart in the order your deployment documentation specifies, and make sure no worker keeps running with the old configuration. Check the service status, read the startup log for configuration errors, and confirm the front page loads for a visitor who is not signed in. The step is done when every process reports running on the new configuration.
Test anonymous registration and the account API
From a browser session with no login, open the register page and confirm it is closed or shows the intended message, with no form that creates an account. Then send account creation requests to the API without a token and with a token from a non-admin user, and confirm each request is refused as planned. Compare the responses with the expected results written before the change. The step is done when every anonymous and non-admin path matches the plan, and any unexpected behavior is logged and fixed before the next step.
Verify invited users and organization roles
Send an invitation to a test address using the invitation method your team has chosen, then accept it in a private browser window. Confirm the test user can complete sign-up, sign in with the expected credentials or SSO path, and reach only the organizations and roles assigned to them. Check member, editor and admin rights on a sample of datasets, including one private dataset, since visibility depends on the role. The step is done when the test results match the role plan, the portal owner has signed off, and the invitation process is handed to the team that will onboard publishers.
Which registration model fits each portal type
Government portals need accounts mainly for publishers. Residents, journalists and developers can search and download public datasets without signing in, so public registration should stay closed and accounts should go only to named staff who publish for a department. An administrator creates each publisher account after the department confirms the person and the organization they will work for.
- Who needs an account: Publishers, editors and reviewers in each department. Readers do not need one to search or download public datasets.
- Onboarding: A written request from the department's data lead, then an administrator creates the account and adds it to that department's organization.
- Logging and approval: Keep a record of each account, its organization, the approver and the date. Confirm with your records officer how long these records must be kept.
- Configuration: Turn off self-registration using the registration option in the options table, and set roles per organization so each publisher can edit only their department's datasets.
- Comments and API keys: Public comments need an account only if your install includes a comment feature from an extension. Scripts that publish or harvest need a publisher account to hold their API token.
Check that offboarding removes publisher accounts when staff change roles, because an account left active after a role change keeps its publishing rights.
Research portals usually host a mix of staff, students, visiting collaborators and partners from other institutions who need to deposit data. Open self-registration rarely fits that mix, but a portal with no way to join can stall a project. Most teams invite users and have a sponsor vouch for each account.
- Who needs an account: Depositing researchers, data stewards and invited external collaborators. Readers of published datasets do not need one.
- Onboarding: A sponsor, such as a principal investigator or data steward, requests the account, and an administrator confirms the person's institutional identity before creating it.
- Logging and approval: Record the sponsor, the approval date and the project each account supports, because sponsors often move on before a project ends.
- Configuration: Keep the registration option in the options table disabled and invite users instead. Datasets outside any organization are a separate setting, covered on the page about unowned datasets.
- Embargoes and API keys: Hold embargoed releases in private datasets until the release date. Give deposit scripts a named account with a token that has an expiry date.
Confirm with your research office whether institutional identity is required for external collaborators and how long their access should last.
An internal catalog behind the firewall serves staff across departments who share data with each other. Everyone who can sign in is an employee or a contractor, so the main risk is access wider than the work requires.
- Who needs an account: Staff who search or publish, plus contractors with a defined need. Visitors from outside the network should not reach the portal at all.
- Onboarding: The department's manager requests access, and an administrator adds the person to that department's organization with the member or editor role that matches the task.
- Logging and approval: Record each request, the role granted and the approver. Review organization membership at an interval agreed with your security team.
- Configuration: Turn off self-registration in the options table, keep drafts in private datasets, and map organization roles to departments so no one holds admin rights they do not need.
- Comments and API keys: Comments need an account if an extension provides them. Issue API tokens to named staff so each script's activity traces back to a person.
Check that the portal cannot be reached from outside the network, since closed registration does not change who can reach the sign-in page.
When an identity provider handles sign-in, the question moves from whether people can register to which identities the provider admits and how CKAN maps them to accounts and roles. The ckanext-saml2auth extension adds SAML2 single sign-on to CKAN 2.10 and later, and can assign users to organizations and roles from SAML2 attributes.
- Who needs an account: Anyone the identity provider authenticates for the portal, with access decided by the provider's groups and attributes.
- Onboarding: Staff are added in the identity provider first. Confirm whether your configuration creates the matching CKAN user on first sign-in or needs an administrator step.
- Logging and approval: Approval happens in the identity provider. Log group changes there and organization role changes in CKAN, since either one can grant publishing rights.
- Configuration: Turn off self-registration in the options table so SSO is the only route in. Manage sysadmins through the email list only where that list has a named owner and a review schedule.
- Public access and API keys: Public datasets stay anonymous. Confirm whether your version lets SSO users create API tokens and how scripts authenticate without an interactive login.
Check that local CKAN logins are disabled or limited to a break-glass sysadmin, and test that a user removed from the identity provider loses access to the portal.
Security risks of open CKAN self-registration
Open self-registration lets anyone create an account, and each account then reaches whatever its roles and tokens allow. The six risks below are the ones that most often turn a public sign-up form into a publishing problem. Each card names the control to apply and what the portal team should verify.
Spam and fake accounts
Anyone who can reach a public sign-up form can create accounts in bulk, which invites bots, spam profiles and throwaway accounts that look like contributors. Turn off public registration with the ckan.auth.create_user_via_web setting, and confirm the key name and value against the configuration docs for your CKAN version. Then load the sign-up page while logged out and check that no form appears on the running site. Also test whether the user creation API accepts requests from unauthenticated callers.
API tokens on new accounts
Any logged-in account can create API tokens, and a token acts with the same rights as the account that issued it. An account that gains editor rights in one organization can therefore publish or change datasets from a script, long after the person has stopped using the portal. Make organization roles the only path to write access, and set token expiry where your policy requires it, using the expire_api_token plugin. Verify by listing tokens held by accounts with no current organization role, then revoke one and confirm the API rejects it.
Unreviewed organization memberships
Organization editors and admins can publish under that organization's name, so each membership is a publishing permission. If anyone can sign up and be added by username, a stranger can become an editor without a single check. Set up a written invitation process: the organization admin submits a request, a portal administrator confirms the person and their work email, and only then is the membership created. Verify each organization's member list against the approved request log, and look for accounts added without a matching request.
Orphaned accounts after staff leave
Accounts outlive the employment or contract that justified them. A former publisher who keeps editor rights and an active token can keep changing datasets, and nobody notices because the person is no longer on the team. Run a periodic account review, and attach a short offboarding step to every HR or contract exit that removes organization memberships, revokes tokens and disables the user. Verify by comparing active CKAN accounts with current staff lists from each publishing department, including sysadmin and organization admin roles, which are easy to overlook.
Weak identity checks without SSO
A self-registered account proves only that someone controls an email address and a password. CKAN cannot confirm that the person behind an account is the publisher they claim to be, so identity checks depend on the process around sign-up. Where your organization runs an identity provider, route staff sign-in through SSO. The ckanext-saml2auth extension can assign users to organizations and roles from SAML2 attributes and manage sysadmins by email list. Verify whether local password login remains available for publisher accounts, document the answer, and confirm the sysadmin path still works if the identity provider is down.
saml2auth repositorySign-up and login log review
Closing registration does not reveal whether it was abused, and an attacker who creates or reuses an account leaves records only if someone reads them. Review sign-up events, failed logins and password resets on a schedule, and look for bursts of new accounts, unfamiliar email domains and logins from unexpected locations. Confirm where CKAN and the web server write their logs in your deployment, how long they are kept, and which events your CKAN version records. Name the person who reviews them and the day each review happens.
How SSO changes what registration means
With single sign-on in place, the identity provider usually decides who can sign in, so the sign-up form stops being the main gate. The portal team still has to decide three things. First, does a first successful login create a CKAN user account automatically, or must an administrator create it beforehand? Second, does that new account receive any organization membership or role, and if so, from which attribute? Third, is local password sign-up switched off, so that the identity provider is the only route in? Each answer changes who can publish, so record them in writing before go-live and do not let the defaults decide.
The ckanext-saml2auth extension adds SAML2 single sign-on to CKAN 2.10 and later. It can assign users to organizations and roles based on SAML2 attributes, and it can manage sysadmins from an email list. Those features move part of the registration decision into your identity provider's attribute set, so attribute names, attribute values and their mapping to organization roles become part of the access policy. Review that mapping as a control with its own sign-off. Confirm the exact behavior against the extension version you install and the attributes your identity provider actually sends, because the documented options and the claims in your environment may differ. See the ckanext-saml2auth repository for the current configuration options.
Test each case before real users arrive, using a small set of test identities. Include one account with no matching attribute, one that should receive an organization role, and one that should receive sysadmin rights. For each, check whether CKAN creates the account, which organization memberships appear, and whether password sign-up is blocked. Then disable a test user at the identity provider and confirm that the user can no longer sign in to CKAN, since a local account may persist after the upstream account is disabled. Repeat these checks after every extension or identity provider change, and keep the results with your access review evidence.
What to confirm before closing registration
Closing public sign-up affects configuration, email, SSO, existing accounts and every later upgrade. Each card below is a separate check you can run in your own environment before you change the setting.
Registration default and config keys
CKAN 2.10.4 disables registration by default, but portals upgraded from older releases or configured by hand may differ. Confirm the running registration value in your installed version by reading the configuration reference for that exact release. Take the key name from that reference, then check what your ckan.ini file and any environment overrides actually set. Record the key, the value and the file where it lives, because the running value is what your review should test.
Release notes for your target version
Registration behavior can change between releases, so read the notes for the version you run now and the version you plan to reach. Compare CKAN 2.12.0, released August 26, 2026, and the maintenance releases 2.11.6 and 2.10.11 issued the same day with your current minor line. Look for changes to user creation, invitation flows, default roles or authorization functions, since any of them can reopen sign-up or alter who can invite. Keep a dated record of what you reviewed.
CKAN releasesMail delivery before closing sign-up
Once public sign-up is closed, invited publishers and locked-out users depend entirely on email. Before you close registration, send a test invitation and complete a password reset from a clean browser. Check the outbound mail settings in the configuration, the sender address, TLS support and whether messages land in spam folders or get blocked by your mail gateway. Confirm the links in those emails use the public site address you configured.
SSO support for your minor version
If you use single sign-on, the SSO extension must support your installed minor version before it creates accounts for you. The ckanext-saml2auth extension states support for CKAN 2.10 and later, but confirm that the extension release you deploy names your exact minor version and passes its tests against it. Also confirm how SSO logins create users and assign organizations and roles when public registration is off. Test a login with a test identity provider account in staging before you rely on it.
ckanext-saml2auth repositoryReview existing open accounts
Closing registration does not remove accounts that already exist. Before you close it, export the account list and review which accounts are active, which hold sysadmin rights, which belong to organizations with editor or admin roles, and which have not signed in for a long time. Accounts created while sign-up was open may no longer match a current publisher, so ask each organization admin to confirm their members. Decide who disables, deletes or keeps each account, and record the owner of each decision.
Upgrade re-checks under release policy
An upgrade can change registration behavior, so repeat your checks after each move. Under CKAN's release policy, patch releases are not meant to break backwards compatibility and exclude schema changes and new features, but minor releases may include backwards-incompatible changes. Read the policy to see which support window applies to your line, since the latest patch of the current minor and the previous minor receive security and bug fixes. Treat a minor upgrade as a full re-test of sign-up, invitations, SSO login and mail, even when the patch notes look quiet.
CKAN release policyQuestions teams ask about CKAN registration, effort and ownership
What drives the cost and effort of changing CKAN registration settings?
The main drivers are how many ways people can reach the portal and how many publishing teams need accounts. The setting that turns off web registration is a small configuration change, so most of the effort sits around it. That work includes finding every path that creates accounts, deciding how existing users are treated, mapping publishers to organizations and roles, and testing what anonymous and logged-in users can see afterward. Cost has a one-time part (analysis, configuration, testing, documentation) and a recurring part (rechecking the setting after upgrades and extension changes). Ask for these parts to be priced separately, and confirm your own list of publisher teams and sign-up paths before requesting a quote.
How long does it take to turn off public sign-up in CKAN?
The configuration change itself is quick, so duration depends on the decisions around it. Timing is driven by how many publisher teams need accounts, whether invitations pass through an approval process, how many organizations and roles must be set up, and whether the change goes to a portal already in production or to a new one. Review and sign-off by your security or governance team often takes longer than the change. Any duration should come from the written scope, and dependencies such as identity provider access and a test environment should be confirmed before the schedule is agreed.
What does our portal team need to provide before the work starts?
Before work starts, the portal team should be ready to provide access, lists and a safe place to test. The usual inputs are:
- Access to the identity provider if SSO is planned, including a way to test sign-in with test accounts.
- The list of organizations, their publisher teams and who should hold each role.
- Mail settings for invitations and password resets, with confirmation of the sender address the portal may use.
- A test environment close enough to production to test registration, invitation and sign-in.
- Named contacts who can approve the change and sign off the results.
Confirm with your team that each item exists and who owns it, since missing access is one of the easiest things to overlook.
Can our own team turn off CKAN registration without a partner?
Yes, a team with CKAN administration experience can usually change the setting alone, and the decision to do so is yours. The harder parts are confirming every account creation path, checking extensions that add their own sign-up or identity logic, and proving the result with tests. Teams that lack a staging copy of the portal, have no one who has reviewed CKAN's authorization model, or need documented evidence for an assessment often find testing and documentation take the most time. A partner's scope usually covers the parts your team does not have the time or skills for. Whichever route you choose, record who owns the change, who approves it, and how you will verify it after each upgrade.
What changes if we add SSO to a CKAN portal later?
Adding SSO changes who creates accounts, so registration settings and identity rules should be decided together. With single sign-on, the identity provider usually becomes the source of accounts, and the portal's own sign-up form is often turned off so users cannot create local accounts outside it. The ckanext-saml2auth extension adds SAML2 single sign-on to CKAN 2.10 and later and can assign users to organizations and roles based on SAML2 attributes, which changes how publishers are onboarded. Check which local accounts remain, including sysadmins, how existing users are matched to the identity provider, and what happens to accounts when a person leaves. Confirm the extension version against your CKAN version before scoping.
What should a written scope for registration changes include?
A written scope should name the portal, the CKAN version, the change and what is out of scope, so both sides can check the work against it. Ask for these items: the sign-up paths to be closed, the treatment of existing accounts, the organization and role mapping, the invitation process and mail settings, the test cases and the environment where they run, the documentation handed over, and the steps to recheck the setting after an upgrade. Each item should have a deliverable and an acceptance check. Ask for cost and timeline to be shown per item, and for assumptions about identity provider access and the test environment to be listed. DeployOpen agrees scope, deliverables and timelines in writing before work starts, and the work runs in your own infrastructure.
How DeployOpen scopes and supports registration changes
DeployOpen treats self-registration as an access decision that your governance team makes before any setting changes. We scope the registration policy, invitation process and SSO behavior for your CKAN portal, then build, test, document and hand over the result inside infrastructure you control. Engagements are fixed-scope, with the scope agreed in writing before work starts.
How we scope
- The written scope lists which registration paths your portal keeps, such as public sign-up, invitations or SSO-only login.
- We confirm who may invite publishers, which organization roles new accounts receive and who holds sysadmin rights.
- The scope records your CKAN version, since CKAN 2.10.4 disables registration by default, and your SSO setup.
How we build
- Apply the agreed registration settings and any custom invitation step in your CKAN configuration and extensions.
- Wire SSO with the agreed identity provider, using an extension such as ckanext-saml2auth where it fits the design.
- Test anonymous, self-registered, invited and SSO sign-in paths against the scope, including API token behavior for each role.
How we hand over
- Document the registration policy, who approves invitations and the steps to add or remove a publisher.
- Provide the test results and change record, so your security or compliance team can review the settings.
- Walk your administrators through the invitation workflow and the records they will check after each change.
How we support
- Ongoing support is available as a retainer, and registration changes can be added to it in writing.
- Retest registration settings after each CKAN upgrade, since minor releases may include backwards-incompatible changes.
- DeployOpen prepares registration controls and evidence for compliance assessments, while independent auditors issue any opinion.

