Custom organization and group fields in CKAN

Custom organization and group fields let a CKAN portal record contact points, publisher identifiers and jurisdictions at the publisher level. This page covers when organization_type and group_type schemas fit, how to set them up and verify them, and what to confirm for your CKAN version.

On this page

Custom organization and group fields in CKAN: when a portal needs them

Portal teams usually need contact points, publisher identifiers or jurisdictions once per organization or group, so that every dataset a body publishes inherits the same values instead of carrying its own copy. Organization and group metadata serves three purposes. It records ownership, showing who is responsible for a dataset and who a user should contact when a record is wrong. It supplies search facets, so visitors can filter datasets by publisher, region or theme. It also feeds publisher reporting, where a national or regional catalog needs a stable identifier for each publishing body and a consistent jurisdiction for each. The teams that need this are usually open data coordinators who report to a central catalog, data stewards who answer for record quality, and developers who must map portal fields to an external profile.

In CKAN, organizations and groups are separate objects with their own forms, so custom fields for them are declared apart from the dataset schema. The organization_type and group_type schema concept lets an administrator define which extra fields an organization or group carries, which of them are required, and how they validate. For administrators, this moves work into the schema: the field list, required flags and validators can be kept as reviewable files beside the dataset schema. For publishers, an organization's contact point and identifier can be entered once on the organization page and then shown on every dataset that organization owns, so the dataset form no longer asks for them. The administrator's decision is which fields belong at organization level and which must stay per dataset, because a value that changes between datasets, such as a licence or a temporal range, does not belong there.

The exact mechanism depends on the CKAN version and the extensions in use, so confirm the details against the CKAN documentation for your version and the documentation of any extension you plan to use. Check how organization and group schemas are declared, which roles can edit the new fields, whether the values reach the API and search facets, and whether they appear in any DCAT output your portal produces. Before the build starts, list the fields each publisher must supply, mark which identifiers must stay stable after publication, and agree who in the portal team owns each value. Organization roles decide who can change a contact point, so confirm the permissions model with the team that manages organizations and users before testing edits.

Which place to store publisher metadata in CKAN

This table compares four places to store publisher metadata in CKAN, from default organization fields to a separate register. Read each row for who maintains the values, how they reach search, the API and DCAT output, and the main cost of choosing it. For most portals with more than a handful of publishers, a typed organization schema gives the best balance, while the other options fit narrower needs.

OptionBest fitEditing, search and outputMain trade-off
Default organization and group fields onlyPublisher name, description and logo are enough, with no identifiers neededAdmins edit in the form or API. Shows on organization pages and API. DCAT publisher fields need confirming in your profile.No typed place for identifiers, contact points or jurisdiction
Extras or free-text description conventionsA short pilot, or a few values that rarely changeEditors type extras or a text pattern. Extras reach the API, but nothing checks values against a list.Spelling and format drift, and DCAT mapping needs custom code
organization_type or group_type schema with custom fieldsIdentifiers, contact points, jurisdictions and pick lists used by many publishersAdmins fill a typed form with required fields. Named fields come back in the API and can be indexed for search if configured.Schema is code to version, test and upgrade, and renamed fields affect existing records
Separate register or harvest source for identifiersAuthoritative publisher identifiers maintained by a registry or upstream catalogA sync job or register maintainer updates values. The organization holds a reference key. DCAT output depends on how the lookup is built.Sync job, failure handling and a second system to own and audit

How organization fields move from the admin form to the API and exports

The diagram starts with a sysadmin defining the organization or group schema, which sets the extra fields the web form and API accept. Organization admins enter values through the form or the API, and validation runs when the values are saved, before anything reaches the CKAN database. From the database, the fields are indexed for search, shown on public catalog pages, and read by any DCAT or harvest export. The boundary between editors inside the portal and public readers is the line to watch: editors write, while public readers only see what the catalog pages and exports publish. Check that validation covers form and API input, and that every field an export reads is one you chose to publish.

Organization field values flow from entry to search, pages and exports.

