Users and groups
Add people, put them in companies and teams, make admins, add extra mail addresses, suspend and remove accounts, all kept in one directory every app reads.
Everyone who uses the box is one account in the directory, LLDAP. Groups in the same directory say which companies and teams a person belongs to, and every app reads them from there. No app keeps its own list of people, so adding someone once is enough.
The groups
| Group | Who is in it |
|---|---|
admins | people who run the whole box |
org-<org> | the people of one company |
org-<org>-admins | the people who run that company |
team-<org>-<team> | one team inside a company |
suspended | accounts that may not sign in anywhere |
The company and team groups come from the box's state: thx org add and thx team add create them, as adding a company explains.
Add a person
sudo thx user add ana --email ana@acme.example --name "Ana BenÃtez" --org acme --team sales
The first word after add is the username (uid). --email is the person's main mail address. --org and --team can repeat; a bare --team TEAM works when exactly one --org is given, otherwise write --team acme/sales. --org-admin acme makes the person an admin of that company, and --admin an admin of the whole box.
Without a password flag, the command prints a generated initial password once. Give it to the person by a safe route; it is never shown again. Two other choices: --password-stdin reads the password from standard input, and --no-password creates the account without one.
The very first box admin also receives the address noreply@<apps domain>, which the box sends invitations and notices from.
From the admin panel in the Home app, adding a person sends an invitation mail with a one-time link to choose a password, and says which apps are waiting for them.
Change groups and passwords
sudo thx user join ana team-acme-supportandsudo thx user leave ana team-acme-supportadd and remove one group:admins,org-ORG,org-ORG-adminsorteam-ORG-TEAM.sudo thx user passwd anasets a new password, read as one line from standard input. People can also change their own password in the Home app.sudo thx user alias add ana ventas@acme.examplegives Ana a second address, on any domain the box serves.alias rmtakes it away. A person can have up to 16 extra addresses.
Suspend, resume, remove
sudo thx user suspend ana stops every sign-in at once: the account joins suspended and its password is replaced. sudo thx user resume ana lifts that; then set a password with thx user passwd, because the old one is gone.
sudo thx user rm ana deletes the account. thx refuses to suspend or remove the last admin who can still sign in: make another admin first. If the removed person held noreply@, the address passes to an admin who remains.
What there is not yet
There is no password-reset mail: someone who forgets their password asks an admin. The directory keeps no last sign-in time.