User events
This page documents webhook request payloads for user events. For an overview, see Webhook event types.
Detail object properties
For user events, the detail object contains the following properties from the
user resource schema:
created_atemailexternal_iddefault_group_id(returned as a string)id(returned as a string)organization_id(returned as a string)roleseparation_brand_id(returned as a string)updated_at
The separation_brand_id property is the ID of the brand the user belongs to.
It's included in the detail object for all events about users who belong to a
separated brand, including the separation events. If the user
doesn't belong to a separated brand, it isn't included in the detail object.
The property identifies the user in detail.id and subject. It doesn't
identify the destination separation. To identify the destination separation,
use the destination_separation property in the event object of the
user.separation_updated,
user.separation_cloned, and
user.separation_references_moved
events. You can also use this property for the
user.merged event when a separation migration caused
the merge.
Event types
The following sections contain example payloads and event object properties
for user event types.
| Event type | Payload and properties |
|---|---|
| zen:event-type:user.alias_changed | Support User Alias Changed |
| zen:event-type:user.created | Support User Created |
| zen:event-type:user.custom_field_changed | Support User Custom Field Changed |
| zen:event-type:user.custom_role_changed | Support User Custom Role Changed |
| zen:event-type:user.default_group_changed | Support User Default Group Changed |
| zen:event-type:user.details_changed | Support User Details Changed |
| zen:event-type:user.external_id_changed | Support User External ID Changed |
| zen:event-type:user.group_membership_created | Support User Group Membership Created |
| zen:event-type:user.group_membership_deleted | Support User Group Membership Deleted |
| zen:event-type/user.identity_changed | Support User Identity Changed |
| zen:event-type/user.identity_created | Support User Identity Created |
| zen:event-type:user.identity_deleted | Support User Identity Deleted |
| zen:event-type:user.active_changed | Support User Active Status Changed |
| zen:event-type:user.last_login_changed | Support User Last Login Changed |
| zen:event-type:user.merged | Support User Merged |
| zen:event-type:user.name_changed | Support User Name Changed |
| zen:event-type:user.notes_changed | Support User Notes Changed |
| zen:event-type:user.only_private_comments_changed | Support User Only Private Comments Status Changed |
| zen:event-type:user.organization_membership_created | Support User Organization Membership Created |
| zen:event-type:user.organization_membership_deleted | Support User Organization Membership Deleted |
| zen:event-type:user.password_changed | Support User Password Changed |
| zen:event-type:user.photo_changed | Support User Photo Changed |
| zen:event-type:user.role_changed | Support User Role Changed |
| zen:event-type:user.separation_cloned | Support User Separation Record Created |
| zen:event-type:user.separation_references_moved | Support User Separation References Moved |
| zen:event-type:user.separation_updated | Support User Separation Updated |
| zen:event-type:user.deleted | Support User Deleted |
| zen:event-type:user.suspended_changed | Support User Suspended Status Changed |
| zen:event-type:user.tags_changed | Support User Tags Changed |
| zen:event-type:user.time_zone_changed | Support User Time Zone Changed |
Support User Alias Changed
A user's alias changed.
{"type": "zen:event-type:user.alias_changed","account_id": 12514403,"id": "6b9bbadf-5725-4e92-bebe-7b71011bf5f1","subject": "zen:user:6596848315901","time": "2099-07-04T05:33:18Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-04T05:27:58Z","email": "[email protected]","external_id": "","default_group_id": "0","id": "6596848315901","organization_id": "0","role": "end-user","updated_at": "2099-07-04T05:33:18Z"},"event": {"current": "Joe","previous": "Joseph"}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| current | string | Current alias |
| previous | string | Previous alias |
Support User Created
A user was created.
{"type": "zen:event-type:user.created","account_id": 12514403,"id": "6b9bbadf-5725-4e92-bebe-7b71011bf5f1","subject": "zen:user:6596848315901","time": "2099-07-04T05:33:18Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-04T05:27:58Z","email": "[email protected]","external_id": "","default_group_id": "0","id": "6596848315901","organization_id": "0","role": "end-user","separation_brand_id": "9916303498237","updated_at": "2099-07-04T05:33:18Z"},"event": {}}
The payload contains an empty event object.
Support User Custom Field Changed
A user-created custom field was changed by an agent.
{"type": "zen:event-type:user.custom_field_changed","account_id": 9732064,"id": "697bbd67-869c-4f1f-a47c-b296258c50c8","subject": "zen:user:6596848315901","time": "2099-07-07T05:10:01Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-01T02:12:33Z","email": "[email protected]","external_id": "3","group_id": "4","id": "6596848315901","organization_id": "5","role": "agent","updated_at": "2099-07-05T01:58:48Z"},"event": {"current": {"value": true},"field": {"id": "6607814943229","title": "checkbox_3b02","type": "checkbox"},"previous": {"value": false}}}
The event uses a different schema for a custom field with the lookup relationship field type:
{"type": "zen:event-type:user.custom_field_changed","account_id": 9732064,"id": "697bbd67-869c-4f1f-a47c-b296258c50c8","subject": "zen:user:6596848315901","time": "2099-07-07T05:10:01Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-01T02:12:33Z","email": "[email protected]","external_id": "3","group_id": "4","id": "6596848315901","organization_id": "5","role": "agent","updated_at": "2099-07-05T01:58:48Z"},"event": {"current": {"relationship_target": "user","id": "2"},"custom_field": {"id": "6600020807549","title": "lookup_cuf1","type": "lookup"},"previous": {"relationship_target": "user","id": "1"}}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| current | object | Contains the current custom field value |
| current.value | Current field value. If field.type is "lookup", this property is not included | |
| current.relationship_target | string | Current type of object the lookup relationship field is targeting. Possible values are "ticket", "user" and "organization". Only included if custom_field.type is "lookup" |
| current.id | string | Current id of the object the lookup relationship field is targeting. Only included if custom_field.type is "lookup" |
| field | object | Contains the field's configuration |
| field.id | string | id for the custom field |
| field.title | string | Custom field name |
| field.type | string | Field data type. Possible values are "checkbox", "date", "decimal", "integer", "lookup", "regex", "tagger", "text", and "textarea" |
| previous | object | Contains the previous custom field value |
| previous.value | Previous field value. If field.type is "lookup", this property is not included | |
| previous.relationship_target | string | Previous type of object the lookup relationship field is targeting. Possible values are "ticket", "user" and "organization". Only included if custom_field.type is "lookup" |
| previous.id | string | Previous id of the object the lookup relationship field is targeting. Only included if custom_field.type is "lookup" |
Support User Custom Role Changed
A user's custom role changed.
{"type": "zen:event-type:user.custom_role_changed","account_id": 12514403,"id": "6b9bbadf-5725-4e92-bebe-7b71011bf5f1","subject": "zen:user:6596848315901","time": "2099-07-04T05:33:18Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-04T05:27:58Z","email": "[email protected]","external_id": "","default_group_id": "0","id": "6596848315901","organization_id": "0","role": "end-user","updated_at": "2099-07-04T05:33:18Z"},"event": {"current": "1","previous": "4"}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| current | string | Current permission set id for the user's custom role |
| previous | string | Previous permission set id for the user's custom role |
Support User Default Group Changed
A user's default group changed.
{"type": "zen:event-type:user.default_group_changed","account_id": 12514403,"id": "6b9bbadf-5725-4e92-bebe-7b71011bf5f1","subject": "zen:user:6596848315901","time": "2099-07-04T05:33:18Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-04T05:27:58Z","email": "[email protected]","external_id": "","default_group_id": "0","id": "6596848315901","organization_id": "0","role": "end-user","updated_at": "2099-07-04T05:33:18Z"},"event": {"current": "1","previous": "2"}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| current | string | Current group id |
| previous | string | Previous group id |
Support User Details Changed
A user's details changed.
{"type": "zen:event-type:user.details_changed","account_id": 12514403,"id": "6b9bbadf-5725-4e92-bebe-7b71011bf5f1","subject": "zen:user:6596848315901","time": "2099-07-04T05:33:18Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-04T05:27:58Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6596848315901","organization_id": "0","role": "end-user","updated_at": "2099-07-04T05:33:18Z"},"event": {"current": "User's printer was on fire","previous": ""}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| current | string | Current user details |
| previous | string | Previous user details |
Support User External ID Changed
A user's external id changed.
{"type": "zen:event-type:user.external_id_changed","account_id": 12514403,"id": "6b9bbadf-5725-4e92-bebe-7b71011bf5f1","subject": "zen:user:6596848315901","time": "2099-07-04T05:33:18Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-04T05:27:58Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6596848315901","organization_id": "0","role": "end-user","updated_at": "2099-07-04T05:33:18Z"},"event": {"current": "1","previous": "2"}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| current | string | Current external id |
| previous | string | Previous external id |
Support User Group Membership Created
A user was added to a group.
{"type": "zen:event-type:user.group_membership_created","account_id": 12514403,"id": "6b9bbadf-5725-4e92-bebe-7b71011bf5f1","subject": "zen:user:6596848315901","time": "2099-07-04T05:33:18Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-04T05:27:58Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6596848315901","organization_id": "0","role": "end-user","updated_at": "2099-07-04T05:33:18Z"},"event": {"group": {"id": "1"}}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| group | object | Contains the group id |
| group.id | string | id of the group |
Support User Group Membership Deleted
A user was removed from a group.
{"type": "zen:event-type:user.group_membership_deleted","account_id": 12514403,"id": "6b9bbadf-5725-4e92-bebe-7b71011bf5f1","subject": "zen:user:6596848315901","time": "2099-07-04T05:33:18Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-04T05:27:58Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6596848315901","organization_id": "0","role": "end-user","updated_at": "2099-07-04T05:33:18Z"},"event": {"group": {"id": "1"}}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| group | object | Contains the group id |
| group.id | string | id of the group |
Support User Identity Changed
A user's identity changed.
{"type": "zen:event-type:user.identity_changed","account_id": 12514403,"id": "6b9bbadf-5725-4e92-bebe-7b71011bf5f1","subject": "zen:user:6596848315901","time": "2099-07-04T05:33:18Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-04T05:27:58Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6596848315901","organization_id": "0","role": "end-user","updated_at": "2099-07-04T05:33:18Z"},"event": {"current": {"id": "1","primary": true,"type": "email","value": "[email protected]"},"previous": {"id": "2","primary": true,"type": "email","value": "[email protected]"}}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| current | object | Current user identity. For object properties, see the user identity resource schema |
| previous | object | Previous user identity. For object properties, see the user identity resource schema |
Support User Identity Created
A user's identity was created.
{"type": "zen:event-type:user.identity_created","account_id": 13390837,"id": "40b97155-4255-4637-b4ca-c611a5b5cf68","subject": "zen:user:6600130024829","time": "2099-07-05T01:58:48Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-05T01:58:48Z","email": "[email protected]","external_id": "","default_group_id": "0","id": "6600130024829","organization_id": "0","role": "agent","updated_at": "2099-07-05T01:58:48Z"},"event": {"identity": {"id": "6600130025725","primary": true,"type": "email","value": "[email protected]"}}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| identity | object | User identity. For object properties, see the user identity resource schema |
Support User Identity Deleted
A user's identity was deleted.
{"type": "zen:event-type:user.identity_deleted","account_id": 13390837,"id": "40b97155-4255-4637-b4ca-c611a5b5cf68","subject": "zen:user:6600130024829","time": "2099-07-05T01:58:48Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-05T01:58:48Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6600130024829","organization_id": "0","role": "agent","updated_at": "2099-07-05T01:58:48Z"},"event": {"identity": {"id": "6600130025725","primary": true,"type": "email","value": "[email protected]"}}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| identity | object | User identity. For object properties, see the user identity resource schema |
Support User Active Status Changed
A user's active status changed.
{"type": "zen:event-type:user.active_changed","account_id": 12514403,"id": "2b24ef10-19d4-4740-93cf-8f98ec4776c0","subject": "zen:user:6596848315901","time": "2099-07-04T05:33:18Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-04T05:27:58Z","email": "[email protected]","external_id": "","default_group_id": "0","id": "6596848315901","organization_id": "0","role": "end-user","updated_at": "2099-07-04T05:33:18Z"},"event": {"current": false,"previous": true}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| current | boolean | Current active status. If the user was soft deleted, current is false |
| previous | boolean | Previous active status |
Support User Last Login Changed
A user's last login time changed. The last login date is updated only if the previous login occurred more than 20 minutes ago.
{"type": "zen:event-type:user.last_login_changed","account_id": 13390837,"id": "40b97155-4255-4637-b4ca-c611a5b5cf68","subject": "zen:user:6600130024829","time": "2099-07-05T01:58:48Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-05T01:58:48Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6600130024829","organization_id": "0","role": "agent","updated_at": "2099-07-05T01:58:48Z"},"event": {"current": "2099-07-05T01:58:48Z","previous": "2099-07-04T01:58:48Z"}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| current | string | Current login timestamp for the user |
| previous | string | Previous login timestamp for the user |
Support User Merged
A user was merged with another user.
{"type": "zen:event-type:user.merged","account_id": 13390837,"id": "40b97155-4255-4637-b4ca-c611a5b5cf68","subject": "zen:user:6600130024829","time": "2099-07-05T01:58:48Z","zendesk_event_version": "2022-11-06","detail": {"created_at": "2099-07-05T01:58:48Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6600130024829","organization_id": "0","role": "agent","updated_at": "2099-07-05T01:58:48Z"},"event": {"cause": {"reference": {"id": "01M59DZXRBPJC0RXEZ8SEJZDYZ","type": "migration"},"type": "migration"},"destination_separation": {"brand_id": "9916303498237","scope": "brand"},"source_separation": {"scope": "account"},"user": {"id": "6600130024830"}}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| user | object | Contains the merged user's id |
| user.id | string | id of the merged user |
| source_separation | object | The separation the user was in before the merge |
| destination_separation | object | The separation the user was in after the merge |
| cause | object | What caused the merge. See Cause properties |
The source_separation, destination_separation, and cause properties are
optional. They're only included when the merge was caused by a separation
migration. For an ordinary merge, the event object only contains the user
object.
Support User Name Changed
A user's name changed.
{"type": "zen:event-type:user.name_changed","account_id": 13390837,"id": "40b97155-4255-4637-b4ca-c611a5b5cf68","subject": "zen:user:6600130024829","time": "2099-07-05T01:58:48Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-05T01:58:48Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6600130024829","organization_id": "0","role": "agent","updated_at": "2099-07-05T01:58:48Z"},"event": {"current": "Jane","previous": "Janet"}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| current | string | Current user name |
| previous | string | Previous user name |
Support User Notes Changed
A user's notes changed.
{"type": "zen:event-type:user.notes_changed","account_id": 13390837,"id": "40b97155-4255-4637-b4ca-c611a5b5cf68","subject": "zen:user:6600130024829","time": "2099-07-05T01:58:48Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-05T01:58:48Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6600130024829","organization_id": "0","role": "agent","updated_at": "2099-07-05T01:58:48Z"},"event": {"current": "Johnny is a nice guy!","previous": ""}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| current | string | Current user notes |
| previous | string | Previous user notes |
Support User Only Private Comments Status Changed
A user's ability to create public comments changed. This ability is controlled
by the only_private_comments property in the user
resource.
{"type": "zen:event-type:user.only_private_comments_changed","account_id": 13390837,"id": "40b97155-4255-4637-b4ca-c611a5b5cf68","subject": "zen:user:6600130024829","time": "2099-07-05T01:58:48Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-05T01:58:48Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6600130024829","organization_id": "0","role": "agent","updated_at": "2099-07-05T01:58:48Z"},"event": {"current": false,"previous": true}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| current | boolean | Current value of the user's only_private_comments property |
| previous | boolean | Previous value of the user's only_private_comments property |
Support User Organization Membership Created
A user was added to an organization.
{"type": "zen:event-type:user.organization_membership_created","account_id": 13390837,"id": "40b97155-4255-4637-b4ca-c611a5b5cf68","subject": "zen:user:6600130024829","time": "2099-07-05T01:58:48Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-05T01:58:48Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6600130024829","organization_id": "0","role": "agent","updated_at": "2099-07-05T01:58:48Z"},"event": {"organization": {"id": "1"}}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| organization | object | Contains the organization id |
| organization.id | string | id of the organization |
Support User Organization Membership Deleted
A user was removed from an organization.
{"type": "zen:event-type:user.organization_membership_deleted","account_id": 13390837,"id": "40b97155-4255-4637-b4ca-c611a5b5cf68","subject": "zen:user:6600130024829","time": "2099-07-05T01:58:48Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-05T01:58:48Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6600130024829","organization_id": "0","role": "agent","updated_at": "2099-07-05T01:58:48Z"},"event": {"organization": {"id": "1"}}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| organization | object | Contains the organization id |
| organization.id | string | id of the organization |
Support User Password Changed
A user's password changed.
{"type": "zen:event-type:user.password_changed","account_id": 12514403,"id": "ce84824c-4ba6-411f-875b-a3b0f3bcb8dd","subject": "zen:user:6596848315901","time": "2099-07-04T05:33:18Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-04T05:27:58Z","email": "[email protected]","external_id": "","default_group_id": "0","id": "6596848315901","organization_id": "0","role": "end-user","updated_at": "2099-07-04T05:33:18Z"},"event": {}}
The payload contains an empty event object.
Support User Photo Changed
A user's photo changed.
{"type": "zen:event-type:user.photo_changed","account_id": 13390837,"id": "40b97155-4255-4637-b4ca-c611a5b5cf68","subject": "zen:user:6600130024829","time": "2099-07-05T01:58:48Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-05T01:58:48Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6600130024829","organization_id": "0","role": "agent","updated_at": "2099-07-05T01:58:48Z"},"event": {"current": "https://assets.zendesk.com/def456","previous": "https://assets.zendesk.com/abc123"}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| current | string | Current photo url |
| previous | string | Previous photo url |
Support User Role Changed
A user's role changed.
{"type": "zen:event-type:user.role_changed","account_id": 13390837,"id": "40b97155-4255-4637-b4ca-c611a5b5cf68","subject": "zen:user:6600130024829","time": "2099-07-05T01:58:48Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-05T01:58:48Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6600130024829","organization_id": "0","role": "agent","updated_at": "2099-07-05T01:58:48Z"},"event": {"current": "admin","previous": "end-user"}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| current | string | Current user role |
| previous | string | Previous user role |
Support User Separation Updated
A user was moved to a different separation, such as from the account to a brand. The user keeps the same id.
{"type": "zen:event-type:user.separation_updated","account_id": 9713011,"id": "5c8e1d6a-0a5b-4d0e-9b49-1f6a8f2a7c11","subject": "zen:user:6600020902910","time": "2099-10-20T09:30:00Z","zendesk_event_version": "2022-11-06","detail": {"created_at": "2099-01-05T12:00:00Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6600020902910","organization_id": "0","role": "end-user","separation_brand_id": "9916303498237","updated_at": "2099-10-20T09:30:00Z"},"event": {"cause": {"reference": null,"type": "customer_directed_migration"},"destination_separation": {"brand_id": "9916303498237","scope": "brand"},"source_separation": {"scope": "account"}}}
The subject and detail describe the user after the change, so
detail.separation_brand_id is the destination brand. The event object
contains the following properties.
| Property | Data type | Description |
|---|---|---|
| source_separation | object | The separation the user was in before the change |
| destination_separation | object | The separation the user is in after the change |
| cause | object | Optional. What caused the change. See Cause properties |
Support User Separation Record Created
A support user separation record was created. The user was copied into another separation: the original user stays in the source separation, and a new user record is created in the destination separation.
{"type": "zen:event-type:user.separation_cloned","account_id": 9713011,"id": "5c8e1d6a-0a5b-4d0e-9b49-1f6a8f2a7c11","subject": "zen:user:6600020902910","time": "2099-10-20T09:30:00Z","zendesk_event_version": "2022-11-06","detail": {"created_at": "2099-01-05T12:00:00Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6600020902910","organization_id": "0","role": "end-user","updated_at": "2099-10-20T09:30:00Z"},"event": {"cause": {"reference": {"id": "42","type": "ticket"},"type": "ticket_brand_change"},"destination_separation": {"brand_id": "9916303498237","scope": "brand"},"destination_user": {"id": "6600020902911"},"source_separation": {"scope": "account"}}}
The subject and detail describe the original user in the source
separation, so detail.separation_brand_id is the source brand, if any. In the
example, the source is the account, so the property isn't included. The event
object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| source_separation | object | The separation the original user is in |
| destination_separation | object | The separation the new user is in |
| destination_user | object | The new user. null if the id isn't available |
| destination_user.id | string | id of the new user |
| cause | object | Optional. What caused the change. See Cause properties |
Support User Separation References Moved
The references to a user, such as tickets and comments, were moved to another user in a different separation.
{"type": "zen:event-type:user.separation_references_moved","account_id": 9713011,"id": "5c8e1d6a-0a5b-4d0e-9b49-1f6a8f2a7c11","subject": "zen:user:6600020902910","time": "2099-10-20T09:30:00Z","zendesk_event_version": "2022-11-06","detail": {"created_at": "2099-01-05T12:00:00Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6600020902910","organization_id": "0","role": "end-user","updated_at": "2099-10-20T09:30:00Z"},"event": {"cause": {"reference": {"id": "01M59DZXRBPJC0RXEZ8SEJZDYZ","type": "migration"},"type": "migration"},"destination_separation": {"brand_id": "9916303498237","scope": "brand"},"destination_user": {"id": "6600020902911"},"source_separation": {"scope": "account"}}}
The subject and detail describe the user the references were moved from,
which is in the source separation. The event object contains the following
properties.
| Property | Data type | Description |
|---|---|---|
| source_separation | object | The separation the references were moved from |
| destination_separation | object | The separation the references were moved to |
| destination_user | object | The user the references were moved to. null if the id isn't available |
| destination_user.id | string | id of the user the references were moved to |
| cause | object | Optional. What caused the change. See Cause properties |
Separation properties
The source_separation and destination_separation objects, which are shared
by the user.separation_* events and the user.merged event, contain the
following properties.
| Property | Data type | Description |
|---|---|---|
| scope | string | account, brand, or unknown |
| brand_id | string | Only included when scope is brand. id of the brand |
Cause properties
The optional cause object, which is shared by the user.separation_* events
and the user.merged event, contains the following properties.
| Property | Data type | Description |
|---|---|---|
| type | string | migration, ticket_brand_change, or customer_directed_migration |
| reference | object | The resource that caused the change. null if there's none, as with customer_directed_migration |
| reference.type | string | migration or ticket |
| reference.id | string | id of the resource. For ticket, this is the ticket ID used by the Tickets API |
Support User Deleted
A user was deleted.
{"type": "zen:event-type:user.deleted","account_id": 12514403,"id": "6b9bbadf-5725-4e92-bebe-7b71011bf5f1","subject": "zen:user:6596848315901","time": "2099-07-04T05:33:18Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-04T05:27:58Z","email": "[email protected]","external_id": "","default_group_id": "0","id": "6596848315901","organization_id": "0","role": "end-user","updated_at": "2099-07-04T05:33:18Z"},"event": {}}
The payload contains an empty event object.
Support User Suspended Status Changed
A user's suspended status change. For more information, see Suspending a user.
{"type": "zen:event-type:user.suspended_changed","account_id": 13390837,"id": "40b97155-4255-4637-b4ca-c611a5b5cf68","subject": "zen:user:6600130024829","time": "2099-07-05T01:58:48Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-05T01:58:48Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6600130024829","organization_id": "0","role": "agent","updated_at": "2099-07-05T01:58:48Z"},"event": {"current": true,"previous": false}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| current | boolean | Current suspended status |
| previous | boolean | Previous suspended status |
Support User Tags Changed
A user's tags changed.
{"type": "zen:event-type:user.tags_changed","account_id": 13390837,"id": "40b97155-4255-4637-b4ca-c611a5b5cf68","subject": "zen:user:6600130024829","time": "2099-07-05T01:58:48Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-05T01:58:48Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6600130024829","organization_id": "0","role": "agent","updated_at": "2099-07-05T01:58:48Z"},"event": {"added": {"tags": ["foo"]},"removed": {"tags": ["bar"]}}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| added | object | Contains tags added to the user |
| added.tags | array of strings | Tags added to the user |
| removed | object | Contains tags removed from the user |
| removed.tags | array of strings | Tags removed from the user |
Support User Time Zone Changed
A user's time zone changed.
{"type": "zen:event-type:user.time_zone_changed","account_id": 13390837,"id": "40b97155-4255-4637-b4ca-c611a5b5cf68","subject": "zen:user:6600130024829","time": "2099-07-05T01:58:48Z","zendesk_event_version": "2022-06-20","detail": {"created_at": "2099-07-05T01:58:48Z","default_group_id": "0","email": "[email protected]","external_id": "","id": "6600130024829","organization_id": "0","role": "agent","updated_at": "2099-07-05T01:58:48Z"},"event": {"current": "Australia/Adelaide","previous": "Australia/Melbourne"}}
The event object contains the following properties.
| Property | Data type | Description |
|---|---|---|
| current | string | Current time zone |
| previous | string | Previous time zone |