Designing X-Road member classes and identifiers

Member classes, member codes and subsystem codes decide how every service in an X-Road instance is addressed and authorized, and several of these choices are costly to change once members are registered.

On this page

Why X-Road member class and identifier design is hard to reverse

If you are standing up or joining an X-Road instance, you must agree the identifier scheme before the first member registers. The instance identifier, member classes, and member and subsystem codes together form the identifiers used to address services, so changing any of them later is disruptive: services, access rights, certificates and logged messages all reference the identifiers as they were issued. This page covers how to choose the instance identifier and member classes, such as government, commercial or non-profit, how member codes and subsystem codes combine into service identifiers, and why these choices are hard to change once members are live. The Central Server and Security Server installation pages are sibling topics that depend on these decisions, so settle the scheme before you run either installation.

Treat the naming scheme as a design document rather than a configuration detail. Confirm with your governing body or ecosystem agreement who may be assigned each member class, who issues member codes, and how subsystem codes will be named for systems that different teams own. Check the current identifier rules against the X-Road documentation for your release, since the 7.x line is the supported path today and the X-Road 8 beta may handle identifiers differently. Ask whether your ecosystem has already published a naming convention, because joining an existing instance means accepting its scheme rather than designing one. Record each decision, its owner and the reason, so that a future federation, a renamed organization or a new service does not force a re-identification of members that already exchange data.

How instance, member class, member code and subsystem code form a service identifier

The identifier starts with the instance identifier, which names the X-Road instance and is set when the Central Server is installed. Under it sit the member class, the member code and, where an organization runs several information systems, the subsystem code. Together with a service code, these parts form the service identifier that every Security Server uses in its routing. The Central Server holds the global configuration that defines these identifiers, and each Security Server refers to them when it registers members and publishes services. Before going further, check that each part is unique within the instance and that the class names match what your governance agreement defines.

The hierarchy of identifier parts and how the Central Server and Security Servers reference them.

Choosing a member class for government, commercial and non-profit members

Government members are usually ministries, agencies, registries, municipalities and other public bodies that publish or consume data under a legal mandate. In many ecosystems this class signals that the member is subject to public administration rules, which can shape who may join, which services it may provide and which data it may request. Before assigning the class, confirm with the governance body which public entities qualify and what evidence it accepts.

  • Legal basis: Ask which law, decree or mandate the governance body requires as proof of eligibility.
  • Public body hierarchy: Confirm how agencies under a ministry, or municipalities under a region, are represented as separate members or grouped under a parent.
  • Shared government services: Check whether a central agency that serves many public bodies should join in its own right.
  • Status changes: Agree what happens when an agency is merged, renamed or moved to another ministry, including whether its member code and identifiers change.

Confirm the eligibility rule in writing and the evidence the governance body accepts before the first registration request arrives.

Identifier decisions and when each option fits

This table compares the identifier decisions an X-Road operator makes before members join: instance identifier, member classes, member codes, subsystem codes and service codes. Read each row as a decision that is cheap to set on day one and expensive to reverse once certificates, registrations and service descriptions reference it. Confirm exact character rules and reserved values against the X-Road documentation for your version before you commit.

DecisionOptionsWhen it fitsWhat is hard to change later
Instance identifierOne unique instance code per X-Road ecosystem, chosen by the operatorSet once for each separate trust domain, such as a national or sector ecosystem, before any member is registeredEvery member identifier and certificate carries it, so renaming means re-registering the whole ecosystem
Member class setClasses such as government, commercial or non-profit, defined by the operator for the ecosystemUse the classes your governing rules and membership categories already use, so every admitted member maps to exactly one classMembers are identified by class, so adding, merging or renaming classes forces changes to existing member identifiers
Member code assignmentCodes issued from a registry you control, or from a registry maintained by an authority, with a rule for who may request onePick an approach that matches how organizations already get registry numbers, such as business or public register codes, if your rules allow itOnce a member code appears in certificates, registrations and service identifiers, it is effectively permanent; a changed code creates a new member
Subsystem code namingShort names for each information system or service group a member runs, such as one subsystem per system or per business domainUse one subsystem per independently operated system so access rights and ownership stay clearSubsystem codes become part of service identifiers that consumers already call, so renaming breaks client configurations
Service code namingDescriptive codes per service, with a versioning convention agreed up front, such as a version suffix for breaking changesChoose stable, business-meaningful names when the service contract is first publishedConsumers reference service codes in their own systems and access rules, so changing a code is a migration project rather than an edit
Naming character and length rulesCharacter sets and length limits defined by the X-Road version in useAgree the convention before the first member is onboarded, and check it against your version's documentationIdentifiers that break the rules cannot be registered, and fixing them later repeats the registration steps
Reserved and special valuesCodes the platform or the operator reserves for internal or management useCheck reserved values before you build your naming plan so your codes do not collide with themA collision discovered after members are registered forces identifier changes across the ecosystem
Federation readinessIdentifiers that remain unique when another X-Road ecosystem is connected laterPlan for federation if your ecosystem may exchange data with other operators or countriesTwo ecosystems with overlapping instance or class choices cannot be federated cleanly without rework

