Skip to content

Group Schema ​

Groups represent entities that can be associated with events, such as users or teams.

Configuration ​

Group ​

FieldTypeRequiredDescription
namestringyesGroup name
descriptionstringnoGroup context description
identifiedBystringnoIdentifying property
passthroughbooleannoAllow arbitrary properties
propertiesProperty[]noGroup properties

Example ​

yaml
groups:
  - name: User
    description: The user that triggered the event.
    identifiedBy: UserID
    properties:
      - name: UserID
        description: The ID of the user.
        type: number
      - name: Role
        description: The user's role.
        type: [admin, member]

  - name: Team
    description: The team of the user.
    identifiedBy: TeamID
    properties:
      - name: TeamID
        description: The team's ID.
        type: number
      - name: Plan
        description: The team's subscription plan.
        type: [FREE, TRIAL, PAID]