Users, groups and permissions¶
Users, in the sidebar, is where you manage who can use Aegis and what they can do there. You need to be an administrator to open it. It has three tabs: Users, Groups and Permissions.
Two separate questions¶
Aegis keeps two things apart:
- What someone receives: their teams and role. These decide which rules reach their computer.
- What someone can do in the admin UI: their permission level.
A developer can receive a full set of rules and have no admin access at all, and an administrator doesn't have to receive anything.
There are four permission levels, and each includes the ones below it:
| Level | Can |
|---|---|
| Reader | Sign in and manage their own account. No admin screens |
| Collaborator | Read the rules, repositories and activity, and preview what people receive. Change nothing |
| Editor | Also change rules and repositories, and manage variables |
| Administrator | Also manage people, permissions, settings and backups |
Someone can hold a level everywhere, or only on particular repositories. An editor for
payments-api can change that repository's rules and nobody else's. When several levels apply,
the highest one wins.
The Users tab¶
Each person is one row. What they can do follows from the credentials they hold:
- A password lets them sign in to the admin UI.
- An API key lets the
aegiscommand fetch their rules.
Many people have both. The Access column shows a UI and a CLI marker for each person, lit when they have that credential, and their level.
The table also flags people who need attention:
- no level: they can sign in but see no admin screens. A Reader with a password is in the same position. When they sign in, they see a page saying an administrator needs to set them up.
- ⚠ no role: they have an API key but no role, so they receive no settings, skills or agents, and syncing fails for them.
- email unconfirmed: they can't sign in until they confirm it. Trying to sign in sends them a fresh link.
- email change pending: their old address keeps working until they confirm the new one.
Inviting a person¶
The easiest way to add someone is Invite by email. They set up their own account, so you never see their password or their API key.
An invitation asks for:
- their email address
- a permission level
- optionally, what they receive: one or more teams, one role, and where files are delivered (see Delivery)
A Reader has no admin screens, so a Reader invitation has to include teams and a role.
The person opens the emailed link and:
- sees who invited them, to which organisation, and at what level
- chooses an account name (Aegis suggests one from their email address)
- chooses a password, unless they're a Reader, who has nothing to sign in to
- if the invitation included teams and a role, sees their API key, once
Accepting confirms their email address and signs them in.
The link works once. Invitations waiting for an answer are listed under Pending invitations, with who sent each one and when it expires:
- Resend emails a new link. The old link stops working.
- Withdraw cancels the invitation, and the link stops working straight away.
You can't invite an address that already has an account or a pending invitation.
An invitation that includes teams and a role uses a seat on your plan. If no seat is free, it's refused.
People who join by email domain¶
You can also let people join on their own by signing up with an address on a domain you've verified. Set this up in Settings → Email domains.
They appear in the table like anyone else. Their name is their email address, they have a password and the level you chose for the domain, and they have no API key, team or role until you give them one.
Adding a user¶
+ Add user creates an account directly. It asks for:
- a name: letters, digits,
.,_and-, up to 64 characters - a password, an API key, or both
- an email address, if they have a password
- for an API key, one or more teams, one role, and where files are delivered
- a permission level
The API key appears once, in a banner above the table. Copy it then, because Aegis can't show it again. If it's lost, rotate it.
A key looks like aeg_k3xq9a2m_…. The eight characters after aeg_ are the key id, which the
Users screen shows in place of the key. You and the developer can compare ids to check which key
is on their machine without either of you revealing it.
Delivery¶
Each person with an API key has a Delivers to setting:
- Machine and repositories: they can receive files in their home folder as well as in each
repository. They still have to agree on each computer, with
aegis manage. - Repositories only: Aegis writes nothing outside repositories. Use this for contractors and anyone whose computer also holds other clients' work. They don't receive the global rules, which go to the home folder.
New accounts start on Machine and repositories.
A person's window¶
Select a row to open a window about that person. It has two tabs.
Overview has a card for each part of the account, each linking to where you change it:
- Sign-in and API key: their credentials, the key id, when the key was last used, and how long a previous key keeps working
- Permission level
- Groups: each group they're in, and how
- Teams and role
- Delivery
- Where the level comes from: every grant behind their level
What they receive shows the files they get. See Previewing what someone receives.
Delete user is at the bottom of the window.
Editing a user¶
Edit, on the Sign-in or API key card, changes the email address, sets or removes the password, and changes the level. Setting or removing a password signs the person out everywhere. A change to a confirmed email address only takes effect once they confirm the new one.
If they use two-step verification, Edit also offers Remove it, for someone who has lost their phone and their recovery codes. It signs them out everywhere, and they sign in with just their password until they set it up again.
For the API key you can:
- issue one, which needs at least one team and a role
- rotate it: the old key keeps working for 24 hours, so the developer can switch over first. The new key is shown once, with the time the old one stops.
- rotate it now: the old key stops working straight away. Use this if a key has leaked.
- end the grace period, so a previous key stops working now
- revoke it: the current key and any previous one stop working
Everyone has to keep at least one credential. To remove both, delete the person.
Groups¶
A group is a set of people that holds permission levels. It delivers nothing, which is how it differs from a team. The Groups tab lists every group, with Everyone first.
- Add group creates an empty group, or one made from a role. A group made from a role is the usual way to give everyone in a job a level.
- Members can be individual users, whole teams and whole roles. A team or role in a group stays linked: people who join it later are in the group too.
- Everyone contains every person in the organisation and can't be edited, but you can grant it a level.
Deleting a group removes its members and its grants.
Permissions¶
The Permissions tab is where levels are given out and checked. A level is given by a grant: one user or group, one level, everywhere or on one repository. Teams and roles can't hold a grant themselves; put them in a group and grant the group.
+ Grant gives a user or a group a level, everywhere or on particular repositories. Before you confirm, it lists in plain words what the grant allows, such as "Everyone in Developers will be able to: …". Settings, users, variables and backups can only be granted everywhere.
Check access shows where one user's or group's levels come from: each level, the grant behind it, and where it applies. Pick a repository to see only what applies there.
The grants table lists every grant. You can change a grant's level or revoke it. To change who holds it or where it applies, revoke it and grant again. Each user or group can hold one grant per place.
What Aegis refuses¶
- Leaving the organisation without an administrator. Any change that would remove the last one is refused, whether it's deleting a person, lowering a level, removing a password or changing a group.
- A grant on a repository that isn't registered. Register it on Repositories first.