Users
Users are in the Tenant management › Users menu.
A user is a person’s account. It belongs to one client, its home client, and may be a guest of other clients. It has access to a tenant only through an access: a role on that tenant and at least one plan, one plan at most per service. What belongs to Keycloak (sign-in, password, sessions) is explained in Identities.
The user list
The page is titled Users: “The accounts of each client. Their access to tenants is given from the tenants tree or the tenant access list.” The header offers Import (see Import users) and New.
Above the list, the Keycloak account changes pending or failing may show: see Keycloak account changes.
For each user, the list shows:
- Username: link to their page, with the “Disabled since …” tag if they are disabled;
- First Name, Last Name, Email;
- Client: their home client, followed by “+N” if they are a guest of N other clients (tooltip “Guest of: …”);
- Last login: how long ago, the exact date and time in a tooltip; or “Never”, in grey, when no login was seen (“No login seen since logins started being recorded”).
The columns sort.
Filters
- Global search…: username, first name, last name, e-mail.
- Select a client: the users of the clients picked.
- Inactive for: Any activity, No login for 30 days, … 90 days, … 180 days, Never signed in. Each choice shows how many users it keeps. A filter in days keeps only the users with a login seen, older than that.
- Show disabled users (N): disabled users are hidden by default; the switch shows them, greyed out.
With a filter in days, the Select these N button ticks, on every page, the active users it keeps, ready for Disable. It is not offered for Never signed in: having no login seen may only mean none happened since logins started being recorded.
Actions
A user’s ⋯ menu offers View, Edit, Disable (or Enable) and Delete. Delete is greyed out while the user has access to a tenant; the tooltip says so: “Cannot be deleted while the user has access to N tenant(s).”
As soon as a user is ticked, the bar’s Disable button acts on the selection (see Disable and enable). Its arrow offers Delete for the selection (see Delete a user).
Create or edit a user
New opens Create a new User; Edit opens Edit a User.
The Account section: “The login of the account and the client it belongs to.”
| Field | Required | Checks and hint |
|---|---|---|
| Realm | no | The realms the platform accepts; on creation, the default realm is already chosen. Hint: “The Keycloak realm the account logs in with; leave the default unless the user belongs to another realm.” When editing: “Change the realm only to correct an account registered under the wrong realm.” |
| Username | yes | Unique within its realm, checked while typing: “Another user of this realm already has this username.” |
| Client name | yes | The home client. It cannot be changed after creation. |
| Multi-client | no | “Can be made a guest of other clients’ tenants. Leave unchecked except for a consultant or an auditor.” |
| Mail language | no | Français, English, or empty (“Not set”): “The language of the mails sent to this user. Not set: the mails carry both French and English.” |
The Identity section: “Shown in the lists and on the user’s page.”
| Field | Required | Checks |
|---|---|---|
| First Name | yes | |
| Last Name | yes | |
| yes | E-mail format; unique across the whole platform, all realms together: “Another user already has this e-mail.” |
When the client has a realm, the account must be in that realm: the server refuses another one. A user still a guest of other clients cannot lose Multi-client: the box is locked, with “Still a guest of N other client(s): remove them on the user’s page before unchecking Multi-client.”
Save creates or changes the user, then goes back to the previous page. Back leaves without saving, with the Unsaved changes dialog if values were typed.
Creating a user here creates their record in subscription, not their Keycloak account. See What subscription holds, what Keycloak holds.
A user’s page
The header shows the All users link, the initials, the first and last name (or the username), then the username and the home client (link). The buttons are Access history (the history filtered on this user, see Access history) and Edit.
The page has four cards:
- Account: Active or “Disabled since …”, a sentence on what that means, the Disable or Enable button, and the Last login;
- Identity: Username, First Name, Last Name, Email (mail link), Client, Multi-client (Yes or No), Mail language;
- Guest clients: see Guest clients;
- Access to tenants: one row per tenant where the user holds a role or plans, with Tenant (link), Role, Plans, and the Suspended tag if their access there is suspended. See in the access list opens the access list filtered on this user; Give an access opens the access form with them chosen.
Guest clients
A user normally joins only the tenants of their home client. A Multi-client user may be made a guest of other clients, one client at a time, and then join their tenants like one of their own users.
The Guest clients card of the user’s page:
- without Multi-client, says “Only a multi-client user can be a guest of other clients: tick Multi-client in the edit form first.”;
- with Multi-client, lists the clients they are a guest of (or “Not a guest of any other client yet.”), each with Remove, then offers Pick a client and Add. The choice leaves out the home client and the clients already granted.
Remove asks: “Remove X as a guest of C? X is taken out of every tenant of C and will receive an e-mail about it.”
Disable and enable
Disabling a user cuts all their accesses at once, on every tenant of every client, without losing them.
Disable (⋯ menu, Account card, or the list’s bar for the selection) opens a dialog that spells out:
- Stops now: “Every access is cut, on every tenant of every client”; “The Keycloak account is disabled within a minute and its open sessions end; it is not deleted”.
- Kept: “Plans and roles on each tenant”; “Enable gives every access back as it was”.
Once confirmed: “X disabled: the Keycloak account follows within a minute”. For a selection, it applies to the active users ticked, one call each; a message says how many were disabled and how many could not be.
Enable asks “Enable X again? Their accesses come back on each tenant, and their Keycloak account is enabled within a minute.”
A disabled user stays in the list, marked as disabled. The screens show it with the Disabled tag (a tenant’s accesses, the access list). How it works is described in Deactivation.
Keycloak account changes
Disabling, enabling or deleting a user asks for a change of their Keycloak account, made in the background within the minute. While some are left, the top of the user list shows them, read again every 30 seconds:
- pending: “N Keycloak account change(s) pending:” followed by each account’s username (tooltip: its realm);
- failing: “N Keycloak account change(s) failing”, “Tried again automatically; the Keycloak account stays as it was until a try succeeds.” Each row gives the action (Disable or Enable), the user and their realm, the number of failed attempts, the date of the next try and the last error.
Nothing shows when there is none.
Delete a user
Delete (⋯ menu) asks “Delete the user X?”. The server refuses while the user has access to a tenant: remove their accesses first.
For a selection (the Disable button’s arrow, Delete), the users who still have accesses are skipped: “Delete N of these M users? K still have accesses and will be skipped.” The final message gives the number deleted, skipped and failed.
Deleting removes the user’s record and disables their Keycloak account, without deleting it.
Import users
Import opens the Import users page: “Create many accounts at once from an Excel workbook.” It has three steps.
- Prepare the file: “Start from the template: one row per user, the columns in the template’s order.” Download the template (.xlsx) downloads
userTemplate.xlsx. Its columns areUsername,Email,FirstName,LastName,ClientName(the exact name of a client) andLanguage(fr,enor empty). - Send the file: choose the Realm the accounts are created in (the default realm is already chosen), then Choose a file. A
.xlsor.xlsxfile of 50 MB at most; the import starts as soon as the file is chosen. - Check the result: “N user(s) created. N refused.”, with the time taken. The refused rows are listed: Row (the row’s number in the workbook), Username, Reason.
A row is refused when:
- a required column is empty (all but
Language): “The X column is empty.”; - the e-mail is not valid, or is already used;
- the language is neither
frnoren; - no client has that name;
- the realm chosen is not the client’s, when the client has one;
- the username is already taken in that realm.
The other rows are created; blank rows are skipped. “Fix these rows in the file and import it again: the accounts already created are left out.” Import another file goes back to step 2; Back to the users goes back to the list.
Access to tenants
The Tenant access list has no menu entry. It opens from See all N accesses in the tenants tree, See in the access list on a tenant’s or a user’s page (filtered on it), or the All accesses link of an access page. “One row per user and tenant: a role, then the plans the user is entitled to.”
The header offers New (see Give or change an access). Each row shows:
- an eye that opens the access page;
- Tenant name (link to the tenant);
- Username (link to the user), with the Disabled and Suspended tags when they apply. When neither the account nor the access is cut, the View as user link opens the support console on that tenant and user;
- Plan name: their plans on that tenant;
- Role.
The bar offers the global search, three filters (Search by tenant…, Search by plan…, Search by username…) and Delete, active as soon as a row is ticked: “Remove these N accesses? Each user loses their role and plans in that tenant and will receive an e-mail about it.” A row’s ⋯ menu offers View, Edit, Suspend access (or Reactivate access) and Delete.
Role and plans
On a tenant, a user has:
- a role: Member, who “Uses the features of their plans.”, or Admin, who “Also manages the other users’ access to the tenant.”;
- at least one plan, one plan at most per service. A service they hold no plan of stays closed to them. Plans are described in Plans.
Every access change is recorded in the Access history, and the user gets an e-mail describing their new rights.
Give or change an access
The access form, titled Create a new UserTenant, opens from New (access list), Add user (a tenant’s menu, the tenant already chosen) or Give an access (a tenant’s or a user’s page, the one or the other already chosen). Edit opens Edit a UserTenant.
Who and where: “A user of the client, on one of its tenants.”
- Client (creation only, required): choosing the client fills the next two lists.
- Tenant name: a tenant of the client.
- Username: a user of the client, or a guest of the client.
As soon as the tenant and the user are chosen, the form reads what the user already holds on that tenant and shows:
- Role: Member or Admin;
- Plans, one per service: one list per service, with No plan as the empty value. “At most one plan per service; no plan leaves the service closed.”
Save is active only with at least one plan. For a user already a member, taking every plan away shows “A member holds at least one plan. To take the user out of the tenant, use Remove from the tenant.” If saving removes plans, a confirmation names them: “Remove the user’s plans X from this tenant?” The role and all the plans are saved at once.
When editing, the client, the tenant and the user are locked. For a user already a member, the Remove from the tenant button removes their role and all their plans, after the confirmation “Remove X from T? …”.
The server refuses:
- a tenant that is not active: “This tenant is not active: no access can be given or changed in it.”;
- a user who neither belongs to nor is a guest of the tenant’s client;
- two plans of the same service.
The tenant’s validity is not checked: an access can be prepared before the contract starts.
An access page
An access page opens from the eye or View. The header shows the All accesses link, the user’s username and, when it applies, the Suspended tag. The buttons are Suspend access (or Reactivate access), Remove from the tenant and Edit.
The page shows Tenant name (link), Username (link), Role, Plans (or “No plan”) and Access: Active, or “Access suspended since …”. After Remove from the tenant, the page goes back to the access list.
Suspend access to a tenant
Suspend access cuts a user’s access to one tenant only: “Suspend X’s access to T? Their role and plans stay, but no service lets them in that tenant until the access is reactivated.”
Reactivate access asks “Give X back their access to T, with their role and plans?”. The server reactivates an access only in an active tenant.
Not to be confused:
| Applies to | Cuts | |
|---|---|---|
| Suspend access | one user on one tenant | that access only |
| Disable the user | one user | all their accesses, and their Keycloak account |
| Suspend the tenant | one tenant | the access of all its users |
Who may do what
These screens are reserved to platform administrators, like the whole console; the server applies the same rule. See Rights. A tenant’s Admin role, given here, gives no access to the console.