Setting up organization and group fields in a CKAN portal

This sequence takes custom fields for CKAN organizations and groups from a written field list to a tested schema running in production. Each step ends with a check a reviewer can repeat, so the fields behave the same way on every instance before users depend on them.

  1. Confirm CKAN version and installed extensions

    Record the CKAN version the portal runs and every extension in its plugin list, including the scheming extension that will define the new fields. Read the version and extension list from the status_show API action on the production instance, then confirm that the extension release you plan to use supports that CKAN version. Keep the output with the project record. The step is done when the version and extension list are written down and match what the staging instance reports.

  2. Write the field list with owners

    For each organization and group field, record the label, data type, whether it applies to organizations, groups or both, the team that owns the value, whether it is required, and the validation rule a value must pass. Identifiers and contact points usually need a stated format and a named owner, while free text may need only a length limit. Ask the data governance lead to approve the list before any schema is written. The step is done when every field has an owner and a validation rule in a reviewed document.

  3. Define the schema in version control

    On a development instance, write the organization and group schema files using the organization and group schema settings of ckanext-scheming, with one schema for each organization type and group type. Store the schema files and the plugin configuration in the same repository as the rest of the portal's code, then restart the development instance so CKAN loads them. Confirm the setting names against the extension's documentation for your CKAN version. The step is done when the new fields appear on the organization edit form and the group edit form of the development instance.

  4. Test create and edit for each field

    Create a test organization and a test group on the development instance, enter a valid value in every new field, and save. Reopen the edit form, change each value, save again, and confirm that each change persists after reload. Enter an invalid value for each field that has a validation rule and confirm that the form rejects it with a clear message. The step is done when every field saves valid input, shows the saved value on reload, and returns the expected error for invalid input.

  5. Verify search and API read

    Read the test organization and test group back through the organization_show and group_show API actions, and confirm that each custom field returns the saved value. Then call the organization and group list actions with all_fields enabled and confirm that the same values come back. Search behavior depends on how each field is indexed, so run a test query for each field and record whether it can be searched or filtered. The step is done when the API output matches the entered values and the search result for each field is recorded.

  6. Check permissions for admins and members

    Create test accounts for an organization administrator, an editor, a member, a user outside the organization, and a sysadmin. Sign in as each account and check which custom fields it can see, which it can edit, and whether it can save changes. Compare the results with the access rules written in the field list. The step is done when each account shows the expected read and edit behavior, and any gap is logged as a defect to fix before promotion.

  7. Promote the change to staging and production

    Deploy the schema files and plugin configuration through the same release path used for other portal code, and take a backup of the production database before the change. On staging, repeat the create, edit, API and permission checks above, then confirm that organizations and groups created before the change still open their edit forms with the new fields empty. Repeat the same checks on production after the change. The step is done when the staging and production checks pass and the test organizations and groups are removed.

Security and privacy risks in publisher and contact fields

Custom organization and group fields hold contact details, publisher identifiers and jurisdictions that people, harvesters and other systems rely on. The risks below share one root: these fields are edited by people with different roles, read by systems you may not run, and changed over time. Each card names the control to set before the schema goes live.

Contact points become public data

A named contact, personal email address or direct phone number on an organization record is personal data as soon as it appears on a public page or in an API response. Harvesters and search engines can copy it, and removing it later does not remove existing copies. Where possible, use role-based mailboxes for public contacts, and check every public output (organization page, API, DCAT feed) before launch. Set a data protection review step for any field that holds a person's details.

Admins editing fields they should not control

An organization admin can usually change every field on the organization record, including fields the portal team treats as controlled, such as publisher identifiers or jurisdiction codes. Decide which fields belong to the portal team and which belong to the publisher, then map that split to the roles your CKAN version actually supports. Confirm in a test instance which roles can edit each custom field before you give a new publisher team admin rights.

Identifiers other systems trust

