Respond to activity that occurs within WorkOS and third-party providers.
Events represent activity that has occurred within WorkOS or within third-party identity and directory providers. Your app can sync the data via either the events API or webhooks.
All event objects share a similar structure.
Attribute | Description |
---|---|
event | A string that distinguishes the event type. |
id | Unique identifier for the event. |
data | Event payload. Payloads match the corresponding API objects. |
created_at | Timestamp of when the event occurred. |
Events emitted in response to user activity in User Management.
Each step in the authentication flow emits an authentication event. Authentication success events are emitted even when additional steps, such as MFA, are required to complete the process. The authentication failed events aren’t emitted yet, but will be available soon.
{ "event": "authentication.email_verification_failed", "id": "event_04FKJ843CVE8F7BXQSPFH0M53V", "data": { "type": "email_verification", "status": "failed", "user_id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "email": "todd@example.com", "ip_address": "192.0.2.1", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36", "error": { "code": "invalid_one_time_code", "message": "Invalid one-time code" } }, "created_at": "2023-11-18T04:18:13.126Z" }
Triggered when a user fails to verify their email.
{ "event": "authentication.email_verification_succeeded", "id": "event_04FKJ843CVE8F7BXQSPFH0M53V", "data": { "type": "email_verification", "status": "succeeded", "user_id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "email": "todd@example.com", "ip_address": "192.0.2.1", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36" }, "created_at": "2023-11-18T04:18:13.126Z" }
Triggered when a user successfully verifies their email.
{ "event": "authentication.magic_auth_failed", "id": "event_04FKJ843CVE8F7BXQSPFH0M53V", "data": { "type": "magic_auth", "status": "failed", "user_id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "email": "todd@example.com", "ip_address": "192.0.2.1", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36", "error": { "code": "authentication_method_not_allowed", "message": "Google OAuth is disabled." } }, "created_at": "2023-11-18T04:18:13.126Z" }
Triggered when a user fails to authenticate via Magic Auth.
{ "event": "authentication.magic_auth_succeeded", "id": "event_04FKJ843CVE8F7BXQSPFH0M53V", "data": { "type": "magic_auth", "status": "succeeded", "user_id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "email": "todd@example.com", "ip_address": "192.0.2.1", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36" }, "created_at": "2023-11-18T04:18:13.126Z" }
Triggered when a user successfully authenticates via Magic Auth.
{ "event": "authentication.mfa_failed", "id": "event_04FKJ843CVE8F7BXQSPFH0M53V", "data": { "type": "mfa", "status": "failed", "user_id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "email": "todd@example.com", "ip_address": "192.0.2.1", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36", "error": { "code": "invalid_one_time_code", "message": "Invalid one-time code." } }, "created_at": "2023-11-18T04:18:13.126Z" }
Triggered when a user fails to authenticate with a multi-factor authentication code.
{ "event": "authentication.mfa_succeeded", "id": "event_04FKJ843CVE8F7BXQSPFH0M53V", "data": { "type": "mfa", "status": "succeeded", "user_id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "email": "todd@example.com", "ip_address": "192.0.2.1", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36" }, "created_at": "2023-11-18T04:18:13.126Z" }
Triggered when a user successfully authenticates with a multi-factor authentication code.
{ "event": "authentication.oauth_failed", "id": "event_04FKJ843CVE8F7BXQSPFH0M53V", "data": { "type": "oauth", "status": "failed", "user_id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "email": "todd@example.com", "ip_address": "192.0.2.1", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36", "error": { "code": "invalid_credentials", "message": "Invalid credentials." } }, "created_at": "2023-11-18T04:18:13.126Z" }
Triggered when a user fails to authenticate via OAuth.
{ "event": "authentication.oauth_succeeded", "id": "event_04FKJ843CVE8F7BXQSPFH0M53V", "data": { "type": "oauth", "status": "succeeded", "user_id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "email": "todd@example.com", "ip_address": "192.0.2.1", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36" }, "created_at": "2023-11-18T04:18:13.126Z" }
Triggered when a user successfully authenticates via OAuth.
{ "event": "authentication.password_failed", "id": "event_04FKJ843CVE8F7BXQSPFH0M53V", "data": { "type": "password", "status": "failed", "user_id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "email": "todd@example.com", "ip_address": "192.0.2.1", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36", "error": { "code": "invalid_credentials", "message": "Invalid credentials." } }, "created_at": "2023-11-18T04:18:13.126Z" }
Triggered when a user fails to authenticate with password credentials.
{ "event": "authentication.password_succeeded", "id": "event_04FKJ843CVE8F7BXQSPFH0M53V", "data": { "type": "password", "status": "succeeded", "user_id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "email": "todd@example.com", "ip_address": "192.0.2.1", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36" }, "created_at": "2023-11-18T04:18:13.126Z" }
Triggered when a user successfully authenticates with password credentials.
{ "event": "authentication.sso_failed", "id": "event_04FKJ843CVE8F7BXQSPFH0M53V", "data": { "type": "sso", "status": "failed", "user_id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "email": "todd@example.com", "ip_address": "192.0.2.1", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36", "error": { "code": "authentication_method_not_allowed", "message": "SSO is disabled for this environment." } }, "created_at": "2023-11-18T04:18:13.126Z" }
Triggered when a user fails to authenticate with single sign-on.
{ "event": "authentication.sso_succeeded", "id": "event_04FKJ843CVE8F7BXQSPFH0M53V", "data": { "type": "sso", "status": "succeeded", "user_id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "email": "todd@example.com", "ip_address": "192.0.2.1", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36" }, "created_at": "2023-11-18T04:18:13.126Z" }
Triggered when a user successfully authenticates with single sign-on.
{ "event": "organization_membership.created", "id": "event_04FKJ843CVE8F7BXQSPFH0M53V", "data": { "id": "om_01E4ZCR3C56J083X43JQXF3JK5", "object": "organization_membership", "user_id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "organization_id": "org_01E4ZCR3C56J083X43JQXF3JK5", "status": "pending", "role": { "slug": "member" }, "created_at": "2023-11-16T21:32:25.235Z", "updated_at": "2023-11-16T21:32:25.235Z" }, "created_at": "2023-11-16T16:32:25.239Z" }
Triggered when an organization membership is created.
{ "event": "organization_membership.deleted", "id": "event_04FKJ843CVE8F7BXQSPFH0M97T", "data": { "id": "om_01E4ZCR3C56J083X43JQXF3JK5", "object": "organization_membership", "user_id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "organization_id": "org_01E4ZCR3C56J083X43JQXF3JK5", "status": "active", "role": { "slug": "member" }, "created_at": "2023-11-16T21:32:25.235Z", "updated_at": "2023-11-27T03:14:45.864Z" }, "created_at": "2023-11-16T16:32:25.239Z" }
Triggered when an organization membership is deleted.
{ "event": "organization_membership.updated", "id": "event_04FKJ843CVE8F7BXQSPFH0M30K", "data": { "id": "om_01E4ZCR3C56J083X43JQXF3JK5", "object": "organization_membership", "user_id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "organization_id": "org_01E4ZCR3C56J083X43JQXF3JK5", "status": "active", "role": { "slug": "member" }, "created_at": "2023-11-16T21:32:25.235Z", "updated_at": "2023-11-18T17:10:15.121Z" }, "created_at": "2023-11-16T16:32:25.239Z" }
Triggered when an organization membership is updated.
{ "event": "organization.created", "id": "event_04FKJ843CVE8F7BXQSPFH0M30K", "data": { "id": "org_01HV1VNQBQ24JVREYB94RFCNDC", "name": "Foo Corp", "object": "organization", "domains": [ { "id": "org_domain_01HV1VX5N18E48ETTHNNK54R6S", "state": "verified", "domain": "foo-corp.com", "object": "organization_domain", "organization_id": "org_01HV1VNQBQ24JVREYB94RFCNDC", "verification_strategy": "manual" } ], "created_at": "2023-11-16T16:32:25.239Z", "updated_at": "2023-11-16T16:32:25.239Z" }, "created_at": "2023-11-16T16:32:25.239Z" }
Triggered when an organization is created.
{ "event": "organization.updated", "id": "event_04FKJ843CVE8F7BXQSPFH0M30K", "data": { "id": "org_01HV1VNQBQ24JVREYB94RFCNDC", "name": "Foo Corp", "object": "organization", "domains": [ { "id": "org_domain_01HV1VX5N18E48ETTHNNK54R6S", "state": "verified", "domain": "foo-corp.com", "object": "organization_domain", "organization_id": "org_01HV1VNQBQ24JVREYB94RFCNDC", "verification_strategy": "manual" } ], "created_at": "2023-11-16T16:32:25.239Z", "updated_at": "2023-11-16T17:32:25.239Z" }, "created_at": "2023-11-16T17:32:25.239Z" }
Triggered when an organization is updated.
{ "event": "organization.deleted", "id": "event_04FKJ843CVE8F7BXQSPFH0M30K", "data": { "id": "org_01HV1VNQBQ24JVREYB94RFCNDC", "name": "Foo Corp", "object": "organization", "domains": [ { "id": "org_domain_01HV1VX5N18E48ETTHNNK54R6S", "state": "verified", "domain": "foo-corp.com", "object": "organization_domain", "organization_id": "org_01HV1VNQBQ24JVREYB94RFCNDC", "verification_strategy": "manual" } ], "created_at": "2023-11-16T16:32:25.239Z", "updated_at": "2023-11-16T17:32:25.239Z" }, "created_at": "2023-11-16T17:32:25.239Z" }
Triggered when an organization is deleted
{ "event": "role.created", "id": "event_02F4KLW3C56P083X43JQXF4FO9", "data": { "object": "role", "slug": "admin", "created_at": "2023-11-16T21:32:25.235Z", "updated_at": "2023-11-16T21:32:25.235Z" }, "created_at": "2023-11-16T21:32:25.245Z" }
Triggered when a role is created.
{ "event": "role.deleted", "id": "event_01E4YCD3C56P083X43JQXF4JK5", "data": { "object": "role", "slug": "developer", "created_at": "2023-11-16T21:32:25.235Z", "updated_at": "2023-11-18T10:12:18.121Z" }, "created_at": "2023-11-21T18:14:01.399Z" }
Triggered when a role is deleted.
{ "event": "session.created", "id": "event_04FKJ843CVE8F7BXQSPFH0M53V", "data": { "object": "session", "id": "session_01HSCBECW0D7AY8CA45AYKA64G", "user_id": "user_01HQGXWZW8BSHRG3HVK2QF7XBX", "organization_id": "org_01HQHCBRRAVQ7N3PX81VKAYXSX", "impersonator": { "email": "admin@example.com", "reason": "Helping a customer fix an issue with their account." }, "ip_address": "192.0.2.1", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36", "created_at": "2024-03-19T21:56:25.080Z", "updated_at": "2024-03-19T21:56:25.080Z" }, "created_at": "2024-03-19T21:56:25.080Z" }
Triggered when a session is created. Sessions started using
impersonation will include an additional
impersonator
field with data about the impersonator.
{ "event": "user.created", "id": "event_02F4KLW3C56P083X43JQXF4FO9", "data": { "object": "user", "id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "email": "todd@example.com", "first_name": "Todd", "last_name": "Rundgren", "email_verified": false, "profile_picture_url": "https://workoscdn.com/images/v1/123abc", "created_at": "2023-11-18T09:18:13.120Z", "updated_at": "2023-11-18T09:18:13.120Z" }, "created_at": "2023-11-18T04:18:13.126Z" }
Triggered when a user is created.
{ "event": "user.deleted", "id": "event_123456abcd", "data": { "object": "user", "id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "email": "todd@example.com", "first_name": "Todd", "last_name": "Rundgren", "email_verified": true, "profile_picture_url": "https://workoscdn.com/images/v1/123abc", "created_at": "2023-11-16T21:26:25.427Z", "updated_at": "2023-11-17T04:00:03.937Z" }, "created_at": "2023-11-18T04:18:13.126Z" }
Triggered when a user is deleted.
{ "event": "user.updated", "id": "event_02F4KLW3C56P083X43JQXF4FO9", "data": { "object": "user", "id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E", "email": "todd@example.com", "first_name": "Todd", "last_name": "Rundgren", "email_verified": true, "profile_picture_url": "https://workoscdn.com/images/v1/123abc", "created_at": "2023-11-18T09:18:13.120Z", "updated_at": "2023-11-19T11:05:10.539Z" }, "created_at": "2023-11-19T11:05:10.550Z" }
Triggered when a user is updated.
Events emitted when standalone Single Sign-On connections are activated, deactivated, or deleted.
{ "event": "connection.activated", "id": "event_10FKJ843CVE8F7BXQSPFH0M53V", "data": { "object": "connection", "id": "conn_01EHWNC0FCBHZ3BJ7EGKYXK0E6", "organization_id": "org_01EHWNCE74X7JSDV0X3SZ3KJNY", "state": "active", "connection_type": "OktaSAML", "name": "Foo Corp's Connection", "created_at": "2021-06-25T19:07:33.155Z", "updated_at": "2021-06-25T19:07:33.155Z", "domains": [ { "id": "conn_domain_01EHWNFTAFCF3CQAE5A9Q0P1YB", "object": "connection_domain", "domain": "foo-corp.com" } ] }, "created_at": "2021-06-25T19:07:33.155Z" }
Triggered when a connection is activated.
{ "event": "connection.deactivated", "id": "event_11FKJ843CVE8F7BXQSPFH0M53V", "data": { "object": "connection", "id": "conn_01EHWNC0FCBHZ3BJ7EGKYXK0E6", "organization_id": "org_01EHWNCE74X7JSDV0X3SZ3KJNY", "state": "inactive", "connection_type": "OktaSAML", "name": "Foo Corp's Connection", "created_at": "2021-06-25T19:07:33.155Z", "updated_at": "2021-06-25T19:07:33.155Z", "domains": [ { "id": "conn_domain_01EHWNFTAFCF3CQAE5A9Q0P1YB", "object": "connection_domain", "domain": "foo-corp.com" } ] }, "created_at": "2021-06-25T19:07:33.155Z" }
Triggered when a connection is deactivated.
{ "event": "connection.deleted", "id": "event_12FKJ843CVE8F7BXQSPFH0M53V", "data": { "object": "connection", "id": "conn_01EHWNC0FCBHZ3BJ7EGKYXK0E6", "organization_id": "org_01EHWNCE74X7JSDV0X3SZ3KJNY", "state": "inactive", "connection_type": "OktaSAML", "name": "Foo Corp's Connection", "created_at": "2021-06-25T19:07:33.155Z", "updated_at": "2021-06-25T19:07:33.155Z", "domains": [ { "id": "conn_domain_01EHWNFTAFCF3CQAE5A9Q0P1YB", "object": "connection_domain", "domain": "foo-corp.com" } ] }, "created_at": "2021-06-25T19:07:33.155Z" }
Triggered when a connection is deleted. The state
attribute indicates
connection state before deletion.
Events emitted when directory-related resources are changed. To learn what exactly each of these events represents, see the in-depth Directory Sync events guide.
{ "event": "dsync.activated", "id": "event_01FKJ843CVE8F7BXQSPFH0M53V", "data": { "object": "directory", "external_key": "UWuccu6o1E0GqkYs", "name": "Foo Corp's Directory", "organization_id": "org_01EZTR6WYX1A0DSE2CYMGXQ24Y", "id": "directory_01EHWNC0FCBHZ3BJ7EGKYXK0E6", "state": "active", "type": "generic scim v2.0", "created_at": "2021-06-25T19:07:33.155Z", "updated_at": "2021-06-25T19:07:33.155Z", "domains": [ { "object": "organization_domain", "id": "org_domain_01EZTR5N6Y9RQKHK2E9F31KZX6", "domain": "foo-corp.com" } ] }, "created_at": "2021-06-25T19:07:33.155Z" }
Triggered when a directory is activated.
{ "event": "dsync.deleted", "id": "event_03FKJ843CVE8F7BXQSPFH0M53V", "data": { "object": "directory", "id": "directory_01EHWNC0FCBHZ3BJ7EGKYXK0E6", "organization_id": "org_01EZTR6WYX1A0DSE2CYMGXQ24Y", "type": "generic scim v2.0", "state": "deleting", "name": "Foo Corp's Directory", "created_at": "2021-06-25T19:07:33.155Z", "updated_at": "2021-06-25T19:07:33.155Z" }, "created_at": "2021-06-25T19:07:33.155Z" }
Triggered when a directory is deleted. The state
attribute indicates
directory state before deletion.
{ "event": "dsync.group.created", "id": "event_44FKJ843CVE8F7BXQSPFH0M53V", "data": { "id": "directory_group_01E1X5GPMMXF4T1DCERMVEEPVW", "idp_id": "02grqrue4294w24", "directory_id": "directory_01ECAZ4NV9QMV47GW873HDCX74", "organization_id": "org_01EZTR6WYX1A0DSE2CYMGXQ24Y", "name": "Developers", "created_at": "2021-06-25T19:07:33.155Z", "updated_at": "2021-06-25T19:07:33.155Z", "raw_attributes": {} }, "created_at": "2021-06-25T19:07:33.155Z" }
Triggered when a directory group is created.
{ "event": "dsync.group.deleted", "id": "event_06FKJ843CVE8F7BXQSPFH0M53V", "data": { "id": "directory_group_01E1X5GPMMXF4T1DCERMVEEPVW", "idp_id": "02grqrue4294w24", "directory_id": "directory_01ECAZ4NV9QMV47GW873HDCX74", "organization_id": "org_01EZTR6WYX1A0DSE2CYMGXQ24Y", "name": "Developers", "created_at": "2021-06-25T19:07:33.155Z", "updated_at": "2021-06-25T19:07:33.155Z", "raw_attributes": {} }, "created_at": "2021-06-25T19:07:33.155Z" }
Triggered when a directory group is deleted.
{ "event": "dsync.group.updated", "id": "event_54FKJ843CVE8F7BXQSPFH0M53V", "data": { "id": "directory_group_01E1X5GPMMXF4T1DCERMVEEPVW", "idp_id": "02grqrue4294w24", "directory_id": "directory_01ECAZ4NV9QMV47GW873HDCX74", "organization_id": "org_01EZTR6WYX1A0DSE2CYMGXQ24Y", "name": "Developers", "created_at": "2021-06-25T19:07:33.155Z", "updated_at": "2021-06-25T19:07:33.155Z", "raw_attributes": {}, "previous_attributes": {} }, "created_at": "2021-06-25T19:07:33.155Z" }
Triggered when a directory group is updated.
{ "event": "dsync.group.user_added", "id": "event_04FKJ843CVE8F7BXQSPFH0M53V", "data": { "directory_id": "directory_01ECAZ4NV9QMV47GW873HDCX74", "user": { "id": "directory_user_01E1X56GH84T3FB41SD6PZGDBX", "directory_id": "directory_01ECAZ4NV9QMV47GW873HDCX74", "organization_id": "org_01EZTR6WYX1A0DSE2CYMGXQ24Y", "idp_id": "2936", "emails": [ { "primary": true, "type": "work", "value": "eric@example.com" } ], "first_name": "Eric", "last_name": "Schneider", "job_title": "Software Engineer", "username": "eric@example.com", "state": "active", "created_at": "2021-06-25T19:07:33.155Z", "updated_at": "2021-06-25T19:07:33.155Z", "custom_attributes": { "department": "Engineering" }, "raw_attributes": {} }, "group": { "id": "directory_group_01E1X5GPMMXF4T1DCERMVEEPVW", "idp_id": "02grqrue4294w24", "directory_id": "directory_01ECAZ4NV9QMV47GW873HDCX74", "organization_id": "org_01EZTR6WYX1A0DSE2CYMGXQ24Y", "name": "Developers", "created_at": "2021-06-25T19:07:33.155Z", "updated_at": "2021-06-25T19:07:33.155Z", "raw_attributes": {} } }, "created_at": "2021-06-25T19:07:33.155Z" }
Triggered when a directory group user is added.
{ "event": "dsync.group.user_removed", "id": "event_05FKJ843CVE8F7BXQSPFH0M53V", "data": { "directory_id": "directory_01ECAZ4NV9QMV47GW873HDCX74", "user": { "id": "directory_user_01E1X56GH84T3FB41SD6PZGDBX", "directory_id": "directory_01ECAZ4NV9QMV47GW873HDCX74", "organization_id": "org_01EZTR6WYX1A0DSE2CYMGXQ24Y", "idp_id": "2936", "emails": [ { "primary": true, "type": "work", "value": "eric@example.com" } ], "first_name": "Eric", "last_name": "Schneider", "job_title": "Software Engineer", "username": "eric@example.com", "state": "active", "created_at": "2021-06-25T19:07:33.155Z", "updated_at": "2021-06-25T19:07:33.155Z", "custom_attributes": { "department": "Engineering" }, "raw_attributes": {} }, "group": { "id": "directory_group_01E1X5GPMMXF4T1DCERMVEEPVW", "idp_id": "02grqrue4294w24", "directory_id": "directory_01ECAZ4NV9QMV47GW873HDCX74", "organization_id": "org_01EZTR6WYX1A0DSE2CYMGXQ24Y", "name": "Developers", "created_at": "2021-06-25T19:07:33.155Z", "updated_at": "2021-06-25T19:07:33.155Z", "raw_attributes": {} } }, "created_at": "2021-06-25T19:07:33.155Z" }
Triggered when a directory group user is removed.
{ "event": "dsync.user.created", "id": "event_07FKJ843CVE8F7BXQSPFH0M53V", "data": { "id": "directory_user_01E1X1B89NH8Z3SDFJR4H7RGX7", "directory_id": "directory_01ECAZ4NV9QMV47GW873HDCX74", "organization_id": "org_01EZTR6WYX1A0DSE2CYMGXQ24Y", "idp_id": "8931", "emails": [ { "primary": true, "type": "work", "value": "lela.block@example.com" } ], "first_name": "Lela", "last_name": "Block", "job_title": "Software Engineer", "username": "lela.block@example.com", "state": "active", "created_at": "2021-06-25T19:07:33.155Z", "updated_at": "2021-06-25T19:07:33.155Z", "custom_attributes": { "department": "Engineering" }, "raw_attributes": {} }, "created_at": "2021-06-25T19:07:33.155Z" }
Triggered when a directory user is created.
{ "event": "dsync.user.deleted", "id": "event_09FKJ843CVE8F7BXQSPFH0M53V", "data": { "id": "directory_user_01E1X1B89NH8Z3SDFJR4H7RGX7", "directory_id": "directory_01ECAZ4NV9QMV47GW873HDCX74", "organization_id": "org_01EZTR6WYX1A0DSE2CYMGXQ24Y", "idp_id": "8931", "emails": [ { "primary": true, "type": "work", "value": "lela.block@example.com" } ], "first_name": "Lela", "last_name": "Block", "job_title": "Software Engineer", "username": "lela.block@example.com", "state": "inactive", "created_at": "2021-06-25T19:07:33.155Z", "updated_at": "2021-06-25T19:07:33.155Z", "custom_attributes": { "department": "Engineering" }, "raw_attributes": {} }, "created_at": "2021-06-25T19:07:33.155Z" }
Triggered when a directory user is deleted.
{ "event": "dsync.user.updated", "id": "event_08FKJ843CVE8F7BXQSPFH0M53V", "data": { "id": "directory_user_01E1X1B89NH8Z3SDFJR4H7RGX7", "directory_id": "directory_01ECAZ4NV9QMV47GW873HDCX74", "organization_id": "org_01EZTR6WYX1A0DSE2CYMGXQ24Y", "idp_id": "8931", "emails": [ { "primary": true, "type": "work", "value": "lela.block@example.com" } ], "first_name": "Lela", "last_name": "Block", "job_title": "Software Engineer", "username": "lela.block@example.com", "state": "active", "created_at": "2021-06-25T19:07:33.155Z", "updated_at": "2021-06-25T19:07:33.155Z", "custom_attributes": { "department": "Engineering" }, "raw_attributes": {}, "previous_attributes": {} }, "created_at": "2021-06-25T19:07:33.155Z" }
Triggered when a directory user is updated.
Events emitted when verification status of a domain changes.
{ "event": "organization_domain.verified", "id": "event_07FKJ843CVE8F7BXQSPFH0M53A", "data": { "object": "organization_domain", "id": "org_domain_01HACSKJ57W8M2Q0N2X759C5HS", "domain": "domain-to-verify.com", "state": "verified", "verification_token": "gBIJgYXZLjW8uHHpz614dkgqm", "verification_strategy": "dns" }, "created_at": "2021-06-25T19:07:33.155Z" }
Triggered when an organization domain is verified.
{ "event": "organization_domain.verification_failed", "id": "event_07FKJ843CVE8F7BXQSPFH0M53A", "data": { "reason": "domain_verification_period_expired", "organization_domain": { "object": "organization_domain", "id": "org_domain_01HACSKJ57W8M2Q0N2X759C5HS", "domain": "domain-to-verify.com", "state": "failed", "verification_token": "gBIJgYXZLjW8uHHpz614dkgqm", "verification_strategy": "dns" } }, "created_at": "2021-06-25T19:07:33.155Z" }
Triggered when an organization domain verification fails.