Skip to content

User events

Explore the webhook events related to user operations in Scalekit, including signup, login, logout, and organization membership events.

This page documents the webhook events related to user operations in Scalekit.


This webhook is triggered when a new user signs up. The event type is user.signup

user.signup
{
"environment_id": "env_1234567890",
"id": "evt_1234567890",
"object": "OrgMembershipEvent",
"occurred_at": "2024-01-15T10:30:00.123456789Z",
"spec_version": "1",
"type": "user.signup",
"data": {
"organization": {
"id": "org_1234567890"
},
"user": {
"create_time": "2024-01-15T10:30:00Z",
"email": "user@example.com",
"id": "usr_1234567890",
"membership": {
"accepted_at": "2024-01-15T10:30:00Z",
"created_at": "2024-01-15T10:30:00Z",
"membership_status": "ACTIVE",
"organization_id": "org_1234567890",
"provisioning_method": "org_creator",
"roles": [
{
"id": "role_1234567890"
}
]
},
"update_time": "2024-01-15T10:30:00Z",
"user_profile": {
"email_verified": true,
"id": "usp_1234567890"
}
}
}
}
FieldTypeDescription
organizationobjectOrganization details associated with the signup
organization.idstringUnique identifier for the organization
userobjectUser details for the signed-up user
user.idstringUnique identifier for the user
user.emailstringEmail address of the user
user.create_timestringTimestamp of when the user was created
user.update_timestringTimestamp of when the user was last updated
user.user_profileobjectUser profile information
user.user_profile.idstringUnique identifier for the user profile
user.user_profile.email_verifiedbooleanIndicates if the user’s email is verified
user.membershipobjectOrganization membership details
user.membership.organization_idstringIdentifier for the organization
user.membership.membership_statusstringStatus of the membership (ACTIVE, PENDING, etc.)
user.membership.provisioning_methodstringMethod used for provisioning (org_creator, JIT, etc.)
user.membership.created_atstringTimestamp of when the membership was created
user.membership.accepted_atstringTimestamp of when the membership was accepted
user.membership.rolesarrayArray of roles assigned to the user

This webhook is triggered when a user logs in. The event type is user.login

user.login
{
"environment_id": "env_1234567890",
"id": "evt_2345678901",
"object": "UserLoginEvent",
"occurred_at": "2024-01-15T10:35:00.123456789Z",
"spec_version": "1",
"type": "user.login",
"data": {
"user": {
"create_time": "2024-01-15T10:30:00Z",
"email": "user@example.com",
"id": "usr_1234567890",
"membership": {
"accepted_at": "2024-01-15T10:30:00Z",
"created_at": "2024-01-15T10:30:00Z",
"display_name": "Acme Corporation",
"membership_status": "ACTIVE",
"name": "Acme Corporation",
"organization_id": "org_1234567890",
"provisioning_method": "org_creator",
"roles": [
{
"id": "role_1234567890"
}
]
},
"update_time": "2024-01-15T10:30:00Z",
"user_profile": {
"email_verified": true,
"family_name": "Doe",
"given_name": "John",
"id": "usp_1234567890",
"name": "John Doe"
}
}
}
}
FieldTypeDescription
userobjectUser details for the logged-in user
user.idstringUnique identifier for the user
user.emailstringEmail address of the user
user.create_timestringTimestamp of when the user was created
user.update_timestringTimestamp of when the user was last updated
user.user_profileobjectUser profile information
user.user_profile.idstringUnique identifier for the user profile
user.user_profile.namestringFull name of the user
user.user_profile.given_namestringGiven name of the user
user.user_profile.family_namestringFamily name of the user
user.user_profile.email_verifiedbooleanIndicates if the user’s email is verified
user.membershipobjectOrganization membership details
user.membership.organization_idstringIdentifier for the organization
user.membership.namestringName of the organization
user.membership.display_namestringDisplay name for the organization
user.membership.membership_statusstringStatus of the membership (ACTIVE, PENDING, etc.)
user.membership.provisioning_methodstringMethod used for provisioning (org_creator, JIT, etc.)
user.membership.created_atstringTimestamp of when the membership was created
user.membership.accepted_atstringTimestamp of when the membership was accepted
user.membership.rolesarrayArray of roles assigned to the user

This webhook is triggered when a user logs out. The event type is user.logout