Publisher identifiers are often matched by harvesters, dashboards and downstream registries. If an editor can type any value, an editor can make a record appear to belong to another publisher, and the mismatch may go unnoticed. Keep identifiers under change control: name one owner, check each new value against your authoritative register, and record who approved it. Ask which external systems match on these values before go-live, and check how the DCAT output carries them through ckanext-dcat repository.

ckanext-dcat repository

Audit trail for publisher changes

Changes to contacts and identifiers are the records people ask about later: who changed the value, when, and what it was before. Confirm whether your CKAN version keeps a change history for organization and group records, and how long entries are kept. If the history is limited, export dated copies of publisher records on a schedule and store them in your own logging system, so the trail survives a portal rebuild.

Schema changes that hide values

Removing or renaming a custom field in the schema can hide values that are still stored, so published records look incomplete even though nothing was deleted. Downstream outputs, including DCAT feeds, may drop the field as well. Treat every schema edit as a change request: list affected fields, test the change on a copy of production data, and confirm how your version displays and exports values for fields no longer in the schema. Hidden values look the same as deleted values to readers.

How publisher identifiers and jurisdictions reach datasets and exports

Organization-level values stay on the organization record unless something copies them onto datasets. In a default setup, a dataset carries only its owner_org reference, so the organization title and name are what a dataset page shows as its publisher. Custom fields added through an organization_type schema are returned by organization API calls such as organization_show and appear on the organization page, but a dataset does not inherit a contact point or jurisdiction from its organization automatically. Decide early whether a publisher identifier must appear on every dataset. If it must, choose how it gets there: entered per dataset, copied from the organization by a custom validator or template, or read from the organization at display time. Copied values can drift from the organization record when someone edits one and not the other, so write the owner of each value into the scope before the build starts.

Search and API consumers see different things, so test each one separately. The dataset search page filters on the facets your portal configures. The default organization facet comes from each dataset's owner, so a jurisdiction stored only on the organization will not narrow dataset results unless it is also indexed on each dataset. Confirm this on your own instance before you promise users a jurisdiction filter. Private datasets and their fields follow the permissions of the owning organization's members, so an API token that cannot see a private dataset will not see its values either. Run a package_search request from a public account, a member account and a sysadmin account, and compare the results with what the organization page shows.

DCAT and harvest exports carry only the fields that the profile maps, so organization fields may be absent from RDF output even when they display correctly in the portal. The ckanext-dcat repository documents the schemas, profiles and harvester it provides, and you should read its mappings for the publisher, contact point and spatial fields before you design any organization field. Its supported CKAN versions are listed in the repository, and the extension is supported on CKAN 2.10 and 2.11, so confirm that your release is covered. Export one dataset from each organization type, inspect the RDF for the publisher and contact values, and confirm what a catalog harvesting your portal would receive. Repeat the check after every CKAN or extension upgrade.

What changes for portal administrators, publishers and integrators

Portal administrators define and version the schema for organizations and groups. They decide which fields exist, which are required, which pick lists are offered and how definitions change over time. Every organization record and every API consumer depends on these definitions, so the schema works as a shared contract that the team keeps in version control and promotes from staging to production.

  • Write the definitions: Maintain the organization_type and group_type schema files, with each field's label, input type, validators and required status.
  • Plan changes as releases: Record each addition, rename or removal in a changelog. Renamed keys leave existing values under the old name until someone migrates them.
  • Own the pick lists: Decide who may add entries to lists such as publisher types or jurisdictions, and how new entries are reviewed.
  • Test before promotion: Apply each schema change in a staging portal and check the form, the API output and any DCAT output before it reaches production.
  • Escalate platform changes: Changes that touch extension code, the CKAN version or the database go to the portal team.

Check whether your team can edit and deploy schema files alone, and who approves a rename or removal before it reaches production.

Limits to confirm in your CKAN version and environment

The approach on this page depends on details that change between CKAN releases, extensions and portal configurations. Treat each card below as a question to answer with the vendor documentation for your version, then prove the answer on a test instance cloned from production. Behavior on a clean install may still fail on your existing organization records.

Which CKAN version applies

