Skip to main content

Organization and Access Events

For the fields that every event has, refer to Event Reference.

The events on this page have no md-project, md-environment, or other attributes that a destination can select. A destination with Attributes never receives them. To select some of these events, use a condition.

Organization​

Event typeOccurs when
organization.createdAn organization was created.
organization.updatedThe name or settings of an organization changed.

data.entity​

FieldTypeValue
idUUIDThe ID of the organization.
identifierstringThe identifier of the organization, such as acme.
namestringThe name of the organization.
settingsobject or nullThe settings of the organization: default_bundle_access (none or all_projects), naming_convention, and default_tags.
owner_account_idUUIDThe ID of the person that owns the organization.
created_at, updated_attime

data.attributes​

md-id, the identifier of the organization.

Example conditions​

To sendEventsCondition
Updates that leave a naming convention setorganization.updated.data.entity.settings.naming_convention != null
Updates that give new projects access to every bundleorganization.updated.data.entity.settings.default_bundle_access == "all_projects"

Access token​

Event typeOccurs when
access_token.createdAn access token was issued to a person or a service account.
access_token.revokedAn access token was revoked.

data.entity​

FieldTypeValue
idUUIDThe ID of the access token.
namestringThe name of the access token.
token_prefixstringThe first characters of the token, to identify it.
scopeslist of stringsThe scopes of the token.
expires_attimeWhen the token expires.
last_used_attime or nullWhen the token was last used.
revoked_attime or nullWhen the token was revoked.
account_idUUID or nullThe person that the token belongs to.
service_account_idUUID or nullThe service account that the token belongs to.
organization_idUUIDThe ID of the organization.
created_at, updated_attime

Example conditions​

To sendEventsCondition
Tokens for service accounts onlyaccess_token.created.data.entity.service_account_id != null
Tokens that a person revoked for someone elseaccess_token.revoked.data.entity.account_id != .data.actor.account_id

Service account​

Event typeOccurs when
service_account.createdA service account was created.
service_account.updatedThe name or description of a service account changed.
service_account.deletedA service account was deleted.

data.entity​

FieldTypeValue
idUUIDThe ID of the service account.
namestringThe name of the service account.
descriptionstring or nullThe description of the service account.
last_used_attime or nullWhen the service account was last used.
organization_idUUIDThe ID of the organization.
created_at, updated_attime

Example conditions​

To sendEventsCondition
Service accounts with a name that starts with ci-service_account.*.data.entity.name \| startswith("ci-")

Group​

Event typeOccurs when
group.createdA group was created.
group.updatedThe name, description, or role of a group changed.
group.deletedA group was deleted.

data.entity​

FieldTypeValue
idUUIDThe ID of the group.
namestringThe name of the group.
descriptionstring or nullThe description of the group.
rolestringorganization.admin for a group of organization administrators, or custom.
scim_external_idstring or nullThe ID of the group in your identity provider, when SCIM manages the group.
organization_idUUIDThe ID of the organization.
created_at, updated_attime

data.attributes​

md-id, the ID of the group.

Example conditions​

To sendEventsCondition
Changes to administrator groupsgroup.*.data.entity.role == "organization.admin"
Groups that a person changed, not SCIMgroup.*.data.entity.scim_external_id == null

Group membership​

Event typeOccurs when
group_membership.addedA person or a service account was added to a group.
group_membership.removedA person or a service account was removed from a group.

data.entity​

FieldTypeValue
idUUIDThe ID of the membership.
group_idUUIDThe ID of the group.
group_namestringThe name of the group.
account_idUUIDFor a person: the ID of the person.
account_emailstringFor a person: the email of the person.
account_namestringFor a person: the first and last name, or the email when the person has neither.
service_account_idUUIDFor a service account: the ID of the service account.
service_account_namestringFor a service account: the name of the service account.
created_at, updated_attime

The membership of a person has the account_* fields. The membership of a service account has the service_account_* fields.

Example​