How member codes and subsystem codes form service identifiers

A service in X-Road is addressed by a chain of identifiers: the instance identifier, the member class, the member code, the subsystem code and the service code. Together they form the service identifier that every message carries, so the naming decisions made for members and subsystems become part of every request your ecosystem will ever send. The instance identifier names the X-Road instance itself, the member class groups members by type (for example, a government or commercial organization), the member code identifies the organization within that class, the subsystem code identifies one information system the organization publishes or consumes services through, and the service code names the individual service. Before you finalize any of these, confirm the exact format rules and character limits for each field against the current X-Road Security Server user guide and your chosen release, since the operator's Central Server and the Security Servers must agree on them.

Treat each identifier as permanent. A renamed member code or subsystem code does not simply update a label: the old identifier stops matching the access rights that were granted to it, the service references held by consumers, and the client registrations stored on the Security Servers. Consumers that call the old service identifier will fail until every affected access right and registration is recreated under the new one, and the message log will show two different identities for the same organization. Plan a naming convention that will still read correctly after a merger, a change of legal name or a restructured department. Record who owns each code, how codes are reserved, and what the approval path is for a change, because the operator must coordinate that change across the ecosystem.

Global groups and local access rights both depend on these identifiers. Access rights on a Security Server point to specific services by their full identifiers, and global groups on the Central Server collect members and subsystems so that access can be granted to a set at once. Any change to a member or subsystem code therefore affects group membership and every access right built on it. The sibling topic on global groups covers how those groups are built and maintained. For this topic, the practical point is that identifier design determines how much work a future change will cost, so settle the member class and code scheme before the first group or access right is created.

Sequence for agreeing identifiers before the first member registers

This sequence settles the instance identifier, member classes, member codes, subsystem names and the written scheme before any organization registers. The result is an identifier design the governing body has approved, tested on a non-production instance and checked against global configuration before onboarding starts.

  1. Confirm the instance identifier with the governing body

    Before any member is added, confirm the instance identifier with the body that governs the X-Road instance, whether a national authority, a sector operator or a consortium. This identifier is the top-level part of every member and service identifier, so it must be agreed first and recorded in the governing body's own documents. Ask the governing body to confirm in writing which identifier applies and who may change it. The step is done when the agreed value appears in the operator's design record and the governing body has signed off on it.

  2. Agree member classes and their meaning

    Agree which member classes the instance will use, for example government, commercial or non-profit, and write down what each class means and who qualifies for it. The operator and governing body should decide together, because the class becomes part of identifiers that other members will read and trust. Check each class against a real example of an organization you expect to onboard, and confirm that none of them falls into two classes. The step is done when every class has a written definition, an eligibility rule and at least one agreed example.

  3. Define the member code assignment rule

    Write the rule that produces member codes, such as whether codes come from a national business register, a government register or a sequence the operator issues. Decide who assigns codes, how a code is checked for uniqueness within its class, and what happens if an organization changes its legal name or merges with another member. Test the rule against several sample organizations, including one with a similar name to another member. The step is done when the rule is written, a named person owns it and the sample cases give the same code each time.

  4. Define subsystem naming

    Decide how subsystem codes are named so that each one describes a function the member runs, for example a system or application name, without exposing internal detail that could change. Agree whether subsystem codes must be unique within a member and how they relate to the service identifiers other members will see. Ask the member's technical lead to confirm that the names will still make sense if the internal system is replaced. The step is done when a naming pattern is documented with two or three examples and each example has been reviewed by the member.

  5. Document the identifier scheme

    Write one document that combines the instance identifier, member classes, member code rule, subsystem naming pattern, worked examples and the owner of each decision. State which parts are fixed and which can be changed, and what approval a change would need from the governing body. Circulate the document to the governing body, the member operators and any security or compliance reviewers. The step is done when the document has a version number, an owner and written approval from the governing body.

  6. Test registration on a non-production instance

    Run the agreed scheme on a non-production X-Road instance before it is used for live members. Register a small set of test members across each member class, add subsystems, and confirm that the identifiers appear as the design intends in the test environment. Include at least one case that the rules are meant to reject, such as a duplicate code or a subsystem name that breaks the pattern, and confirm the rejection happens. The step is done when the test results are recorded and any gap has been fixed in the scheme document.

  7. Check identifiers in global configuration before onboarding

    Before the first live member registers, check that the identifiers in the global configuration match the approved scheme exactly, including instance identifier, member classes and member codes. Confirm the configuration distributed to member Security Servers carries the same values, and record who checked it and when. Because identifiers are hard to change once members rely on them, treat this check as a gate for onboarding. The step is done when a signed checklist shows the global configuration matches the approved document and the governing body has accepted the result.

