Key concepts

This page presents the notions the console handles and how they fit together. The screens that manage them each have their own page: Client and Tenants, Users, Services, Plans and Features.

Overview

In one sentence: a user of a client receives, in a tenant of that client, a role and plans; each plan belongs to a service and opens a selection of that service’s features. The platform’s services ask subscription, on each access, what the user holds in the tenant (see From plans to rights).

Two families of objects stand apart:

  • the catalogue, shared by every client: the services, their features and the plans (Reglab Platform menu);
  • the subscribers: the clients, their tenants, their users and those users’ access to the tenants (Tenant management menu).

Client

A client is a customer organisation of the platform. It has a name (unique), a description and, once an administrator has set them:

  • a Subdomain: the label on which the client’s front answers;
  • a Realm: the Keycloak realm the client’s users sign in to (see Realm).

A client groups its tenants and its users.

Realm

A realm is a space of accounts in Keycloak. The realms the platform accepts are set by configuration; among them, the platform realms (mla and shared by default) are those of the platform administrators and of the service accounts.

A user name is unique only inside its realm: to subscription, a user is the pair (realm, login). The services that ask subscription therefore send the realm that issued the user’s token; with no realm, subscription answers for the platform’s default realm.

Tenant

A tenant is an isolated RegLab environment that belongs to a client. A client may have several tenants. A tenant has a name (unique), a description and a public id (tenantId): this is what the services receive to know which tenant a user works in.

A tenant has a status:

Status Meaning
ACTIVE (active) The tenant grants access, within its validity window.
SUSPENDED (suspended) Suspended by a platform administrator: everything is kept, no access, until it is reactivated.
PENDING_DELETION (deletion scheduled) No access; can be restored until its purge date, then purged.
DELETED (deleted) Purged: the access rights are removed, the tenant’s row is kept and its name stays reserved. This status is final.

Only an active tenant, within its validity window, grants access to the services. The lifecycle is described in Client and Tenants and The tenant lifecycle.

User

A user is an account of the platform: a login in a realm, an e-mail, a first name and a last name. It belongs to one client, and one only.

A user may join:

  • the tenants of their own client;
  • the tenants of guest clients, if an administrator has made them Multi-client and declared them a guest of those clients (for a consultant or an auditor, for example).

A user can be disabled: they then have access to no tenant at all. See Users.

Access (a user in a tenant)

An access, or membership, is a user’s place in a tenant. It is made of:

  • one role in the tenant, whatever their plans (see Role);
  • a list of plans: at most one plan per service. Without a plan of a service, that service stays closed to the user in that tenant.

A member holds at least one plan: removing their last plan takes them out of the tenant.

An access can be suspended: the role and plans stay, but no service lets the user into the tenant until the access is reactivated.

Access is given from Client and Tenants or from the tenant access list; every change is recorded in the Access history. When their rights change, the user receives an e-mail, except in a temporary tenant.

Role

Two roles must not be confused:

Role Where it is given What it allows
Platform administrator (ROLE_ADMIN) In Keycloak, on a platform realm Using the subscription console and its APIs.
Role in a tenant: Member or Admin In the user’s access to the tenant Member: “Uses the features of their plans.” Admin: “Also manages the other users’ access to the tenant.”

A role in a tenant counts for that tenant only: a user can be the admin of one tenant and a member of another. The services read it in subscription’s answer; CIRCÉ, for example, makes a tenant’s admin the administrator of that tenant in CIRCÉ.

Service

A service is a RegLab product (for example irrc, CIRCÉ’s service). It has a name (unique) and a description. Each service has its own features and plans.

The service’s name is the one the applications ask subscription for: CIRCÉ asks for the plans of the irrc service, the assistant for those of the irrc, stress and library services. See Services.

Feature

A feature is a capability of a service, named (uniquely within its service) and described by a description. The applications open a screen or an action when the user’s plan carries the matching feature: anacredit or pilar3 in CIRCÉ, assistant for the assistant, for example.

Each service has a base feature, created with it: holding it makes the user a member of the service. See Features.

Plan

A plan is an offer on a service: it belongs to a service and opens a selection of its features. A plan always carries its service’s base feature, and two plans of the same service cannot open exactly the same features. A plan’s name is unique across the whole platform. See Plans.

Contract

A tenant’s contract is its validity window: a start date (Valid from) and an end of access (End of access (excluded)), each optional. Outside that window, the tenant’s users have no access. A tenant with no end date is open-ended: access never stops on its own.

Before a contract ends, subscription sends reminders by e-mail to MLA and to the tenant’s admins. The Client and Tenants page shows the contracts ending soon and the reminders sent.

The relations in tables

Client and tenant

A client A tenant
has zero, one or several tenants belongs to a client

Client and user

A client A user
has zero, one or several users belongs to one client only (their home client)
can receive guest users from other clients can be a guest of other clients if Multi-client

Client and realm

A client A realm
has at most one realm, where all its users sign in can serve several clients

User and tenant (the access)

A user, in a tenant Constraint
has one role Member or Admin
holds at least one plan at most one plan per service
can be suspended role and plans kept, no access

Service, plan and feature

Object Relation Constraint
Service → plan a service has zero, one or several plans; a plan belongs to one service a service that has plans cannot be deleted
Service → feature a service has its features, base among them; a feature belongs to a service a feature’s name is unique within its service
Plan ↔︎ feature a plan opens several features; a feature can be opened by several plans a plan opens only features of its own service, base included; two plans of a service do not open the same ones
Plan ↔︎ access a plan can be held by users in several tenants a plan that is held cannot be deleted