Ask whether organization and group schema support is present in the minor release you run, and whether the same behavior holds in the patch you will deploy. CKAN ships about two minor releases a year, and minor releases may include backwards-incompatible changes, so a field pattern that works on one minor line can need rework on the next. Confirm the exact version against the CKAN documentation and your own test instance before you write any schema code.

CKAN release policy

Extension dependency and support status

Determine whether your approach relies on an extension such as ckanext-scheming or ckanext-dcat, and whether that extension supports your CKAN version. The ckanext-dcat project lists support for CKAN 2.10 and 2.11, so a portal on another line needs a different plan or an upgrade first. Check the support status in the extension's compatibility notes, its open issues and its maintenance activity, then record the version pins you will use in production.

ckanext-dcat repository

Search indexing and facets

Confirm how values stored on organizations and groups reach the Solr search index, and whether they can be used as facets or filters on dataset search. Organization values may not behave like dataset fields in the index, so a value may display on an organization page without being searchable. Test with a sample organization, change a value, rebuild the index and check the search results and facet counts you expect before you promise filtering to users.

DCAT and harvest output

Check whether organization and group fields appear in DCAT RDF output and in records harvested from other catalogs, and where they map. An organization-level value may reach DCAT only through a custom mapping, or not at all, so the field can be missing from a national or regional feed without any error. Export a test catalog, compare the RDF to your target profile, and run a harvest round trip before anyone relies on the field downstream.

Existing organizations without values

Plan what happens to organizations created before the new fields existed. Those records hold empty values, so the schema must accept blank fields without blocking edits, and any required-field rule needs a backfill plan, an owner and sign-off. Ask whether a bulk update or API script can populate the fields safely, and test an edit on an untouched organization and on one that is partly filled to see what the form and API return.

Surviving the upgrade path

Confirm that the schema, extension versions and any custom code survive your planned move to the next minor release and its follow-up patches. CKAN patch releases exclude schema changes and new features, while minor releases may break compatibility, so the minor upgrade steps must be written down before the first production change. Rehearse the upgrade on a copy of production, including the search index rebuild, and keep the field definitions in version control so the rollback is clear.

Questions teams ask before adding organization and group fields

What drives the cost of adding organization and group fields to CKAN?

Cost follows the number of fields, the logic behind them, and the number of places the new data must appear. The largest component is usually engineering time to define the organization_type and group_type schemas, write any custom validators, and adapt templates so editors can see and change the values. Field type matters: a plain text field takes less effort to specify than a controlled list tied to a published code set, or an identifier that must match a register elsewhere. Testing adds to the total, especially when search, API and DCAT output depend on the same fields. Most of the spend is one-time build work. Recurring cost comes from keeping the extension working across CKAN upgrades and from later changes to the field list. Ask any provider who does each part of the work, who reviews the design, and what support follows delivery.

How long does it take to add custom fields to an organization schema?

Duration depends mostly on how many decisions are still open when the work starts. Teams that have agreed the field list, the allowed values and the owner of each field can move straight into build. Teams still debating definitions, identifiers or jurisdiction codes will spend more time in review cycles than in code. Other drivers include the number of organization and group types, whether validation runs on create and on edit, how many templates change, and how many environments must be promoted before production. Any calendar commitment should appear in the written scope, which lists deliverables and timelines agreed before work starts. Ask the provider to show the build sequence, the review points where your governance contacts sign off, and the testing window before go-live.

What does our team need to provide for organization and group fields?

The work moves at the pace of the decisions your people make, so name them before build starts. Portal owners decide which organization and group types exist, which fields each one carries and which fields are required. Publishers, the organizations that will fill in the records, confirm which values they can supply and how often those values change. Data governance contacts approve field definitions, controlled values and any identifiers taken from an external register. Plan for each group to review a draft, usually through a sample organization record. Name one person who can accept the test environment and one who owns the production change window. When these contacts are missing, schema decisions get reopened after build, which is a common source of rework.

Can an in-house team add organization and group fields on its own?