{
"type": "group_membership.added",
"data": {
"entity": {
"id": "3e5a7c9b-1d2f-4a6e-8b0c-5d7f9a1c3e62",
"group_id": "95b33344-c409-4ac4-9a6a-1885d671c01d",
"group_name": "Platform",
"account_id": "7d1f0b8e-3c2a-4f5e-9b6d-2a8c4e1f0d3b",
"account_email": "sam@example.com",
"account_name": "Sam Lee",
"created_at": "2026-11-19T15:04:11Z",
"updated_at": "2026-11-19T15:04:11Z"
},
"actor": {
"account_id": "8d2f4c61-7a0e-4b9d-9c53-1f6a2e8b4d07",
"name": "Jane Doe",
"organization_id": "5a2c8e4f-1b7d-4e3a-9c6f-8d0b2a4e6c17"
},
"metadata": { "credential": "session" },
"attributes": {}
}
}

Example conditions​

To sendEventsCondition
People added to one groupgroup_membership.added.data.entity.group_name == "Platform"
Service accounts added to any groupgroup_membership.added.data.entity.service_account_id != null
People from outside your email domaingroup_membership.added.data.entity.account_email != null and (.data.entity.account_email \| endswith("@example.com") \| not)

Group invitation​

Event typeOccurs when
group_invitation.acceptedA person accepted an invitation to a group. Massdriver records it, so it has no data.actor.
group_invitation.revokedAn invitation was revoked before the person accepted it.

data.entity​

FieldTypeValue
idUUIDThe ID of the invitation.
emailstringThe email that the invitation was sent to.
group_idUUIDThe ID of the group.
created_at, updated_attime

Custom attribute​

Event typeOccurs when
custom_attribute.createdA custom attribute key was added to the organization.
custom_attribute.updatedThe allowed values of a custom attribute, or if it is required, changed.
custom_attribute.deletedA custom attribute key was removed from the organization.

data.entity​

FieldTypeValue
idUUIDThe ID of the custom attribute.
keystringThe key, such as team.
scopestringWhere the attribute is set: project, environment, component, or repo.
requiredbooleantrue when each entity of the scope must have a value.
valueslist of stringsThe allowed values.
organization_idUUIDThe ID of the organization.
created_at, updated_attime

Example conditions​

To sendEventsCondition
Changes to the team attributecustom_attribute.*.data.entity.key == "team"

Event destination​

Event typeOccurs when
event_destination.createdA destination was added.
event_destination.updatedThe name, settings, credentials, events, attributes, or condition of a destination changed.
event_destination.pausedA destination was paused, by a person or because its sends failed for too long.
event_destination.resumedA destination was resumed.
event_destination.redeliveredFailed deliveries of a destination were queued to be sent again.
event_destination.laggingThe oldest event that waits to be sent to an active destination is older than the lag limit (15 minutes by default).
event_destination.caught_upA destination that was lagging is within the lag limit again.
event_destination.deletedA destination was deleted.

data.entity​

The entity does not include the settings, credentials, or signing secret of the destination.

FieldTypeValue
idUUIDThe ID of the destination.
namestringThe name of the destination.
adapterstringhttp, slack, service_now, or pager_duty.
statusstringactive or paused.
event_typeslist of stringsThe Events of the destination.
attributesmapThe Attributes of the destination.
conditionstring or nullThe Condition of the destination.
lagging_sincetime or nullWhen the destination started to lag. With microseconds.
organization_idUUIDThe ID of the organization.
created_at, updated_attime

data.metadata​

On event_destination.lagging and event_destination.caught_up, lag_seconds is the number of seconds since the oldest event that waits to be sent occurred.

Example conditions​

To sendEventsCondition
Automatic pauses onlyevent_destination.paused.data.actor == null
Lag of more than one hourevent_destination.lagging.data.metadata.lag_seconds > 3600
Changes to Slack destinationsevent_destination.*.data.entity.adapter == "slack"

Account​

Massdriver records account.registered when a person signs up. A person does not belong to an organization at sign up, so no destination receives this event.