Skip to main content

Authentication & sessions

Sign-ins, sign-outs, MFA, password and email changes, and session revocation. Install the pack from Actions & Schemas → Add standard events in the app. Standard events explains the conventions every action here follows.

ActionDescription
user.signed_inA user signed in. method: password, sso, magic_link, passkey or oauth.
user.sign_in_failedA sign-in attempt failed; say why in reason.
user.signed_outA user signed out.
session.revokedA session was ended by an admin, by policy, or from another device.
user.mfa_enrolledA user added a second factor. factor: totp, sms, webauthn or similar.
user.mfa_removedA second factor was removed from a user.
user.password_changedA user changed their password.
user.password_reset_requestedA password reset link was requested.
user.password_resetA password was set through a reset link.
user.email_changedA user's email address changed; keep the old and new addresses in data.
user.email_verifiedA user verified their email address.
user.locked_outA user was locked out after repeated failures.

user.signed_in​

A user signed in. method: password, sso, magic_link, passkey or oauth.

FieldValue
Targetsuser, session
Required metadatamethod
Optional metadatamfa_method, sso_connection_id, source, reason, request_id
OCSFAuthentication (3002), activity_id 1
{
"event": "user.signed_in",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
{
"type": "session",
"id": "sess_01JA2W9P"
}
],
"metadata": {
"method": "password",
"mfa_method": "totp",
"sso_connection_id": "conn_01JA2OKTA"
}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"method": {
"type": "string"
},
"mfa_method": {
"type": "string"
},
"sso_connection_id": {
"type": "string"
},
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"required": [
"method"
],
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

user.sign_in_failed​

A sign-in attempt failed; say why in reason.

FieldValue
Targetsuser
Required metadatamethod
Optional metadatasource, reason, request_id
OCSFAuthentication (3002), activity_id 1, status_id 2 (Failure)
{
"event": "user.sign_in_failed",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "anonymous"
},
"targets": [
{
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
}
],
"metadata": {
"method": "password",
"reason": "invalid_password"
}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"method": {
"type": "string"
},
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"required": [
"method"
],
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

user.signed_out​

A user signed out.

FieldValue
Targetsuser, session
Required metadataNone
Optional metadatasource, reason, request_id
OCSFAuthentication (3002), activity_id 2
{
"event": "user.signed_out",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
{
"type": "session",
"id": "sess_01JA2W9P"
}
],
"metadata": {}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

session.revoked​

A session was ended by an admin, by policy, or from another device.

FieldValue
Targetsuser, session
Required metadataNone
Optional metadatasource, reason, request_id
OCSFAuthentication (3002), activity_id 2
{
"event": "session.revoked",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
{
"type": "session",
"id": "sess_01JA2W9P"
}
],
"metadata": {}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

user.mfa_enrolled​

A user added a second factor. factor: totp, sms, webauthn or similar.

FieldValue
Targetsuser
Required metadatafactor
Optional metadatasource, reason, request_id
OCSFUser Management (3007), activity_id 12
{
"event": "user.mfa_enrolled",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
}
],
"metadata": {
"factor": "totp"
}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"factor": {
"type": "string"
},
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"required": [
"factor"
],
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

user.mfa_removed​

A second factor was removed from a user.

FieldValue
Targetsuser
Required metadatafactor
Optional metadatasource, reason, request_id
OCSFUser Management (3007), activity_id 13
{
"event": "user.mfa_removed",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
}
],
"metadata": {
"factor": "totp"
}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"factor": {
"type": "string"
},
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"required": [
"factor"
],
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

user.password_changed​

A user changed their password.

FieldValue
Targetsuser
Required metadataNone
Optional metadatasource, reason, request_id
OCSFUser Management (3007), activity_id 8
{
"event": "user.password_changed",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
}
],
"metadata": {}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

user.password_reset_requested​

A password reset link was requested.

FieldValue
Targetsuser
Required metadataNone
Optional metadatasource, reason, request_id
OCSFUser Management (3007), activity_id 99
{
"event": "user.password_reset_requested",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
}
],
"metadata": {}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

user.password_reset​

A password was set through a reset link.

FieldValue
Targetsuser
Required metadataNone
Optional metadatasource, reason, request_id
OCSFUser Management (3007), activity_id 9
{
"event": "user.password_reset",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
}
],
"metadata": {}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

user.email_changed​

A user's email address changed; keep the old and new addresses in data.

FieldValue
Targetsuser
Required metadataNone
Optional metadatasource, reason, request_id
OCSFUser Management (3007), activity_id 2
{
"event": "user.email_changed",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
}
],
"metadata": {},
"data": {
"previous_email": "smith@champion.example",
"email": "mike@acme.example"
}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

user.email_verified​

A user verified their email address.

FieldValue
Targetsuser
Required metadataNone
Optional metadatasource, reason, request_id
OCSFUser Management (3007), activity_id 2
{
"event": "user.email_verified",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
}
],
"metadata": {}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

user.locked_out​

A user was locked out after repeated failures.

FieldValue
Targetsuser
Required metadataNone
Optional metadatalockout_until, source, reason, request_id
OCSFUser Management (3007), activity_id 6
{
"event": "user.locked_out",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "system",
"id": "svc_scheduler",
"name": "Scheduler"
},
"targets": [
{
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
}
],
"metadata": {
"lockout_until": "2026-10-06T14:33:11Z"
}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"lockout_until": {
"type": "string"
},
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}