user.logout
{
"environment_id": "env_1234567890",
"id": "evt_3456789012",
"object": "UserLogoutEvent",
"occurred_at": "2024-01-15T10:40:00.123456789Z",
"spec_version": "1",
"type": "user.logout",
"data": {
"user": {
"create_time": "2024-01-15T10:30:00Z",
"email": "user@example.com",
"external_id": "user_ext_123",
"id": "usr_1234567890",
"membership": {
"accepted_at": "2024-01-15T10:30:00Z",
"created_at": "2024-01-15T10:30:00Z",
"display_name": "Acme Corporation",
"membership_status": "ACTIVE",
"name": "Acme Corporation",
"organization_id": "org_1234567890",
"provisioning_method": "org_creator",
"roles": [
{
"id": "role_1234567890"
}
]
},
"update_time": "2024-01-15T10:35:00Z",
"user_profile": {
"email_verified": true,
"family_name": "Doe",
"given_name": "John",
"id": "usp_1234567890",
"name": "John Doe"
}
}
}
}
FieldTypeDescription
userobjectUser details for the logged-out user
user.idstringUnique identifier for the user
user.emailstringEmail address of the user
user.external_idstringExternal identifier for the user
user.create_timestringTimestamp of when the user was created
user.update_timestringTimestamp of when the user was last updated
user.user_profileobjectUser profile information
user.user_profile.idstringUnique identifier for the user profile
user.user_profile.namestringFull name of the user
user.user_profile.given_namestringGiven name of the user
user.user_profile.family_namestringFamily name of the user
user.user_profile.email_verifiedbooleanIndicates if the user’s email is verified
user.membershipobjectOrganization membership details
user.membership.organization_idstringIdentifier for the organization
user.membership.namestringName of the organization
user.membership.display_namestringDisplay name for the organization
user.membership.membership_statusstringStatus of the membership (ACTIVE, PENDING, etc.)
user.membership.provisioning_methodstringMethod used for provisioning (org_creator, JIT, etc.)
user.membership.created_atstringTimestamp of when the membership was created
user.membership.accepted_atstringTimestamp of when the membership was accepted
user.membership.rolesarrayArray of roles assigned to the user

This webhook is triggered when a user is invited to join an organization. The event type is user.organization_invitation

user.organization_invitation
{
"environment_id": "env_1234567890",
"id": "evt_4567890123",
"object": "OrgMembershipEvent",
"occurred_at": "2024-01-15T11:00:00.123456789Z",
"spec_version": "1",
"type": "user.organization_invitation",
"data": {
"organization": {
"external_id": "org_external_456",
"id": "org_2345678901"
},
"user": {
"create_time": "2024-01-15T11:00:00Z",
"email": "newuser@example.com",
"id": "usr_2345678901",
"membership": {
"created_at": "2024-01-15T11:00:00Z",
"display_name": "Example Corp",
"membership_status": "PENDING_INVITE",
"name": "Example Corp",
"organization_id": "org_2345678901",
"provisioning_method": "invitation",
"roles": [
{
"id": "role_2345678901"
}
]
},
"update_time": "2024-01-15T11:00:00Z",
"user_profile": {
"id": "usp_2345678901"
}
}
}
}
FieldTypeDescription
organizationobjectOrganization details for the invitation
organization.idstringUnique identifier for the organization
organization.external_idstringExternal identifier for the organization
userobjectUser details for the invited user
user.idstringUnique identifier for the user
user.emailstringEmail address of the user
user.create_timestringTimestamp of when the user was created
user.update_timestringTimestamp of when the user was last updated
user.user_profileobjectUser profile information
user.user_profile.idstringUnique identifier for the user profile
user.membershipobjectOrganization membership details
user.membership.organization_idstringIdentifier for the organization
user.membership.namestringName of the organization
user.membership.display_namestringDisplay name for the organization membership
user.membership.membership_statusstringStatus of the membership (PENDING_INVITE for invitations)
user.membership.provisioning_methodstringMethod used for provisioning (invitation in this case)
user.membership.created_atstringTimestamp of when the membership invitation was created
user.membership.rolesarrayArray of roles that will be assigned to the user upon acceptance

This webhook is triggered when a user’s organization membership is created. The event type is user.organization_membership_created

user.organization_membership_created
{
"environment_id": "env_1234567890",
"id": "evt_5678901234",
"object": "OrgMembershipEvent",
"occurred_at": "2024-01-15T11:05:00.123456789Z",
"spec_version": "1",
"type": "user.organization_membership_created",
"data": {
"organization": {
"external_id": "org_external_456",
"id": "org_2345678901"
},
"user": {
"create_time": "2024-01-15T11:00:00Z",
"email": "newuser@example.com",
"id": "usr_2345678901",
"membership": {
"accepted_at": "2024-01-15T11:05:00Z",
"created_at": "2024-01-15T11:00:00Z",
"display_name": "Example Corp",
"membership_status": "ACTIVE",
"name": "Example Corp",
"organization_id": "org_2345678901",
"provisioning_method": "invitation",
"roles": [
{
"id": "role_2345678901"
}
]
},
"update_time": "2024-01-15T11:00:00Z",
"user_profile": {
"email_verified": true,
"id": "usp_2345678901"
}
}
}
}
FieldTypeDescription
organizationobjectOrganization details
organization.idstringUnique identifier for the organization
organization.external_idstringExternal identifier for the organization
userobjectUser details
user.idstringUnique identifier for the user
user.emailstringEmail address of the user
user.create_timestringTimestamp of when the user was created
user.update_timestringTimestamp of when the user was last updated
user.user_profileobjectUser profile information
user.user_profile.idstringUnique identifier for the user profile
user.user_profile.email_verifiedbooleanIndicates if the user’s email is verified
user.membershipobjectOrganization membership details
user.membership.organization_idstringIdentifier for the organization
user.membership.namestringName of the organization
user.membership.display_namestringDisplay name for the organization
user.membership.membership_statusstringStatus of the membership (ACTIVE, PENDING, etc.)
user.membership.provisioning_methodstringMethod used for provisioning (org_creator, JIT, etc.)
user.membership.created_atstringTimestamp of when the membership was created
user.membership.accepted_atstringTimestamp of when the membership was accepted
user.membership.rolesarrayArray of roles assigned to the user

