Users
A user is one identified person in your organization. Identity › Audience › Users lists them all: the people your sites already know, and anyone staff add by address, such as a tester.
When a user row is created
Section titled “When a user row is created”Your organization has one user row per person, across every site, and each email address belongs to at most one user. EdgeKit creates the row the first time it has an email address for the person:
- they register or sign in on one of your sites;
- they buy an offer at checkout;
- they join a newsletter list with their email address;
- they sign in through your identity provider, if your sites use one;
- EdgeKit grants access for a synced billing account whose email address belongs to no user yet (see How access follows your billing provider). The address starts unverified;
- staff seat them in a user organization (see User organizations);
- staff add them on the Users screen (see Add a user).
A sync from your billing provider creates no user. It stores the billing account and keeps whatever user the account is already linked to. A billing account no checkout linked stays without a user until EdgeKit grants it access.
Anonymous browsing never creates a user. Until someone is identified, EdgeKit keeps their anonymous state for their browser as a device.
The Users screen
Section titled “The Users screen”One row per user, newest first:
- User: the name, or a dash when there is none, and the email address. Either opens the user’s screen.
- Status: Verified (the user confirmed their address, or staff verified it), Unverified (registered, never confirmed), or Erased (see Erased users).
- Sites: the sites the user is attached to. A user is attached to a site when they arrive there, for example by registering, buying or joining a list on it. No site yet means they are attached to none, which is normal for someone staff added or seated in a user organization.
- Organizations: the user organizations the user is a member of, each with the user’s role in it.
- Grants: how many live grants the user holds directly. A grant held by one of their user organizations is counted on that organization, not here.
- Registered: when the user row was created.
What a site attachment means
Section titled “What a site attachment means”Attachment records where a user has been seen. It is not a boundary: the user is the same row on every site, and a grant reaches every site its product covers whether or not the user is attached there. A user who registered on one site and later reads on another stays one user.
A user’s screen
Section titled “A user’s screen”Open a user from the list. The screen has ten sections.
| Section | What it shows | Can staff change it |
|---|---|---|
| User | First name and last name, and when the user registered | Yes, Owner and Admin |
| The current address, whether it is verified, and a form to correct it | Yes, Owner and Admin | |
| Sites | The sites the user is attached to, and a form to add them to more | Yes, Owner and Admin |
| Credentials | Stored sign-in credentials linked to the account, such as a social sign-in | No |
| Organizations | The user organizations the user belongs to, with their role in each | No, see below |
| Grants | The grants the user holds directly, with state, start and expiry | No |
| Newsletters | Where the user stands on each newsletter list | No |
| Profile | The profile document EdgeKit derived for the user, one per site | No |
| Export | Requests a copy of the user’s data, and lists past exports | Yes, Owner and Admin |
| Erase | An action that erases the user | Yes, Owner and Admin |
The Grants section shows the 50 most recent grants and says how many there are in total when there are more. Each grant opens its own screen; see Grants. Roles and seats are changed from the user organization’s screen; see User organizations. A profile document is replaced whole every time EdgeKit rebuilds it; see Profile. No profile document means nothing has built one for this user yet, which is not the same as an empty profile. Export sends a copy of the user’s data to the staff member who asks; see Export a user’s data.
Credentials lists stored credentials only. A user who signs in with a code or link sent to their address has none, and that is normal. Unlinking a social sign-in is the user’s own action; staff cannot do it.
Add a user
Section titled “Add a user”Add a person by email address, for example a colleague to put in a test group. This needs the Owner or Admin role and console access to all your sites.
- Open Identity › Audience › Users and select Add user.
- Enter the Email, and optionally a First name and Last name.
- Under Sites, select the sites the user belongs to. You can select none.
- Select Add user. The user’s screen opens.
What happens:
- The user starts Unverified, attached to the sites you selected. EdgeKit sends them no email.
- A user attached to no site has no profile until they join one.
- They sign in on your sites like anyone else, with a code or link sent to that address.
- If another user already has the address, nothing is added:
A user with that address already exists..
Add a user to a site
Section titled “Add a user to a site”Attach a user who already exists to more sites. This needs the Owner or Admin role and console access to all your sites.
- Open the user from Identity › Audience › Users.
- In Sites, select the sites to add under Add to.
- Select Add to site.
EdgeKit builds the user’s profile on each site you add. A user cannot be removed from a site.
Verify a user’s email address
Section titled “Verify a user’s email address”Use this when you know the address belongs to the person, for example a colleague you added. It needs the Owner or Admin role.
- Open the user from Identity › Audience › Users.
- In Email, select Mark verified.
What happens:
- The user becomes Verified at once, and the console records who verified them.
- The user is signed out everywhere, and any link to your identity provider that never confirmed this address is removed. Whoever signed in before the address was proven may not have been its owner.
- A verified address counts as proven everywhere an emailed code would: on their next sign-in, a domain set to auto-join seats them in its user organization (see User organizations).
- If the address changed since you opened the page, nothing is verified:
That address changed since this page loaded. Reload and check it before verifying..
There is no action to unverify.
Correct a user’s name
Section titled “Correct a user’s name”- Open the user from Identity › Audience › Users.
- In User, change First name or Last name. Each takes up to 200 characters.
- Save.
The display name is rebuilt from the first and last name. The change applies at once. The user’s traits are not editable here.
Correct a user’s email address
Section titled “Correct a user’s email address”Use this to fix an address, not to make a change the user would make themselves.
- Open the user from Identity › Audience › Users.
- In Email, enter the New email.
- Save.
What happens:
- The user is signed out everywhere: every sign-in session they hold is revoked at once. A browser that already holds their cookies can lag behind; see How quickly an ended session stops working.
- The new address is stored unverified. Nothing proves it belongs to the user, so EdgeKit does not mark it verified.
- If another user already has the address, the change is refused with
That address is already in use..
An erased user has no Email or Erase section.
Erased users
Section titled “Erased users”Erasing a user anonymises the row in place. The user id, their site attachments and their grants stay. The name, the email address and the traits the user wrote themselves are removed, the address becomes a placeholder, and every sign-in session is revoked. An erased user stays in the list, marked Erased, and still counts in its totals.
You can erase a user in three ways. All three make the same change. Erasing a user who is already erased changes nothing and reports success, so a repeated request is safe.
- In the console, with the Owner or Admin role.
- From your server, by the user’s EdgeKit user id, with an API key that holds
users:erase. This works for every user. - From your server, by the user’s subject at your identity provider, with an API key that holds
users:erase.
The erasure cannot be undone.
Erase a user in the console
Section titled “Erase a user in the console”- Open the user from Identity › Audience › Users.
- In Erase, select Erase user.
- Confirm with Erase.
Erase a user by EdgeKit user id
Section titled “Erase a user by EdgeKit user id”Issue the key with Can erase users (users:erase) selected; see Issue and revoke API keys. The user id is on the user’s screen.
curl -X POST https://<tenant>.edgekit.ai/v1/id/erase \ -H 'Authorization: Bearer <api-key>' \ -H 'x-edgekit-site-id: site_example' \ -H 'content-type: application/json' \ -d '{"userId": "01926f3a-8b4c-7d2e-9f10-2a3b4c5d6e7f"}'const response = await fetch('https://<tenant>.edgekit.ai/v1/id/erase', { method: 'POST', headers: { Authorization: `Bearer ${process.env.EDGEKIT_API_KEY}`, 'x-edgekit-site-id': 'site_example', 'content-type': 'application/json', }, body: JSON.stringify({ userId: '01926f3a-8b4c-7d2e-9f10-2a3b4c5d6e7f' }),});
const { userId, applied } = await response.json();200withapplied: trueerased the user.applied: falsemeans the user was already erased.403 forbidden,This key does not hold users:erase.: the key was issued withoutusers:erase.404 not_found,No user with that id.: your organization has no user with that id.
See the API reference.
Erase a user by identity provider subject
Section titled “Erase a user by identity provider subject”Your server names the user’s subject at your identity provider, with an API key that holds users:erase, the same
permission as erasing by EdgeKit user id; without it the answer is 403. A user with no link to your identity provider, such
as one who has only ever signed in on your site with an emailed code, has no subject to name; erase them by EdgeKit
user id instead.
curl -X POST https://<tenant>.edgekit.ai/v1/id/external/erase \ -H 'Authorization: Bearer <api-key>' \ -H 'x-edgekit-site-id: site_example' \ -H 'content-type: application/json' \ -d '{"subject": "user-6475b8"}'const response = await fetch( 'https://<tenant>.edgekit.ai/v1/id/external/erase', { method: 'POST', headers: { Authorization: `Bearer ${process.env.EDGEKIT_API_KEY}`, 'x-edgekit-site-id': 'site_example', 'content-type': 'application/json', }, body: JSON.stringify({ subject: 'user-6475b8' }), },);
const { userId, applied } = await response.json();200withapplied: trueerased the user.applied: falsemeans the user was already erased.404 not_found,No user is bound to that subject.: no user is linked to that subject.503 service_unavailable,This tenant has no identity provider.: your organization has no identity provider set up, so there is no subject to name.
See the API reference.
On both routes the key’s site pin is checked, but the erasure is not limited to that site: a key pinned to any of your sites can erase any of your users.