Security and governance risks in identifier design

Identifiers are visible to every member and are shared across the ecosystem, so a weak naming or class decision spreads to all connected organizations. The cards below cover the governance failures that most often turn an identifier plan into a long-term exposure, and what the operator should check before the first member is registered.

Identifiers that expose structure

Member codes and subsystem codes appear in service identifiers that other members see when they consume services. A code that spells out an internal department, project or unit name can reveal how the organization is built, which parties hold sensitive functions, or which systems exist. Ask each member to propose codes from public or agreed naming, and review every proposal for internal terms before approval. Treat the naming standard as a document the operator owns and publishes to members.

Inconsistent class assignment

Member classes such as government, commercial or non-profit are meant to tell trust decisions apart. If the operator assigns a class by convenience, or two staff members read the same eligibility rule differently, services from similar organizations end up in different classes and access decisions stop meaning what members expect. Write the eligibility criteria for each class, record the evidence reviewed for each admission, and have a second person confirm the class before the request is approved.

Unapproved members receiving classes

A class label signals a level of trust to every other member, so granting one before the organization is fully vetted creates a gap between the label and the facts. This can happen when a provisional registration is approved in the system before the legal or mandate checks finish. Confirm the admission steps in order, keep the class unassigned until all checks pass, and make sure the approval record shows who verified the eligibility basis and when.

Identifiers reused after departure

When a member leaves, its member code or subsystem code can look free to reassign. A new organization that receives the old code can inherit the history, trust and service references tied to the former holder, and logs or consumer configurations may still point to it. Define a retirement rule that keeps retired codes out of circulation for a period set by the operator's policy, and confirm with the operator's legal and records teams how long that period should be.

Weak change control on the naming register

The register of member classes, codes and identifiers is the reference every later decision depends on. If changes are made directly in the configuration without a request, reviewer and record, the register drifts from the agreed design and nobody can explain why an entry exists. Put changes behind a documented request and approval workflow, keep a dated change log, and review the register on a fixed schedule with the operator's governance owner.

Questions teams ask before designing identifiers

What does the identifier design work cost, and what drives the effort?

The cost is mostly the time of people who must agree on the scheme: governance, legal, the operator's technical lead and whoever will admit members later. Effort rises with the number of member classes, the number of organization types that must be distinguished, whether member codes come from an existing national or sector register, and whether the instance will federate with other X-Road instances. Ask any partner for a quote built from a written list of decisions, the workshops needed to settle them and the documents to produce, such as the identifier rules and onboarding guidance. Design work is largely one-time, while later changes to classes or codes recur as new rules, migrations or support questions.

How long does it take to settle the identifier scheme?

The duration is set by governance, not by the software. Settling the scheme takes as long as it takes the owning authority and its legal advisers to agree which organization types exist, who may hold each member class, who assigns member codes and how subsystem codes are named. Teams that already have a register of public and private bodies usually finish sooner than teams starting from nothing. Ask for a schedule that lists the decision owners and approval steps, and check whether the scheme must be approved before the Central Server is installed, because the instance identifier is part of that installation.

Can our own team design the identifiers without outside help?

Yes, a technical team can draft the scheme alone if the governance decisions have already been made and written down. The harder part is the policy work: deciding who is eligible for each class, how disputes are handled and how the scheme fits national or sector rules. An outside partner can help with the technical review, worked examples and test configurations, but cannot decide policy for your authority. Check whether your team has someone who has operated X-Road before, because identifier mistakes often surface only during onboarding of the first members.

What input do governance and legal staff need to provide?

Governance and legal staff must supply the rules that the identifiers encode. Typically this includes the list of organization types that may join, the legal basis for each member class, the authority that issues or verifies member codes, rules for organizations that split, merge or change legal form, and any obligations to publish or share the membership list. They should also confirm the trademark and product registration position and any agreements needed with other operators if federation is planned. Ask for these inputs as signed decisions so the technical design can cite them.