This webhook is triggered when a user’s organization membership is updated. The event type is user.organization_membership_updated

user.organization_membership_updated
{
"environment_id": "env_1234567890",
"id": "evt_6789012345",
"object": "OrgMembershipEvent",
"occurred_at": "2024-01-15T11:10:00.123456789Z",
"spec_version": "1",
"type": "user.organization_membership_updated",
"data": {
"organization": {
"external_id": "org_external_456",
"id": "org_2345678901"
},
"user": {
"create_time": "2024-01-15T11:00:00Z",
"email": "newuser@example.com",
"environment_id": "env_1234567890",
"external_id": "user_ext_456",
"id": "usr_2345678901",
"membership": {
"accepted_at": "2024-01-15T11:10:00Z",
"created_at": "2024-01-15T11:00:00Z",
"display_name": "Example Corp",
"membership_status": "ACTIVE",
"name": "Example Corp",
"organization_id": "org_2345678901",
"provisioning_method": "invitation",
"roles": [
{
"id": "role_3456789012"
}
]
},
"update_time": "2024-01-15T11:05:00Z",
"user_profile": {
"email_verified": true,
"id": "usp_2345678901"
}
}
}
}
FieldTypeDescription
organizationobjectOrganization details
organization.idstringUnique identifier for the organization
organization.external_idstringExternal identifier for the organization
userobjectUser details
user.idstringUnique identifier for the user
user.emailstringEmail address of the user
user.external_idstringExternal identifier for the user
user.environment_idstringIdentifier for the environment
user.create_timestringTimestamp of when the user was created
user.update_timestringTimestamp of when the user was last updated
user.user_profileobjectUser profile information
user.user_profile.idstringUnique identifier for the user profile
user.user_profile.email_verifiedbooleanIndicates if the user’s email is verified
user.membershipobjectOrganization membership details
user.membership.organization_idstringIdentifier for the organization
user.membership.namestringName of the organization
user.membership.display_namestringDisplay name for the organization membership
user.membership.membership_statusstringStatus of the membership (ACTIVE, PENDING, etc.)
user.membership.provisioning_methodstringMethod used for provisioning (JIT, org_creator, etc.)
user.membership.created_atstringTimestamp of when the membership was created
user.membership.accepted_atstringTimestamp of when the membership was accepted
user.membership.rolesarrayArray of roles assigned to the user

This webhook is triggered when a user’s organization membership is deleted. The event type is user.organization_membership_deleted

user.organization_membership_deleted
{
"environment_id": "env_1234567890",
"id": "evt_7890123456",
"object": "OrgMembershipEvent",
"occurred_at": "2024-01-15T11:15:00.123456789Z",
"spec_version": "1",
"type": "user.organization_membership_deleted",
"data": {
"organization": {
"external_id": "org_external_456",
"id": "org_2345678901"
},
"user": {
"create_time": "2024-01-15T11:00:00Z",
"email": "newuser@example.com",
"external_id": "user_ext_456",
"id": "usr_2345678901",
"membership": {
"created_at": "2024-01-15T11:00:00Z",
"display_name": "Example Corp",
"membership_status": "DELETED",
"organization_id": "org_2345678901",
"provisioning_method": "invitation",
"roles": [
{
"id": "role_3456789012"
}
]
},
"update_time": "2024-01-15T11:05:00Z",
"user_profile": {
"email_verified": true,
"id": "usp_2345678901"
}
}
}
}
FieldTypeDescription
organizationobjectOrganization details
organization.idstringUnique identifier for the organization
organization.external_idstringExternal identifier for the organization
userobjectUser details
user.idstringUnique identifier for the user
user.emailstringEmail address of the user
user.external_idstringExternal identifier for the user
user.create_timestringTimestamp of when the user was created
user.update_timestringTimestamp of when the user was last updated
user.user_profileobjectUser profile information
user.user_profile.idstringUnique identifier for the user profile
user.user_profile.email_verifiedbooleanIndicates if the user’s email is verified
user.membershipobjectOrganization membership details
user.membership.organization_idstringIdentifier for the organization
user.membership.display_namestringDisplay name for the organization membership
user.membership.membership_statusstringStatus of the membership (DELETED in this case)
user.membership.provisioning_methodstringMethod used for provisioning (JIT, org_creator, etc.)
user.membership.created_atstringTimestamp of when the membership was created
user.membership.rolesarrayArray of roles that were assigned to the user