Skip to main content
Organization events are published when organization-level changes occur, such as organization creation, updates, or member management. These events are delivered through the platform events system.

Developer quickstart

Minimal handler (organization only)

Checklist

  • Enforce idempotency with eventId to avoid creating duplicate resources.
  • For plan/domain changes, re-sync dependent services (billing, DNS, SSO).
  • For member events, respect role/permission propagation delays.

Event types

Organization lifecycle events

organization:created

Triggered when a new organization is created. Payload structure:
Event context:
  • Triggered during organization setup process
  • May be part of a larger user onboarding flow
  • Often followed by initial configuration events

organization:updated

Triggered when an organization’s details are updated. Payload structure:
Common update scenarios:
  • Plan changes (free to paid, plan upgrades/downgrades)
  • Organization name or domain changes
  • Settings updates (timezone, locale, etc.)
  • Metadata modifications

organization:deleted

Triggered when an organization is deleted. Payload structure:
Important notes:
  • This is a destructive operation
  • All associated data (tickets, accounts, users) are also affected
  • Consider implementing appropriate cleanup logic

Organization membership events

organization:member-joined

Triggered when a user joins an organization. Payload structure:
Common scenarios:
  • New employee onboarding
  • Contractor or external user access
  • User role changes that affect organization membership
  • Bulk user imports

Event structure

All organization events follow the standard platform event structure:

Special considerations

Organization creation flow

When an organization is created, it typically triggers a cascade of events:
  1. organization:created - The organization itself is created
  2. organization:member-joined - The organization creator becomes the first member
  3. Additional setup events (teams, initial configuration)

Actor context

For organization events, the actor field represents:
  • Creation: The user creating the organization (may be a system user for automated processes)
  • Updates: The admin or owner making changes
  • Member join: The user being added or the admin adding them
  • Deletion: The admin or owner performing the deletion

Integration examples

Organization provisioning

Member onboarding

Plan change handling

Organization cleanup

Security considerations

Sensitive data

Organization events may contain sensitive information:
  • Billing details in plan changes
  • Domain information that could reveal company structure
  • User email addresses and roles

Access control

  • Ensure subscribers have appropriate permissions
  • Consider scoping subscriptions based on sensitivity levels
  • Implement proper authentication for webhook endpoints

Monitoring and alerting

Key metrics to track

  1. Organization growth: Track creation and deletion rates
  2. Plan changes: Monitor upgrade/downgrade patterns
  3. Member growth: Track user addition rates per organization
  4. Churn indicators: Monitor organizations with recent plan downgrades

Alert scenarios

Best practices

  1. Event ordering: Process organization events before related entity events
  2. Idempotency: Use eventId to prevent duplicate processing
  3. Cascading effects: Be prepared for organization events to trigger additional events
  4. Data consistency: Ensure external systems reflect organization state changes
  5. Performance: Organization events can trigger expensive operations, consider async processing

Error handling

Common error scenarios and handling strategies:

Event frequency

Organization events are typically low-frequency events:
  • Creation: Usually during initial setup or business growth
  • Updates: Periodic configuration changes, plan modifications
  • Member joins: Varies by organization size and growth phase
  • Deletion: Rare, but critical for cleanup processes
However, during bulk operations or migrations, these events can spike significantly.