What is the difference between a member class and a member code?

A member class groups members of the same kind, such as government, commercial or non-profit, while a member code identifies one organization within that class. Together with the instance identifier and, for services, a subsystem code, they form the identifiers that appear in every exchanged message. Illustrative example: a single organization in one class would be addressed by its instance, class and code, and each of its information systems would add a subsystem code. Confirm the exact format and allowed characters in the X-Road documentation for your release before publishing any scheme.

Can identifiers be changed after members have joined?

Treat identifiers as hard to change. Service identifiers are embedded in access rights, service descriptions, logs and message records, so renaming a class, member code or subsystem code affects every party that has already connected. Changing them usually means re-registering members, updating access rights and preserving the evidential link between old and new identifiers in the message log. Some changes may be impossible without a new instance. Before onboarding the first member, have governance sign off the scheme, write down the migration rules that would apply to any exception, and ask any partner to document the impact of each proposed change.

What should we check in the scheme before onboarding members?

Check that every organization type has an unambiguous class, that member codes can be assigned without collisions, and that subsystem codes describe services in a way the owning authority can maintain over time. Test the full identifier path on a non-production instance, including service descriptions and access rights, and confirm that log entries carry the identifiers you expect. Ask whether the release you plan to run documents the same format, and review the scheme with the people who will answer onboarding questions, because they will be the first to see gaps.

What a later identifier change costs an ecosystem

An identifier is never just a label in X-Road. The instance identifier, the member class, the member code and the subsystem code together form the service and member identifiers that every Security Server, access right, global group and client configuration refers to. Once members have registered Security Servers, requested services and granted access rights under those identifiers, a change to any part of the chain is not a rename. It is a migration: each registration has to be re-created or re-pointed, each access right has to follow the service to its new identifier, and each consumer has to reconfigure the clients that call it. Global groups on the Central Server reference member identifiers as well, so they need the same treatment. Ask your Central Server operator to list every object that references the identifier you propose to change before you commit to a date.

Federation multiplies the cost. If your instance is federated with another X-Road ecosystem, partner operators hold configuration that names your identifiers and will need to accept the new values, agree on a cut-over window and update their own Security Servers. Because federation does not pass through intermediate instances, a partner cannot repair the gap for members of a third ecosystem. Confirm with each partner operator which configuration they hold, who approves changes on their side and how long they need to re-verify trust. Keep in mind that the owning authority and any service provider share these duties, so the change plan should name who signs off for each side. The exact effort depends on how many members, subsystems and services you have, and you should ask for that inventory in writing before any quote.

Plan the change as a parallel run with a rollback path. Stand up the new identifiers alongside the old ones on a non-production instance, register one pilot member and one service end to end, and test consumer calls, access rights and global group membership against the new values. For production, keep the old registrations and access rights active until every consumer has moved and message logs show no traffic on the old identifiers. Record a rollback point for each step, including the configuration backups you take from the Central Server and Security Servers before each change, and rehearse the reversal with the operator. Confirm the exact steps for your X-Road version in the official documentation and with NIIS release notes before you schedule the change, since procedures differ between 7.x releases and X-Road 8.

How DeployOpen scopes X-Road identifier design

DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including X-Road. For identifier design, we start from the instance identifier, member classes and subsystem codes your ecosystem needs, then record those decisions in writing before any Central Server or Security Server is configured.

How we scope

  • Engagements are fixed-scope, with the identifier model, member classes and decision record agreed in writing before work starts.
  • We confirm which ecosystem roles, member types and federation plans the identifier scheme must cover.
  • We list which identifiers are permanent once members register, and which decisions need sign-off from your governance body.

How we build

  • We draft the instance identifier, member class and member code conventions and check them against your organization's naming rules.
  • We define subsystem code and service identifier patterns, then test how they read in service descriptions and access rights.
  • We verify identifier choices on a non-production X-Road instance before they are used for member registration.

How we hand over

  • You receive a written identifier model with the rationale for each member class and code, and the rules for adding new members.
  • We provide a register of reserved codes, change-control steps and the approval path for any later identifier change.
  • We walk your platform, governance and onboarding teams through the model so they can apply it without us.

How we support

  • Ongoing support and periodic reviews of identifier rules are available as a retainer as new members and services join.
  • We can review onboarding requests against the identifier model so that new registrations follow the agreed conventions.
  • When a federation or X-Road upgrade is planned, we can reassess identifier impacts before the change is scheduled.

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.