Node SDK

group

Associate a user with an organization or account.

groupId and either userId or anonymousId are required. Use safe organization attributes such as plan, seat count, industry, or lifecycle state.

Optional fields are context, timestamp, integrations, and messageId. The callback is the second argument.