- Invite from a CSV file in the console. Each person gets an invitation email and sets up their own sign-in.
- Import people through the admin API. You create accounts directly, and people can keep their old passwords.
Invite from a CSV file
Use this when people should accept an invitation, for example a new team.1
Open People
In the console, go to People and choose Upload CSV. You need the Manage people power.
2
Fill in the template
Choose Download template. The file has two columns,
email and role. Write the role by its key or its name. Leave it blank to use your default role.3
Check the file
Upload the file. Aiveth checks every row first without inviting anyone, and shows each row as ready or the reason it isn’t.
4
Invite
Confirm, and every ready row is invited and emailed.
- the email address isn’t valid,
- the same address appears twice in the file,
- the person is already in your organization, or
- the role isn’t one of your organization’s roles, or has more access than your own.
Import people through the admin API
Use this when you move from another sign-in system and don’t want people to start over.people:manage power. Each call takes at most 500 people.
The people to create. Each entry has:
email(required)first_name,last_namerole: a role key. Blank means your default role. It must be within the key maker’s own access.password_hashandpassword_hasher: the person’s password hash from your old system, and what made it.
The response
SDK
Passwords from your old system
How a password comes across depends on its hash:- bcrypt or Argon2id: Aiveth checks these itself. People sign in with their old password straight away, and Aiveth upgrades the hash at their next sign-in.
- Any other hash (for example Firebase scrypt or PBKDF2): Aiveth asks your old system to check the password once, at the person’s first sign-in. This only works when a password check is set up before the import (below). Otherwise the person counts as
no_password.
Set up the password check
1
Open Developers
In the console, go to Developers and find Passwords from your old system. Only an Owner can change this check.
2
Enter your old system's address
Under Your old system’s address, enter a public
https:// address. Under Ask it for, choose how many days the check runs, from 1 to 365. The default is 90.3
Save and copy the secret
The first save shows a signing secret once. Keep it to verify the requests. You can make a new secret later; the old one stops at once.
The request your old system receives
At a marked person’s first sign-in, Aiveth sends aPOST signed the same way as webhooks, with the webhook-id, webhook-timestamp and webhook-signature headers:
200 with:
true, Aiveth keeps the password with its own Argon2id hash and never asks again. Any other answer, a timeout, or a malformed reply means the password isn’t accepted this time.
Aiveth sends a password only to this address, only for a person imported with a hash it can’t check, and only during a sign-in.
After the check ends
When the check’s time runs out, or if you have no old system at all, people set a new password with “Forgot password”. To email everyone still waiting a reset link, call:people:manage and works once a day. An organization made through self sign-up must verify a domain before it can send these emails.