1. Verify
  2. eIDs
  3. Danish MitID Erhverv

Employees and company signatories

There are two kinds of business user roles in MitID: employees and company signatories. Employees can be anyone who works at the company, and are registered by the company in MitID Erhverv. Company signatories are allowed to act on behalf of the company itself, and could e.g. be the CEO of a company. A natural person can have both an employee and a company signatory role in the same company.

A company signatory is also sometimes referred to as a management representative (DK: ledelsesrepræsentant), or as someone who is authorized to represent the company.

Employees are registered in MitID Erhverv, and are looked up based on the MitID UUID. Company signatories can be registered in MitID Erhverv, but this is not mandatory. For companies without MitID Erhverv, company signatories are instead looked up in Erhvervsstyrelsen’s systems. This is done via the CPR number of the user. So if you need company signatories, we will ask users for their CPR number when they log in with MitID Erhverv.

CPR number input

If you don’t need company signatories, you can Disable signatories for MitID business logins in your Idura Dashboard in eID providers > Danish MitID.

Disable signatories for MitID business logins

Token examples

MitID for company signatories

{
"identityscheme": "dkmitid",
Overall eID used to authenticate
"nameidentifier": "0f9960a0d28d4353a3e2ea07f8ffa185",
Legacy format of 'sub'
"sub": "{0f9960a0-d28d-4353-a3e2-ea07f8ffa185}",
Persistent pseudonym. Uniquely identifies an eID user (per Idura Verify tenant)
"uuid": "74ffcd31-fbaf-4c33-bdac-169f25c1e416",
Danish MitID Person-ID (a persistent pseudonym which the DK authorities can use to identify the person). For citizens, it identifies the natural person. For employees, it identifies the legal person.
"cprNumberIdentifier": "2101270087",
Danish SSN (CPR Nummer)
"birthdate": "1927-01-21",
"age": "93",
"name": "Ditlev Von Testesen",
"cvrNumberIdentifier": "12345678",
Danish Business Registry Number (CVR Nummer)
"2.5.4.10": "Testorganisation nr. 12345678",
Company Name
"companySignatory": "true",
Company signatories can enter legal agreements on behalf of the company (DK readers: Ledelsesrepræsentant/tegningsberettiget)
"country": "DK"
}

MitID Erhverv (MitID for business)

{
"identityscheme": "dkmitid",
Overall eID used to authenticate
"nameidentifier": "159d89fca2db4300a52ab7865f7b1ff3",
Legacy format of 'sub'
"sub": "{159d89fc-a2db-4300-a52a-b7865f7b1ff3}",
Persistent pseudonym. Uniquely identifies an eID user (per Idura Verify tenant)
"uuid": "3c6d9757-1e70-438a-8dd3-5f84398c2e25",
Danish MitID Person-ID (a persistent pseudonym which the DK authorities can use to identify the person). For citizens, it identifies the natural person. For employees, it identifies the legal person.
"cvrNumberIdentifier": "12345678",
Danish Business Registry Number (CVR Nummer)
"2.5.4.10": "Testorganisation nr. 12345678",
Company Name
"name": "Firstname Lastname",
"employee": "true",
"country": "DK",
"productionUnit": "1092738120",
P-number: production unit number; denotes the addresses where the company has employees and/or carries out economic activity
"ridNumberIdentifier": "8636770830",
Danish NemID Employee-ID (a persistent pseudonym representing a legal person)
"seNumber": "98202298"
SE-number: administrative unit an employee belongs to (in case a company runs different activities under the same legal entity)
}

The sub, nameidentifier and uuid values here will not be the same as for a corresponding citizen-MitID login, even if the user chose to use their personal MitID for login.

Collect CPR numbers (optional)

Business users in MitID Erhverv (both employees and company signatories) may not always have CPR numbers associated with their profiles.

CPR numbers are also not required for accessing information about the business entities where the user holds a position as an employee. Idura relies on the user’s UUID to retrieve this information from the MitID Erhverv API. Therefore, if you don’t need CPR numbers in business logins, no additional configuration is required. Note that if you need company signatories, we will ask users for their CPR number even if your application does not ask for them (see above).

