How to consolidate several CKAN portals into one
Merging several departmental or regional CKAN instances into one portal is a fixed-scope data, identity and governance project built on documented import paths. Effort tracks the organizations, duplicate datasets, DataStore tables and user accounts in each source, so an inventory of those four things is the first deliverable for any consolidation. In short, effort rises as the sources disagree on organization names, record identifiers, table structures and account ownership, and it falls when those points are settled before any data moves. Existing users need one set of accounts and stable links, so the inventory should also list every public URL that staff, partners or other sites currently use for each source.
Choose the target CKAN version and extension set before any data moves, because the import method, the metadata schema and the login setup all depend on them. CKAN 2.12.0 was released on August 26, 2026, with maintenance releases 2.11.6 and 2.10.11 on the same day, and the project supports the latest patch of the current minor version and the previous one, so pick a target inside that window and plan for the next patch. Check each extension you need against that version: the ckanext-dcat repository lists support for CKAN 2.10 and 2.11, and ckanext-saml2auth adds SAML2 single sign-on to CKAN 2.10 and later, so confirm current compatibility for 2.12 with each maintainer before you commit. Read the CKAN release policy for the support window, and record the decision in writing with extension versions, because every later step is tested against it.
Once the version is fixed, ask each team for a written mapping before engineers script anything. The mapping should say which source organization becomes which target organization, how duplicate datasets are matched and which copy is kept, which accounts exist in more than one source and which login identity will own them, and which DataStore tables need loading through XLoader, the officially supported loader, since DataPusher is now legacy. Include the redirect plan as well, so that old dataset URLs from each source instance resolve to their new locations. Confirm with the owner of each source instance who can approve the mapping, because decisions about shared identifiers and account ownership cannot be made by the engineering team alone.
Which CKAN objects map cleanly into a single portal and which need decisions
This table compares each CKAN object you might move from several source portals with its equivalent in one consolidated portal. Read the target column first, then the notes, which flag where a decision is needed before loading. The main takeaway is that datasets map cleanly only when schemas match, while users, API tokens, organizations and themes need deliberate mapping and reissuing. Confirm field-level behavior against your chosen target version.
| Source object | Target equivalent | Migration notes |
|---|---|---|
| Datasets and resource metadata | Datasets in one schema, with resources attached | Maps cleanly when source and target schemas match. Otherwise agree a field mapping before loading. |
| Organizations and groups | Target organizations and groups, with a mapping table | Source organization names and IDs rarely match. Build a mapping table and assign every dataset to a target organization. Decide which groups survive. |
| Uploaded files | Resource files in the target FileStore | Copy files into the target storage and update each resource URL. Verify checksums after the copy. |
| DataStore tables | Tables in the target DataStore database | Table names can collide across portals. Rename or prefix tables, then update resource references and any queries that use them. |
| Custom schema fields | Fields in the target schema and extension set | Each source extension must be installed or replaced in the target. Align field names, types and validators before loading. |
| Users and roles | Accounts with organization roles in the target | Match accounts by verified email, then reassign roles. Avoid copying password hashes between portals. Plan password resets or single sign-on instead. |
| API tokens | Newly issued tokens for each user | Reissue tokens in the target. Tell integration owners which tokens changed and update scripts and harvesters that used them. |
| Themes and extensions | Target theme and extension set, chosen once | Align templates, custom extensions and translations to the target. Confirm each extension supports the target version. |
| Dataset URLs | Target dataset names and URLs, with redirects from old links | Dataset names become URL slugs and may collide. Keep a map of old to new URLs and set redirects before cut-over. |
Merging user accounts, roles and sign-in across portals
Start by listing every account in each source portal and matching it against the target before any account is created. Email address is the usual key, but addresses change and some older accounts have none, so also compare the identity provider subject wherever your portals recorded it. Export the lists with ckanapi (for example user_list with the fields you need) or read them from each portal's database, then flag accounts that match on both keys as one person. Treat an email-only match as a candidate to confirm with the account owner, because shared mailboxes and reused addresses are common in departmental portals. For each confirmed person, reassign organization membership in the target using the highest role they need. CKAN organization roles are admin, editor and member. Collaborator rights on individual datasets are set per dataset, so they must be recreated separately. Keep every decision in a mapping file that the data owners can review before cut-over.
Sysadmin rights need the tightest control, because a sysadmin can see and change every organization in the portal. Do not copy the sysadmin flag from each source portal. Build a named list of the people who need it in the target, approve that list with the owner of each source portal, and grant the flag only to those accounts. If your portals sign in against one identity provider, ckanext-saml2auth is one option to evaluate. It adds SAML2 single sign-on to CKAN 2.10 and later, can assign users to organizations and roles from SAML2 attributes, and can manage sysadmins from an email list. Confirm which attributes your identity provider sends, such as email, a group claim or an organization attribute, and the format each one arrives in. The extension can only act on what the provider sends, so check this before you design the role mapping.
Integrations need new API tokens. A token issued in a source portal will not authenticate against the target, so every script, harvester and scheduled job must be given a token issued in the target for an account with only the rights it needs. Find these integrations by asking each team and by checking scheduled task definitions and server logs for API calls. Give each owner a date to update the token in their configuration, then revoke the old tokens after that date. For old dataset URLs, build a redirect table that maps each source dataset address to its new address in the target, and keep the table under version control so it can be reviewed. Confirm how redirects will be served in your environment, whether by the source web server, a load balancer or the target portal's web server. Test a sample of old links before the source portals go offline.
Documented ways to consolidate CKAN portals into one
Four import paths can bring datasets from one CKAN portal into another, and each moves a different layer of the portal. Because each path reads different things from the source, each leaves different things behind, such as users, API tokens and custom fields. Check every path against the target CKAN version and the access the source operator grants you before you choose one.
CKAN harvesting extension
The CKAN harvesting extension runs against each source portal's API and creates or updates datasets in the target on a schedule. It moves the dataset metadata, resources and organization links that the source API exposes to your harvest account. It leaves behind user accounts, API tokens and private datasets that the harvest account cannot read. Confirm which source types your target version supports, how source organizations map to target organizations, and whether custom extras survive the import.
CKAN repositoryckanext-dcat RDF harvester
The ckanext-dcat RDF harvester imports from sources that publish DCAT RDF, so the source's DCAT profile and RDF structure determine what arrives. It moves the catalog records the RDF describes, including distribution links that point to files. Files the RDF does not link, DataStore tables and organization memberships stay behind. Confirm which DCAT profile the source publishes, the RDF serializations and file size limits your target accepts, and that your ckanext-dcat version supports your target CKAN version.
ckanext-dcat repositoryScripted ckanapi package import
ckanapi scripts read each source through its API and call package and organization create actions in the target. This path gives you control over every field mapping, duplicate rule and rerun behavior, at the cost of writing and testing that code yourself. Users, API tokens, activity history and group memberships are not created unless your script creates them. Confirm the read rights of the source API key, how the script handles datasets that already exist in the target, and that the action names you call exist in your target version.
XLoader for DataStore tables
XLoader is the officially supported tool for loading uploaded or linked files into the CKAN DataStore, so it handles tabular resources once their metadata exists in the target. It moves the rows of each file into a DataStore table that the Data API can query. It moves no dataset metadata, and it needs the resource to exist in the target first. Confirm that XLoader is installed and configured on the target, that the source file links still resolve after the move, and that DataStore user settings match your access policy. Do not plan around DataPusher, which is now legacy.
DataStore docsEach source portal's records pass through staging before the target
The diagram starts with each source portal, which holds its own organizations, users, datasets and DataStore tables. Records leave each portal as a dump or a harvest and enter the staging area, where the organization map assigns each source organization to a target organization, the duplicate rules decide which datasets are the same, and user matching links accounts. Personal data from the sources is held in staging, so access to that area should be limited and logged. Only cleaned records move to the target portal, which runs in parallel with the sources and sits behind a redirect layer before the sources are switched off. Confirm the mapping and user matches before loading.
Records from each source pass through staging before the target receives them.
Steps to consolidate CKAN portals without losing records
Consolidation runs in seven stages, each with a named client owner and a written output. The sequence starts with a full inventory of every source portal and ends with decommissioning, so no dataset, organization, user or DataStore table leaves a source without a matching record in the target.
Inventory each source portal
Each source portal is catalogued before any data moves. The client provides administrator access to every source, a named owner for each portal, and read-only database or API credentials where the team needs them. The delivery team records dataset counts by organization, users and sysadmins, installed extensions, the CKAN version, and each DataStore table with the resources it belongs to. The step is done when every source has an inventory list that the client's owners have reviewed and corrected.
Agree the target version and extensions
The client and the delivery team choose one CKAN version and one extension list for the target. Source portals on different versions are mapped to the target's schema, so the choice depends on what the inventory found and on how long the client needs security fixes. Review the CKAN release policy before deciding, because minor releases may include backwards-incompatible changes. The output is a decision record that lists the version, each extension with its pinned version, and any custom metadata fields that must carry over.
Build the organization map and duplicate rules
Each source organization is mapped to a target organization, merged into another one, or kept as a sub-unit with its own publishing rights. The client's data owners approve the map, since they decide which department owns each dataset after the merge. The team also writes duplicate rules: how datasets are matched by name, identifier or source URL, which record wins when metadata conflicts, and how user accounts sharing an email address are combined. The output is an approved map and a rule set tested against the inventory, with the expected collisions listed for review.
Pilot one source into staging
One smaller source is moved into a staging instance of the target to test the full path. The delivery team transfers records with ckanapi dumps or the CKAN harvester, depending on what the source allows, then loads DataStore tables and uploaded files and rebuilds the search index. The client's owners check a sample of datasets, permissions and private records against the source. The pilot is complete when record counts match, the duplicate rules behaved as written, and each defect found has a logged fix that has been retested.
Run a parallel period
Sources and the target stay readable for an agreed period, and publishing teams keep working in the source portals while the target is checked. The delivery team reruns the transfer for new or changed records on each cycle, compares counts and sampled records, and logs every difference with an owner. The client decides when edits must stop in each source. The period closes when the difference log is clear for the agreed checks and the client signs off the parity report.
Cut over and redirect old links
Publishing moves to the target, and old source addresses are redirected to matching target pages. The client provides DNS or web server access, a list of external links and harvesters that point at each source, and the contacts who must learn the new endpoints, including API users who call old organization names. The delivery team configures redirects, updates any harvest jobs that pull from the portal, and tests a sample of old links and API calls. Cut over is complete when those tests pass and the owners confirm that no consumer still reads from a source.
Decommission sources after retention
Source portals are switched off only after the retention window agreed during the inventory step has passed. The client provides the retention decision, any legal hold requirements, and the approver for deletion. The delivery team takes final backups of each source database, uploaded files and DataStore tables, stores them under the agreed access controls, then stops and removes the instances. The step is done when a restore of the final backup has been tested and the client holds a written record of what was removed, when, and where the archives are kept.
Choosing a merge path for each source portal
Use this path when your organization runs the source portal and holds an administrator API token. The documented route is the CKAN action API, which you can script with ckanapi. Dataset, organization and group exports come from the API, and DataStore rows can be read through the DataStore documentation and the Data API. Because you control the server, a database dump is also possible, but the API route is easier to review and to repeat during test loads.
- What carries over: dataset and resource metadata, organizations, groups, tags and resource URLs that the token can read.
- What the API does not carry: user accounts, password data, API tokens and the search index, which the destination rebuilds itself.
- Private datasets: these appear only when the token belongs to a user with rights to them, so run the export with an account that can see everything you intend to move.
- Uploaded files: the API returns resource links rather than file contents, so download uploaded files separately and record where each one came from.
- DataStore tables: read them with a read-only key and record the row count for every table before the export starts.
Before accepting a load, compare dataset counts per organization, confirm that private datasets were included, and match DataStore row counts against the source. Confirm the token scope and the CKAN version with whoever administers the source.
Use this path when another team or a hosted provider runs the source and you must request access. Put the request in writing before any work starts, because the operator decides what leaves its environment. The usual requests are a database dump, a copy of the FileStore, the DataStore database, the list of installed extensions with their versions, and an API token with rights to the organizations you are merging. Expect the operator to limit some of these items.
- Database dump: carries datasets, organizations and some account records, if the operator permits. Ask whether user records are removed before delivery.
- FileStore copy: carries uploaded resource files. Linked resources stay at their original addresses and can change or disappear after cut-over.
- DataStore database: holds the loaded tables as separate PostgreSQL data, so request it separately from the main dump.
- Extension list: identifies the schemas and plugins that shaped the metadata, which you need to reproduce field mappings on the destination.
- Restrictions: hosted providers may refuse direct database access, which leaves you with the API path for that source.
Before accepting the load, confirm the access terms and the license for the export in writing, match the extension versions against your destination, and check that dataset counts in the dump agree with the counts the API reports.
Use this path when the source publishes its catalog as DCAT RDF and you have no database or API access. The documented route is the ckanext-dcat RDF harvester, which reads the catalog and creates or updates datasets on the destination. The extension provides DCAT-AP v1, v2 and v3 schemas and is supported on CKAN 2.10 and 2.11, so confirm that your destination version is covered before you configure a harvest source.
- What carries over: descriptive metadata, distributions as links, and whatever the source's DCAT profile expresses.
- What it cannot carry: DataStore rows, uploaded file contents, user accounts and organization memberships that the RDF does not describe.
- Identifiers: stable dataset identifiers let a re-harvest update existing records, so check identifiers on a sample before running the full import.
- Formats and size: confirm which RDF serializations your harvester version detects and any file size limits that apply to large catalogs.
- Deletions: decide how datasets removed at the source are handled after cut-over, because this decides whether old records remain on the destination.
Before accepting a load, compare harvested dataset counts with the source catalog, spot-check identifiers and distributions, and confirm the extension version and harvester settings with the team that publishes the RDF.
What drives the cost and duration of a portal merge
This table lists the drivers that move effort and cost when several CKAN portals are merged into one. Read each row as a question to answer during scoping, with the right column showing what to request in a quote. The number of sources, overlapping organizations and duplicate records often change scope the most, so settle them before requesting a quote.
| Driver | How it moves effort | What to request in a quote |
|---|---|---|
| Source portals and CKAN versions | Each source is its own extraction and test cycle. Minor releases may include backwards-incompatible changes, adding upgrade work. | Work priced per source, with the CKAN version and patch level of each and whether upgrades are included. |
| Organizations needing mapping | Each source organization needs a target owner and a name. Overlapping or renamed organizations need decisions from each department before mapping is coded. | Count of source organizations, their target mapping and who signs off each decision. |
| Duplicate datasets and resource files | Same records published in several portals need a merge rule. Matching on identifiers, titles or URLs each carry different false-match risk. | Estimated duplicate count, the agreed match rule, and whether resource files are copied or linked. |
| DataStore tables and size | Row counts and column types drive reload time. Large tables also add storage and index work during the merge. | Table inventory with row counts, column types, and whether XLoader or manual loads are planned. |
| User accounts and identity federation | Duplicate accounts across portals need merge or retirement rules. Federating sign-in, for example through SAML2 single sign-on, adds identity design work. | Account counts per source, the identity provider in use, and the policy for inactive or duplicate users. |
| Custom schemas and themes in each source | Each custom schema, extension and theme must be reconciled into one target or dropped. Differences between sources multiply testing. | Inventory of extensions and templates per source, with the target decision for each. |
| Old URLs to redirect | Every dataset, organization and resource link needs a mapped destination. Link volume drives redirect mapping and testing. | Count of old URLs per source, redirect rules expected, and who validates them before cut-over. |
| Length of the parallel run | Both portals serve users while sync and checks continue. Longer runs add monitoring, reconciliation and support effort on both sides. | Required run length, who staffs monitoring, and how reconciliation reports are produced. |
| Quote structure | Effort sits in three places: each source, the target setup and parallel run support. | Work per source, target portal setup, and parallel run support as separate line items. |
What usually goes wrong when several portals merge
Merging portals rarely fails in one dramatic step. The problems below sit in the seams between source portals and the target: identifiers that stop being unique, accounts and links that depend on where they were created, and data that loads without checks. Each card names the prevention step and the stage where it should be verified.
Duplicate datasets with conflicting metadata
The same dataset often appears on two departmental portals with different titles, licenses or update dates. After the merge, users find two records and cannot tell which is current. Choose one owner record per dataset during mapping, and list every field that differs before loading. Keep the source identifier on the surviving record so later harvests do not recreate the copy. Check the duplicate list again on a staging target before the first production load.
Organization names that collide
Two source portals may each have an organization named Environment or Public Works, with different slugs, members and datasets. Loading both into one target either mixes unrelated datasets or fails on the duplicate name. Build a mapping table from every source organization to one target organization with a unique slug, and agree who owns each one. Check the table during mapping, then compare dataset counts per target organization with the source counts after the test load.
User accounts that duplicate across portals
Accounts are created separately on each portal, so one person may hold two usernames under different email addresses. When accounts are merged or recreated, organization roles can be dropped, and editors then lose their roles and cannot publish. Decide which identity is authoritative, match accounts on a verified email address, and reassign roles from a written list. Check role counts per organization on the target before anyone is asked to sign in.
Broken links and stale search at cutover
Researchers, applications and other portals link to dataset URLs on the old domains and to the old dataset IDs. After cutover those links return not-found pages unless they are mapped. Export a list of old URLs and IDs during inventory, and set a redirect from each old address to its new record. Rebuild the search index as a named step after the last load, then check a sample of links and search results on the target before the old portals are switched off.
DataStore tables loaded without checks
Tabular resources moved into the DataStore depend on the loader for their column types, so a value that does not convert can arrive as an unexpected type or fail the load. A matching row count does not prove the data is intact. Record row counts and a checksum per resource before the load, then run type checks on key columns after it. Load tables with XLoader, the supported loader, and check each table against its source in staging.
DataStore docsExtension and schema mismatch between sources
The source portals may run different CKAN versions, extensions and custom dataset schemas, and a field one portal stores may have no home on the target. Records can then load with values dropped or validation errors that appear only for some datasets. List each source's version, extensions and schema fields during inventory, and map every field to a target field or an explicit drop decision. If DCAT profiles are used, confirm that the same ckanext-dcat version runs on both sides before the test load.
ckanext-dcat repositoryHow much effort does it take to consolidate CKAN portals?
What does it cost to consolidate several CKAN portals?
The cost is mostly the time of the people doing the work, so it rises with the number of source portals, datasets and organizations to map, and with how messy their metadata is. Fixed-scope work is priced from a written scope, and DeployOpen does not publish a price list. Main components: discovery of each source portal (versions, extensions, schemas, users, organizations); mapping organizations and metadata fields onto one target schema; scripting harvests or ckanapi dumps and loads; resolving duplicate datasets and user accounts; redirect rules; testing; and cut-over support. Costs go down when source portals run the same CKAN version and extensions, when the target schema is agreed early, and when your team can decide organization ownership quickly. Costs go up with custom extensions, DataStore tables that need reloading, and open decisions about duplicates. Most of the spend is one-time. Ongoing hosting and support of the merged portal recur and are priced separately.
How long does it take to consolidate CKAN portals?
The duration depends on how many portals, datasets, organizations and user accounts are in scope, and on how much of the source metadata can be mapped without manual review. A schedule should come from the written scope and a discovery phase on your own portals, so ask for it in the proposal. Drivers that lengthen the work include mixed CKAN versions, custom schemas and extensions, large DataStore tables to reload, duplicate datasets that need a human decision, and identity setup that must finish first. Drivers that shorten it include shared versions, a short list of organizations, one agreed target schema, and quick sign-off from organization owners. Ask which phase the partner expects to be slowest for your inventory and which decisions block the next phase. Also confirm how long each source portal can be frozen for the final load, because publishing on the old portals usually continues until the cut-over date is set.
What does consolidating CKAN portals need from our own team?
Your team needs to make decisions and grant access, and the partner does the mapping and scripting. Organization owners must confirm which source organization maps to which target organization, who keeps administrative rights, and which datasets are current. Your identity team must confirm how users sign in to the merged portal, whether single sign-on is used, and how accounts that exist in more than one portal will be matched. Your sysadmins must provide read access to each source portal's database and file storage, API tokens or sysadmin credentials for ckanapi, server and extension lists, and a test environment for the target. Expect a named contact who can approve data-quality exceptions within the agreed scope. Ask the partner to list each access request and each decision in writing, with an owner and a date, before discovery starts.
Can our own staff consolidate CKAN portals without outside help?
Yes, a team with CKAN administration skills can do parts of this work, and the parts that suit in-house staff are usually the inventory, the organization map and the decisions. The scripting and loading need someone comfortable with ckanapi, the CKAN API, and the database, and someone who can check the results against the source. Keep the work in-house when you have one or two source portals on the same version, few custom extensions, and staff who have run a CKAN upgrade or migration before. Consider a partner when portals differ in version or extensions, when duplicates need careful rules, when DataStore tables must be reloaded, or when staff time is tight. A useful test is whether your team can rerun the full load on a copy of production and reconcile counts of datasets, resources, organizations and users afterward. If not, the risk moves to the cut-over day, when mistakes are hardest to undo.
Do we need to run the old and new CKAN portals in parallel?
Not always, but a parallel run is the safest way to protect users during cut-over, and many teams plan some overlap. A parallel run means the old portals stay live while the new portal is checked against them, and edits on either side must be reconciled. It is worth planning when many organizations publish often, when external harvesters or applications depend on the old catalogs, or when a gap in access would disrupt users. A shorter overlap, with a final delta load on cut-over day, can suit smaller portals with few changes. Decide the rule for edits made during the overlap, because changes in two places cause duplicates. Ask the partner to show how the delta is captured and reconciled, how long the old portal stays open, and who signs off the switch. The overlap length should follow from your publishing calendar and the agreed scope.
Will old dataset URLs keep working after CKAN portals merge?
Yes, if redirects are planned as a deliverable, because CKAN does not keep old dataset paths working after a rename or move by default. A dataset page uses the dataset name in its path, and a merge often renames datasets to avoid collisions, which breaks links in reports, search engines and other catalogs. The usual approach is to build a map from each old path to its new path, keep the original identifiers in a field such as an extra or a harvest reference, and have the web server or a small redirect layer answer old paths with a permanent redirect. Check that the map also covers resource download links, API calls from external applications and the identifiers that harvesters use. Decide what happens to datasets that were deleted or merged into another record, since those need a clear target or a gone response. After cut-over, test a sample of old links and review logs for misses.
What should a quote for CKAN consolidation include?
A quote should follow from a written scope and should show each piece of work, who does it and what the client provides. Ask for the list of source portals with their CKAN versions, extensions, dataset and organization counts, and the target portal design. The quote should separate discovery, mapping, scripting and loading, duplicate and user reconciliation, redirects, testing, cut-over support and handover. For each item, ask what the deliverable is and what evidence shows it is done, such as reconciliation reports. Ask which costs are one-time and which recur, such as hosting, upgrades or retainers. Ask what is excluded, which changes cost most, and how changes to scope are priced. Ask for the client inputs and access the plan assumes, and for the dates on which decisions are needed. DeployOpen does not publish a price list, so compare proposals line by line against the same scope.
How DeployOpen scopes and delivers a CKAN portal merge
DeployOpen treats a CKAN consolidation as a written, fixed-scope project: the source portals, the target portal, and the mapping rules are agreed before any data moves. Work runs inside your own infrastructure, with the CKAN harvester or ckanapi dumps used to move datasets, and each load is verified against the target before cut-over.
How we scope
- The written scope lists each source portal, its organizations, and the datasets and users that move.
- Organization mapping rules, duplicate-handling decisions and redirect targets are agreed in writing before build starts.
- Engagements are fixed-scope, and ongoing support is available as a retainer after the portal goes live.
How we build
- Each source is pulled with the CKAN harvester or ckanapi dumps, so the extract can be re-run during rehearsals.
- Duplicate datasets are matched on agreed keys, then merged, kept separate or retired according to the written rules.
- Users, roles and organization memberships are rebuilt in the target, and access is tested against the agreed matrix.
How we hand over
- Each rehearsal load is checked against the source counts, and results are recorded for your team to review.
- Redirect tables map every retired dataset and organization URL to its new location, and are tested before cut-over.
- Deliverables include the mapping documentation, load scripts, a cut-over runbook and the verification results.
How we support
- After cut-over, a retainer can cover the target portal's upgrades, patching and search index maintenance.
- Source portals are kept read-only or redirected for an agreed period, so late links and bookmarks keep resolving.
- Confirm which CKAN version each source and the target run, since version differences change the load steps.

