Skip to main content

Groups

Group Identification

A group represents each company or organization that groups your users.

You simply need to call the ‘group’ function when a new user is invited to a company or when they create one.

Each group must have a unique identifier.

Information Stored During Identification

Told has reserved some traits that carry semantic meaning for groups and handles them in special ways. You should only use reserved traits for their intended meaning.

TRAITTYPEDESCRIPTION
idStringUnique ID in your database for a group.
nameStringName of the group.
createdAtDateDate when the group’s account was first created. Segment recommends ISO-8601 date strings.
employeesStringNumber of employees in the group, typically used for companies.
planStringThe plan the group is currently on.
websiteStringWebsite of the group.
phoneStringPhone number of the group.
emailStringEmail address of the group.
addressObjectStreet address of the group. This should be a dictionary containing optional city, country, postalCode, state, or street.
avatarStringURL to an avatar image for the group.
descriptionStringDescription of the group, like their company bio.
industryStringThe industry the group is part of, or the industry the user works in.

Import

You can import your groups from your database in JSON or CSV format.

Each data entry must include a mandatory id field.

When importing groups, you can add a users field, which contains a list of user IDs associated with the group.

If the passed user does not exist, they will be created.