Skip to main content
There are two ways to bring many people into your organization:
  • 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.
A row is not ready when:
  • 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.
One refused row never undoes the others. If an invitation email can’t be sent, its row says so, and you can copy the link from the person’s invitation later. You can upload at most 200 rows at a time, and send at most 500 invitations from files per hour.

Import people through the admin API

Use this when you move from another sign-in system and don’t want people to start over.
The API key needs the people:manage power. Each call takes at most 500 people.
array
required
The people to create. Each entry has:
  • email (required)
  • first_name, last_name
  • role: a role key. Blank means your default role. It must be within the key maker’s own access.
  • password_hash and password_hasher: the person’s password hash from your old system, and what made it.
An address already in your organization is skipped, never changed. Importing does not mark anyone’s email as verified.

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.
Every change to the check emails your Owners, because Aiveth sends passwords to this address.

The request your old system receives

At a marked person’s first sign-in, Aiveth sends a POST signed the same way as webhooks, with the webhook-id, webhook-timestamp and webhook-signature headers:
Answer 200 with:
Your system must answer within 3 seconds. If the answer is 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.
Verify the signature before you look at the password, and never log the request body.
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:
This needs people:manage and works once a day. An organization made through self sign-up must verify a domain before it can send these emails.

Errors