If you do require CPR numbers, you can collect them by enabling the two toggles on the Danish MitID eID provider screen on the Idura Dashboard:

  • Add CPR for MitID logins
  • CPR Optional

CPR toggles

This feature can be useful in a scenario where you offer both MitID citizen logins and business logins, and require CPR numbers for the citizen logins. Please note that it is only possible to collect CPR numbers for company signatories. Employee identities are legally distinct from the personal identity of the natural person, and it is not legal to correlate the two.

Request business logins

You can request a login in business context via the following acr_values: urn:grn:authn:dk:mitid:business. Alternatively, you can include a login_hint query parameter in the authorize request. This will allow company signatories and employees to log in to your website or application with their personal MitID or their dedicated employee MitID (depending on how their company set them up in MitID Erhverv).

  • login_hint=business will allow logging in as a business user.
  • login_hint=business_optional will give an option to choose to log in as a private individual, or a business user.

You can determine which kind of option the user selected by inspecting the claim values in the JWT payload.

  • Employee logins will have an employee claim with value true.
  • Company signatory logins will have a companySignatory claim with value true.
  • Private logins will have neither of the above.

Prefill VAT ID (CVR number)

If you already have an expectation of what company the user will login on behalf of, you can prefill the VAT ID (CVR number) to limit their selection choice (if multiple roles in the same company) or skip the company selector all together.

  • When activating MitID Erhverv via acr_values: urn:grn:authn:dk:mitid:business: login_hint=vatid:DK<CVR>
  • When activating MitID Erhverv via login_hint: login_hint=business vatid:DK<CVR>

Test users

To test business logins with MitID Erhverv, you need to create a test organization and a test user, then connect the user to the organization as an employee. Follow the steps below, or watch the video walkthrough.

1. Create a test organization

  1. Go to the test organization creation page and fill out the form. You can use your personal email for the organization admin, and later for the employee as well.

  2. The wizard generates an organization admin account. You choose the password, and the username is autogenerated. Then follow Link til MitID Erhverv - IntTest to log in as the organization admin.

    Nemlog-in: organization created

  3. Open the Test login tab and log in as the organization admin with the username and password.

    Nemlog-in test login

  4. Go to EIA, the NemLog-in IdP portal. Under Settings (Indstillinger > Identifikationsmidler), enable personal MitID for the organization.

    Private MitID

2. Create a test user

Create the same test user in two tools: the MitID Test Tool and the MitID Simulator. The test user must have the same CPR number in both tools, and can have the same user ID.

  1. Open the MitID Test Tool. Use AUTOFILL to generate identity details, then click Create Identity.

  2. Open the MitID Simulator. Enter the same identity details, including the CPR number, and check Private MitID, as shown in the screenshot below.

    MitID Simulator form

In general, and most likely for MitID Erhverv production, CPR numbers are expected to be optional.

3. Connect the test user to the organization as an employee

  1. As the organization admin, create an employee for your test user in EIA. Use the test user from step 2. The organization admin account can’t log in as an employee.

  2. You’ll receive an activation link at the email address you entered for the employee. Follow the link to log in as the employee.

    If the activation email doesn’t arrive, log in to EIA as an employee on the MitID tab instead. (You need to log out of your EIA admin account first, or use a different browser.)

    If you followed the steps correctly, your EIA dashboard now looks like this:

    EIA dashboard after employee activation. The dashboard shows both an employee user and an
administrator user.

  3. If the organization admin has enabled personal MitID, the employee can use their own test MitID for activation. It is still required to provide a unique employee MitID username during enrolment.

Add SE numbers, P numbers, and RID to test users

As the organization admin, you can include additional information when you create test users, such as:

  • SE number (administrative unit a user belongs to)
  • P number (location a user is associated with)
  • RID (Resource Identification Number)

You can configure this in EIA under Settings (Indstillinger > Oprettelse af brugere):

Extra fields for test users in EIA

If you enable P and SE numbers after creating test users, the existing users won’t get the values automatically. Update each user in the user configuration section, under Organisation:

Add P and SE numbers to users

Video walkthrough