Skip to Content
Platform
Installation
Environment InitializationUsers, Permissions and Seed Content

Users, Permissions and Seed Content

Once Datacollection and Licensing are installed and registered, each realm needs its first administrator, users need permissions, and the modules need their content. This page describes these steps, and how MDM provides the global entities context of IAM.

First administrator

Each IAM realm receives its first administrator from the values of its release, described on Platform and IAM Releases:

  • iam.keycloak.adminUsername and iam.keycloak.adminEmail create the user in the realm. No password is set: the user sets one through the “Forgot Password” link of the sign-in page, which sends an e-mail to adminEmail. This needs the SMTP settings of the release, and adminEmail is required in production.
  • iam.backend.superAdminUsername makes that user an IAM super admin. Its default is admin, so set it to the same value as iam.keycloak.adminUsername.
  • With an identity provider that uses e-mail addresses as user names, such as Entra ID, both values are the e-mail address.

The Keycloak server administrator, iam.keycloak.auth.adminUser in the master realm, is a different account. Its password is generated at installation and stored in the Secret <release>-keycloak-admin-secret, under the key admin-password. It is used to administer Keycloak itself, not to sign in to IAM or the modules. See IAM Installation.

Permissions

Sign in to IAM as the first administrator at https://<INTERNAL_IAM_HOST>, or https://<EXTERNAL_IAM_HOST> for the portal, and grant permissions to users and user groups; see Manage User Permissions and Manage User Group Permissions.

A permission names a module by its application ID, the roles it grants in that module, and the context in which they apply: specific entities or entity groups, or none for a permission without a context. The roles that IAM offers for a module come from the module’s registration, so grant permissions for a module once it has registered. The organization-wide entity group all scopes a permission to every entity; see Organization-wide entity group.

The table lists the application ID that a permission names for each module, with examples of the roles it can grant:

ModuleApplication IDExamples of roles
IAMIAM-Modulesuper_admin (role type action)
DatacollectionDataCollection-Moduletechnical_admin (role type baseRole); all (role types granularRole and dataCollectionRole), scoped to entities
MDMMDM-ModuleThe roles that MDM offers
LicensinglicensingThe role IDs of the Licensing database content (role types internal and external)

Module content

Each module needs its content before users can work in it.

ModuleContent
DatacollectionRead from the Git group global.gitlab.contentGroup on global.gitlab.hostname, with the token in global.gitlab.apiToken. How content is published to that group is described in the Datacollection documentation.
LicensingRestored with the database bundle of database.init.defaultRestore. Then deploy the client content manually through the Database Manager UI and import the system settings; see Licensing: Initialization.

Global entities

IAM keeps one global context for entities and entity groups, which it uses to show and scope permissions. It is shown under Settings → Global Contexts, as the Global Entities and Global Entity Groups cards. The module that registers the getEntities and getEntityGroups endpoints last provides it.

MDM provides it: DataCollection-Module and MDM-Module both register the MDM entity endpoints, and MDM-Module registers second. The registration ConfigMap of Licensing leaves out getEntities and getEntityGroups, so Licensing does not take it over; see Registration endpoints.

After every installation or upgrade of Datacollection, the Global Entities card of each IAM instance shows the Datacollection entity URLs: rsh.hubGetEntitiesUrl on the internal instance and rsh.portalGetEntitiesUrl on the external one. Check the connection with Test Global Context Connections, and correct a wrong context with Update Global Contexts or by running the Datacollection registration again, as described under Upgrades in Place.