Manage logins for your organization
A login belongs to the organization, not to one application page. The engine supplies the page that manages logins, so no application declares one.
The page is at /matterdata and its interface is English. This guide names each control and
says what it does.
Read Who administers an organization for what the engine’s administration roles are and what they do not grant.
Open the administration page
Section titled “Open the administration page”Open /matterdata on your organization’s own address:
https://my-club.matterdata.example/matterdataOnly a login that holds one of the engine’s administration roles can open a page there. Any other signed-in person gets a 403. No menu links to the page, so type the address.
The page shows only the tabs that your roles open:
| Tab | What it holds | Who sees it |
|---|---|---|
| Overview | six counts: logins, administrators, disabled logins, live sessions, due jobs, and failing jobs | all three roles |
| Logins | every login of the organization, and the acts on it | Administrator, Login manager |
| Groups | the groups, their members, and their roles | Administrator, Login manager |
| Apps | the installed applications, and what each role may do | all three roles |
| Jobs | the job log, and the nightly reset of a demonstration organization | Administrator |
| Audit log | the organization’s event log | Administrator, Auditor |
| Usage | the storage and the number of rows | all three roles |
Overview also carries one sentence about whether this organization resets itself every night. Read Read the job log and Reset a demonstration organization every night for the Jobs tab.
Invite someone with a link
Section titled “Invite someone with a link”- Open Logins and find Invite account.
- Enter the recipient’s email address. This is their username when signing in.
- Under Roles for each application, tick every role the person holds there. Leave all boxes clear for no role in that application. Under Administration roles, tick an engine role only if the person administers the organization. The boxes show only the roles you may give.
- Press Invite account, then Copy link.
- Share the link with the recipient yourself. The engine does not send email.
The recipient opens the link, chooses and confirms a password, then signs in with their email address. Passwords must contain 8 to 1024 characters. Setup also works without JavaScript. If copying is unavailable, select the link in its field and copy it manually.
An invitation expires after 7 days and can set a password once. Opening it does not consume it. The account shows Invitation pending and cannot sign in until a password is set. You can change its roles before the recipient accepts. A pending account does not count toward the safeguard that prevents removing the last usable Administrator.
The link is shown only when generated. To replace a lost or expired link, press Generate new invitation link on the pending account. This invalidates the previous link. A disabled account cannot accept an invitation. Setting its password through the administrator’s password control also makes its invitation unusable.
Invitation creation and replacement appear in the audit log as admin.authority events.
Successful setup appears as auth.invitation_accepted, attributed to the recipient and kept for
365 days. Neither event contains the link or password.
Create a login
Section titled “Create a login”- Open Logins.
- Find Create login and type the address in Email.
- Under Roles, tick every role the login holds. The boxes are one application’s roles. Leave them all clear for no role.
- Read the password in Password and write it down.
- Press Create login.
The password field is editable. Type your own password to use one you agreed by telephone. A password needs at least 8 characters. The generated one is 18 random bytes, so it is about 144 bits.
Four submissions are refused with a sentence, and none of them creates a login:
- a value that is not an e-mail address, or one longer than 254 characters.
- an address that another login already has.
- a role that your application does not declare.
- a password shorter than 8 characters.
A refused form keeps what you typed, the password included. Correct the field and press the button again.
An address is stored in lower case, so Chef@Example.org and chef@example.org are one login.
After creating the login, use its application role controls to grant or change access.
Which application the roles apply to
Section titled “Which application the roles apply to”A role belongs to one application. An organization can hold several, so the Roles boxes of the create form are one application’s:
- An organization with one application offers that application’s roles.
- An organization whose applications include one at
mount: /offers that application’s roles. - Any other organization with several applications offers no boxes, and a login created there holds a role in no application.
Give a login several roles in one application
Section titled “Give a login several roles in one application”A login can hold any number of an application’s roles. It can open every page that one of its
roles can open, and it sees the rows that any of its roles can see. A teacher who is also a
parent at the school holds teacher and guardian, and sees her classes and her own child.
Change the roles in an application
Section titled “Change the roles in an application”- Find the login under Logins.
- Find the Roles boxes labeled with the application’s name.
- Tick the roles the login holds. Clear a box to revoke that role.
- Press Save roles below those boxes.
Each save changes only that application. Existing sessions use the new roles on their next request. Other applications’ roles and the engine’s roles stay unchanged. Applications that failed to load have no role boxes; repair the application before changing its roles.
You can grant yourself a role through the same controls. Each role that a save grants or revokes
is one event in the audit log (grant_role or revoke_role). The event names the
administrator, the target login, the application and the role, including for self-grants. A
save that changes nothing records nothing.
Bind a login to a record
Section titled “Bind a login to a record”An application can declare a profile: a login stands for one row of one table, for example one employee. A page such as “my time entries” reads that row. Read Profile for the declaration.
The row of a login is written when the login is created with install -login, and it can be
changed here:
- Find the login under Logins.
- Find the box named Own record (
) — . The card has one for each profile that one of the roles of the login serves. A login with no such role has no box. - Enter the number of the row. Clear the field to remove the binding.
- Press Save record.
The box asks for a number and shows no row of the application. The administration page holds no
data of the organization’s applications, so a person who administers logins and holds no role in
an application does not read that application’s names here. The number of a row is in the
address of its page in the application, for example /employees/4. The page of the
application shows which row is which.
A number that is not a row of the profile’s table is refused with a sentence, and nothing is written. A login that holds no role the profile serves is refused too, because it would read nothing.
The login reads the new row on its next request. Its open sessions stay open. Each change is one
admin.authority event in the audit log, with the act bind_profile or unbind_profile, the
profile, the new row and the row it replaced.
Give a login no role at all
Section titled “Give a login no role at all”A login with every box clear can sign in and can open no page of the application. Use it for a person who administers the organization and needs none of its data.
Give the engine’s administration roles
Section titled “Give the engine’s administration roles”The Administration roles boxes on a login’s card set the engine roles it holds directly: Administrator, Login manager, and Auditor. Tick the roles and press Save roles below those boxes.
The boxes show only the roles you may give. You may give an engine role only when you hold every right it carries, so a Login manager sees only Login manager. A role the login holds that you may not change is named below the boxes, and a save keeps it. A form that asks for more is refused with this sentence, and nothing is written:
You can give or take an administration role only when you hold every right it carries. Nothing was changed.
An engine role grants nothing inside an application. Each role that a save grants or revokes is
one grant_role or revoke_role event with the application matterdata.
A login also holds the roles of its groups. The card lists the groups under Groups, with the roles that each group gives, and the list is read-only. Change a membership on the Groups tab: see Give a group roles in several apps.
Act on one login
Section titled “Act on one login”Each login is one card under Logins. The card carries the roles, the groups, the last sign-in, the number of live sessions, and a tag for each state: Administrator (held directly or through a group), Disabled, Locked until …, and Your own login.
The acts are buttons on that card. A destructive act sits in a closed disclosure, so it takes two deliberate presses. It needs no JavaScript.
| Button | What it does |
|---|---|
| Disable login | the login cannot sign in. Its live sessions are rejected and deleted on their next request |
| Enable login | the login can sign in again. The lockout counter is cleared with it |
| Set a new password | replaces the password and clears the lockout. Sessions stay open |
| End all sessions | every device must sign in again. The password does not change |
A button that cannot apply is absent rather than disabled. A disabled login has no Disable login, and a login with no live session has no End all sessions.
A login that holds an engine role you may not give has no Set a new password, Disable login, or Generate new invitation link for you, and its card says so. With a new password you could sign in as that login.
New passwords and ended sessions are two acts on purpose. “They forgot their password” leaves their laptop signed in. “Their laptop was stolen” does not. Press both buttons when you mean both.
Keep one administrator
Section titled “Keep one administrator”The organization always keeps one enabled login that holds Administrator, directly or through a group. Clearing the last one’s Administrator box and Disable login are both refused, and so are the three group acts that would take the role away: removing the member, taking the role from the group, and deleting the group. The page shows this sentence:
This would leave no usable login with the Administrator role. Give another login the Administrator role first.
An organization with no administrator cannot administer itself. There is no higher authority inside its database, so the only way back is a command on the server.
Two properties of the rule are worth knowing:
- The count is of administrators that are not disabled. A disabled administrator does not hold the organization open. Demoting or disabling one is therefore refused while exactly one enabled administrator remains, although it takes nothing away.
- The count is inside the statement that changes the rows. Two administrators who remove each other at the same moment cannot both succeed. The second one changes nothing and reads the sentence above.
You may take the role away from your own login while another administrator remains. After that
act the page redirects to the organization’s home page, because you may no longer be able to
open /matterdata.
Grant the first administrator from the command line
Section titled “Grant the first administrator from the command line”matterdata install gives its first login the Administrator role. install -demo gives it
to exactly one login: the demonstration application’s own most privileged account.
A tenant installed with neither -email nor -demo has no login, so it has no administrator.
Two commands set the role on a tenant file directly:
matterdata grant-admin -dir data -tenant my-club -email second@example.orgmatterdata revoke-admin -dir data -tenant my-club -email former@example.orgBoth take -tenant and -email, and both print how many administrators are left. -dir is the
directory that holds one <subdomain>.db per tenant, and it defaults to data.
The authority here is the filesystem: whoever can read my-club.db can already read every
password hash in it.
grant-admin gives the login the Administrator role directly. revoke-admin takes the direct
role away. It does not change a group, and for a login that holds the role only through a group
it names the group instead. revoke-admin enforces the same last-administrator rule as the page,
and it names the repair:
"chef@example.org" is the last administrator of my-club and cannot be removed: a tenant withnone cannot administer itself, and there is no higher authority inside its file. Grant onefirst: matterdata grant-admin -dir data -tenant my-club -email <other address>Use grant-admin for a tenant that reached zero administrators anyway.
What the audit log records
Section titled “What the audit log records”Every act on a login or a group that succeeds writes one admin.authority event, and
that class is kept forever. The acts on the Jobs tab write admin.command instead, which is kept for
365 days. The actor on the event is the administrator who performed the act.
The subject is the login it was performed on.
Three cases record nothing, and each is deliberate:
- A refused act. The event is queued after the act succeeded, so the log cannot report something that did not happen.
- Reading the list of logins. Every act writes an event, so the list is reconstructable from the trail. An event per page view would put a row in a table that is never swept.
grant-adminandrevoke-admin. There is no session at the command line and therefore no actor to record. The effect is visible on the page; who caused it belongs to the server’s own record.
Read Security model for the other classes and their retentions.