Atune Docs
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.

ArgumentTypeNotes
userIdstringYour own user identifier.
traitsobjectPersonal data such as name, email.

group(accountId, traits)

Associates an account (team / org / tenant) with traits.

ArgumentTypeNotes
accountIdstringYour own account identifier.
traitsobjectAccount 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.

On this page