Yes, if the team has Python and CKAN extension skills, a test environment that mirrors production, and time to review changes with the people who own the metadata. The work has four parts: writing the schema definition, adding any custom validation or display code, updating templates, and testing search, API and export behavior. Each part is familiar to a CKAN developer, but the combination needs someone who has shipped an extension change before and who will still be on the team at the next CKAN upgrade. Many teams ask a partner to review the design and handle the first build, then take over operations with a runbook. Confirm three things internally: who maintains the extension, who tests it after each CKAN release, and who approves changes to field definitions. If any of those answers is unclear, the project is at risk regardless of who writes the code.

How do organization field changes hold up after a CKAN upgrade?

They hold up when the schema files are in version control and extension versions are pinned, but each minor release still needs a full test pass. The CKAN release policy states that patch releases do not break backwards compatibility, while minor releases may include backwards-incompatible changes, so the two upgrade paths carry different risk. Plan each upgrade as a rehearsal on a copy of production. Check the scheming extension, custom validators, template overrides and any harvest or DCAT extension against the target version before touching live data. Confirm in each extension's own documentation that it supports the target CKAN version. The CKAN 2.12 release is a minor release, so it needs this full cycle. Review schema files like code so each upgrade diff shows exactly what changed.

What happens to existing organizations that have no values for new fields?

Existing organizations keep working, but they show empty values until someone fills them in, so the backfill plan matters as much as the schema. Decide first whether each field is optional for old records, required only for new ones, or required for all. Then decide who supplies the missing values: portal staff working from a source list, the publishers themselves through the edit form, or a one-time import from a spreadsheet checked by governance. Publisher identifiers and jurisdictions often need a lookup against an authoritative list, which adds review time. Confirm in your own test environment how validation behaves on existing records during edits and API updates, because that behavior depends on how each field is declared. Track completion in a report so the gap stays visible to the people who own the metadata.

What should a written quote for this work include?

A useful quote lists the scope in terms you can check: each field, its type, its allowed values, and the organization and group types it applies to. It should also name every template and extension that changes. Ask for these items to appear in the quote:

  • the schema files, custom code and documentation delivered, and where they are stored
  • the test cases used to prove search, API and export behavior
  • the environments touched and who approves each promotion to production
  • the assumptions about your side, such as which contacts sign off and when source data arrives
  • exclusions, such as backfilling records or changing other extensions
  • the change request process after scope is agreed, and any support or upgrade retainer offered separately

DeployOpen agrees scope, deliverables and timelines in writing before work starts, and most engagements are fixed-scope, so request those documents with the quote.

How DeployOpen scopes and delivers organization and group schemas

DeployOpen approaches custom organization and group fields in CKAN as a schema design job first, then a build inside your own infrastructure. We agree the fields and validation in writing, build them with organization_type and group_type schemas, test them on the CKAN version you run, and hand over documented, version-controlled code. Engagements are fixed-scope, and ongoing support is available as a retainer.

How we scope

  • The written scope lists each organization and group field, its type, whether it is required and who edits it.
  • The scope states which fields apply to organizations, which to groups, and which feed downstream DCAT output.
  • Scope also confirms your CKAN version, Python and Solr setup, and the extensions the portal already depends on.

How we build

  • Fields are defined in organization_type and group_type schema files, kept separate from the dataset schema.
  • Validators for publisher identifiers, contact points and jurisdictions are written and tested against sample records before go-live.
  • Builds run in your cloud accounts, data centers or air-gapped network, with schema changes reviewed and deployed like application code.

How we hand over

  • Handover includes the schema files, the extension configuration and the test cases, kept in your version control.
  • Documentation covers each field's purpose, who maintains it, its validation rules and how it appears in the portal.
  • Your team receives a walkthrough of how to add or change an organization or group field safely.

How we support

  • Retainers cover ongoing support, CKAN upgrades and continuous testing of organization and group fields.
  • Before any CKAN upgrade, confirm each extension you use supports the target version, since minor releases can change behavior.
  • CKAN supports the latest patch of the current and previous minor versions, so plan to apply patches promptly.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.