SDK reference
identify() / group()
Attach human identity to users and accounts so answers read "Kari at Acme".
identify() and group() are how you attach human-readable identity to the
opaque IDs Atune already sees in behavior. Everything else works without them —
identity just makes answers legible.
import { identify, group } from "atune";
await identify(userId, { name: "Kari Nordmann", email: "kari@acme.no" });
await group(accountId, { company: "Acme AS" });So answers read "Kari at Acme", not "user u_123".
identify(userId, traits)
Associates a user with human traits.
| Argument | Type | Notes |
|---|---|---|
userId | string | Your own user identifier. |
traits | object | Personal data such as name, email. |
group(accountId, traits)
Associates an account (team / org / tenant) with traits.
| Argument | Type | Notes |
|---|---|---|
accountId | string | Your own account identifier. |
traits | object | Account traits such as company. |
Gated behind your DPA
identify() and group() carry personal data, so they flow only under an
accepted data-processing agreement. See
Identity, PII & the DPA.