Skip to main content

Webhook events and payloads

You're reading Identity & Access Management 7.2.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

This guide details the webhook event types dispatched by WSO2 Identity Server. For each event, you'll find JSON payload examples and descriptions of their properties.

note

In webhook event payloads, initiatorIpAddress (when present) represents the IP address of the initiator that triggered the event.

Login events​

WSO2 Identity Server dispatches webhook events for both successful and failed login attempts, providing detailed context for each.

Login success event​

WSO2 Identity Server sends a loginSuccess event when a user successfully authenticates.

Example payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "051f0c37-b689-44d4-b7d2-29b980ece273",
"iat": 1751705149662,
"rci": "05268edb-9a87-4656-87c0-0fb674dd03b1",
"events": {
"https://schemas.identity.wso2.org/events/login/event-type/loginSuccess": {
"initiatorType": "USER",
"user": {
"id": "d4002616-f00c-49d5-b9b7-63b063819049",
"claims": [
{
"uri": "http://wso2.org/claims/username",
"value": "[email protected]"
}
],
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"ref": "https://localhost:9443/t/myorg.com/scim2/Users/d4002616-f00c-49d5-b9b7-63b063819049"
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"userStore": {
"id": "UFJJTUFSWQ==",
"name": "PRIMARY"
},
"application": {
"id": "40d982e5-23be-4ee1-8540-9cb696d8c321",
"name": "MyApp"
},
"action": "LOGIN",
"authenticationMethods": [
"BasicAuthenticator"
]
}
}
}

The events object contains the actual event data for a successful login, identified by the URI https://schemas.identity.wso2.org/events/login/event-type/loginSuccess. This URI signifies a successful login event.

The table below explains each property in the event data.

PropertyDescription
userContains information about the authenticated user along with user resident organization.
tenantRepresents the root organization (tenant) under which the login processes.
organizationRepresents the organization under which the login processes.
userStoreIndicates the user store in which the user's data gets managed.
applicationContains information of the application through which the login occurred.
authenticationMethodsAn array of authentication methods used for the successful login (for example BasicAuthenticator).
initiatorTypeIndicates whether an administrator, user, or application initiated the event.
initiatorIpAddressIndicates the IP address of the initiator that triggered the event.
actionIndicates the flow that triggered the event. The value is LOGIN.

Login failed event​

WSO2 Identity Server sends a loginFailed event when a login attempt fails.

Example payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "7ef94943-2004-4f72-b476-9baffe5623c7",
"iat": 1751709144508,
"rci": "05268edb-9a87-4656-87c0-0fb674dd03b1",
"events": {
"https://schemas.identity.wso2.org/events/login/event-type/loginFailed": {
"initiatorType": "USER",
"user": {
"claims": [
{
"uri": "http://wso2.org/claims/username",
"value": "[email protected]"
},
{
"uri": "http://wso2.org/claims/emailaddress",
"value": "[email protected]"
},
{
"uri": "http://wso2.org/claims/lastname",
"value": "Doe"
},
{
"uri": "http://wso2.org/claims/givenname",
"value": "John"
}
],
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
}
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"application": {
"id": "63d8a96f-ff87-4f38-a1d7-4d10ee470d9a",
"name": "Test App"
},
"reason": {
"description": "User authentication failed due to invalid credentials",
"context": {
"failedStep": {
"step": 1,
"idp": "LOCAL",
"authenticator": "BasicAuthenticator"
}
}
},
"action": "LOGIN"
}
}
}

The events object contains the actual event data for a failed login, identified by the URI https://schemas.identity.wso2.org/events/login/event-type/loginFailed. This URI signifies a successful login event.

The table below explains each property in the event data.

PropertyDescription
user

Contains information about the authenticating user.

tenant

Represents the root organization (tenant) that processes the login.

organization

Represents the organization that processes the login.

userStore

Indicates the user store that manages the user's data if applicable.

application

Contains information about the application that initiated the login.

reason

Provides context information for the failure including:

  • description: Human-readable explanation of why the login failed (for example "User authentication failed due to invalid credentials")

  • context: Details about the failure point in the authentication flow including:

    • Step number where the failure occurred
    • Identity Provider (IdP) involved (for example "LOCAL")
    • Authenticator used (for example BasicAuthenticator)
initiatorType

Indicates whether an administrator, user, or application initiated the event.

initiatorIpAddress

Indicates the IP address of the initiator that triggered the event.

action

Indicates the flow that triggered the event. The value is LOGIN.

Registration events​

WSO2 Identity Server dispatches webhook events for successful and failed user registrations. Each event provides detailed context.

Registration success event​

WSO2 Identity Server sends a registrationSuccess event when a new user account gets successfully registered in a state where the user can login and access.

Example payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "e558b025-58ae-4e29-8242-75d6bfdfcbda",
"iat": 1751709420327,
"rci": "05268edb-9a87-4656-87c0-0fb674dd03b1",
"events": {
"https://schemas.identity.wso2.org/events/registration/event-type/registrationSuccess": {
"initiatorType": "ADMIN",
"user": {
"id": "3fae4858-4b26-4608-9df4-78ae75e3adda",
"claims": [
{
"uri": "http://wso2.org/claims/username",
"value": "[email protected]"
},
{
"uri": "http://wso2.org/claims/emailaddress",
"value": "[email protected]"
},
{
"uri": "http://wso2.org/claims/lastname",
"value": "Doe"
},
{
"uri": "http://wso2.org/claims/givenname",
"value": "John"
}
],
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"ref": "https://localhost:9443/t/myorg.com/scim2/Users/3fae4858-4b26-4608-9df4-78ae75e3adda"
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"userStore": {
"id": "REVGQVVMVA==",
"name": "DEFAULT"
},
"action": "REGISTER"
}
}
}

The events object contains the actual event data for a successful registration, identified by the URI https://schemas.identity.wso2.org/events/registration/event-type/registrationSuccess. This URI signifies a successful user registration event.

The table below explains each property in the event data.

PropertyDescription
userContains information about the user who registers.
tenantRepresents the root organization (tenant) that processes the user registration.
organizationRepresents the organization that processes the user registration.
userStoreIndicates the user store that manages the user's data.
initiatorTypeIndicates whether an administrator, user, or application initiated the registration. Refer to initiatorType and action properties for details.
initiatorIpAddressIndicates the IP address of the initiator that triggered the event.
actionIndicates whether the registration uses direct admin registration, user self-registration, or admin invite flow. Refer to initiatorType and action properties for details.

Registration failure event​

WSO2 Identity Server sends a registrationFailed event when a user registration attempt fails.

Example payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "43e76a18-f3b3-400c-bf76-9761b4ec5d57",
"iat": 1751565405544,
"rci": "05268edb-9a87-4656-87c0-0fb674dd03b1",
"events": {
"https://schemas.identity.wso2.org/events/registration/event-type/registrationFailed": {
"initiatorType": "USER",
"user": {
"claims": [
{
"uri": "http://wso2.org/claims/username",
"value": "peter"
},
{
"uri": "http://wso2.org/claims/emailaddress",
"value": "[email protected]"
},
{
"uri": "http://wso2.org/claims/givenname",
"value": "Peter"
}
],
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"action": "REGISTER",
"reason": {
"description": "The provided username already exists in the tenant: myorg.com"
}
}
}
}

The events object contains the actual event data for a failed registration, identified by the URI https://schemas.identity.wso2.org/events/registration/event-type/registrationFailed. This URI signifies a failed user registration event.

The table below explains each property in the event data.

PropertyDescription
userContains information about the user attempting registration, including provided claims.
tenantRepresents the root organization (tenant) that processed the registration attempt.
organizationRepresents the organization that processed the registration attempt.
initiatorTypeIndicates whether an administrator, user, or application initiated the registration. Refer to initiatorType and action properties for details.
initiatorIpAddressIndicates the IP address of the initiator that triggered the event.
actionIndicates whether the registration uses direct admin registration, user self-registration, or admin invite flow. Refer to initiatorType and action properties for details.
reasonProvides context information explaining the registration failure.

initiatorType and action properties for registration events​

The initiatorType and the action property together show which flow triggers a user registration.

The table below explains how these properties differ based on each flow.

FlowValue of initiatorTypeValue of actionDescription
Admin initiated direct user registrationADMINREGISTEROccurs when an administrator directly registers a user via console or SCIM 2.0 Users API.
Admin initiated user invite to registerADMININVITEOccurs when an administrator invites a user to register via console or SCIM 2.0 Users API.
User self registrationUSERREGISTEROccurs when a user registers by clicking the 'Register' link in the login page or via self registration APIs.
Application initiated user registrationAPPLICATIONREGISTEROccurs when an application with appropriate permissions automatically registers a user. This happens during automated user provisioning or integration with external identity management systems via SCIM 2.0 Users API.

Token events​

WSO2 Identity Server dispatches webhook events for both token issuance and revocation. Each event provides detailed context.

Access token issued event​

WSO2 Identity Server sends an accessTokenIssued event when an access token gets successfully issued to a client application.

Example payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "f30f6807-192a-40b0-99b9-b176d3b94a94",
"iat": 1755541962092,
"rci": "05268edb-9a87-4656-87c0-0fb674dd03b1",
"events": {
"https://schemas.identity.wso2.org/events/token/event-type/accessTokenIssued": {
"initiatorType": "USER",
"user": {
"id": "1801d35e-1339-4c16-9c53-61321cf37fb9",
"claims": [
{
"uri": "http://wso2.org/claims/username",
"value": "peter"
},
{
"uri": "http://wso2.org/claims/emailaddress",
"value": "[email protected]"
}
],
"organization": {
"id": "10084a8d-113f-4211-a0d5-efe36b082211",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"ref": "https://localhost:9443/t/myorg.com/scim2/Users/1801d35e-1339-4c16-9c53-61321cf37fb9"
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "10084a8d-113f-4211-a0d5-efe36b082211",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"userStore": {
"id": "UFJJTUFSWQ==",
"name": "PRIMARY"
},
"application": {
"name": "Test App",
"consumerKey": "eaSbhGeDL7ek2ypVrb0h4ZYMSN0a"
},
"accessToken": {
"tokenType": "Opaque",
"iat": "1755541962069",
"grantType": "authorization_code"
},
"action": "TOKEN_ISSUE"
}
}
}

The events object contains the actual event data for a successful token issuance, identified by the URI https://schemas.identity.wso2.org/events/token/event-type/accessTokenIssued. This URI signifies a successful access token issuance event.

The table below explains each property in the event data.

PropertyDescription
user

Contains information about the user for whom the token gets issued along with user resident organization.

tenant

Represents the root organization (tenant) under which the token issuance processes.

organization

Represents the organization under which the token issuance processes.

userStore

Indicates the user store that manages the user's data.

application

Contains information about the application that requested the token.

accessToken

Contains details about the issued token including:

  • tokenType: Token type (for example "Opaque" or "jwt")
  • iat: Token issued at timestamp
  • grantType: OAuth2 grant type used for token issuance (for example "authorization_code")
initiatorType

Indicates whether an administrator, user, or application initiated the event.

initiatorIpAddress

Indicates the IP address of the initiator that triggered the event.

action

Indicates the flow that triggered the event. The value is TOKEN_ISSUE.

Access token revoked event​

WSO2 Identity Server sends an accessTokenRevoked event when an access token gets revoked.

Example payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "d801a275-e64b-4998-90d9-2ed1601a0d19",
"iat": 1755541966592,
"rci": "48eaeb32-76c0-4af8-b04e-9ce0c00cb61f",
"events": {
"https://schemas.identity.wso2.org/events/token/event-type/accessTokenRevoked": {
"initiatorType": "USER",
"user": {
"id": "1801d35e-1339-4c16-9c53-61321cf37fb9",
"claims": [
{
"uri": "http://wso2.org/claims/emailaddress",
"value": "[email protected]"
},
{
"uri": "http://wso2.org/claims/username",
"value": "peter"
}
],
"organization": {
"id": "10084a8d-113f-4211-a0d5-efe36b082211",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"ref": "https://localhost:9443/t/myorg.com/scim2/Users/1801d35e-1339-4c16-9c53-61321cf37fb9"
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "10084a8d-113f-4211-a0d5-efe36b082211",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"userStore": {
"id": "UFJJTUFSWQ==",
"name": "PRIMARY"
},
"applications": [
{
"id": "eb395ddd-1280-46e9-98fb-810948c1dab4",
"name": "Test App",
"consumerKey": "eaSbhGeDL7ek2ypVrb0h4ZYMSN0a"
}
],
"action": "TOKEN_REVOKE"
}
}
}

The events object contains the actual event data for a token revocation, identified by the URI https://schemas.identity.wso2.org/events/token/event-type/accessTokenRevoked. This URI signifies an access token revocation event.

The table below explains each property in the event data.

PropertyDescription
userContains information about the user whose token gets revoked.
tenantRepresents the root organization (tenant) that processes the token revocation.
organizationRepresents the organization that processes the token revocation.
userStoreIndicates the user store that manages the user's data.
applicationsContains information about applications associated with the revoked token. This appears as an array because token revocation can affect multiple applications.
initiatorTypeIndicates whether an administrator, user, or application initiated the event.
initiatorIpAddressIndicates the IP address of the initiator that triggered the event.
actionIndicates the flow that triggered the event. The value is TOKEN_REVOKE.

Session events​

WSO2 Identity Server dispatches webhook events for session establishment, presentation, and revocation. Each event provides detailed context about user sessions and associated applications.

Session established event​

WSO2 Identity Server sends a sessionEstablished event when a user logs in for the first time and creates a new session.

This event triggers for every new session creation during the login process. It helps you track when users establish new sessions in your system.

Example payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "1a9b7a5f-42f3-4f87-a03d-6962b32a219b",
"iat": 1755541960053,
"rci": "b8b6ccbd-69b0-47d3-b0ae-b2b0df085f7c",
"events": {
"https://schemas.identity.wso2.org/events/session/event-type/sessionEstablished": {
"initiatorType": "USER",
"user": {
"id": "1801d35e-1339-4c16-9c53-61321cf37fb9",
"claims": [
{
"uri": "http://wso2.org/claims/username",
"value": "peter"
}
],
"organization": {
"id": "10084a8d-113f-4211-a0d5-efe36b082211",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"ref": "https://localhost:9443/t/myorg.com/scim2/Users/1801d35e-1339-4c16-9c53-61321cf37fb9"
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "10084a8d-113f-4211-a0d5-efe36b082211",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"userStore": {
"id": "UFJJTUFSWQ==",
"name": "PRIMARY"
},
"application": {
"id": "eb395ddd-1280-46e9-98fb-810948c1dab4",
"name": "Test App"
},
"session": {
"id": "68d1f2861461c69d8e821d91839bbf8e23ef04fb96c1ac655f452d94d1fd6e4d",
"loginTime": 1755541960025,
"applications": [
{
"id": "eb395ddd-1280-46e9-98fb-810948c1dab4",
"name": "Test App"
}
]
},
"action": "LOGIN"
}
}
}

The events object contains the actual event data for a session establishment, identified by the URI https://schemas.identity.wso2.org/events/session/event-type/sessionEstablished. This URI signifies a new session establishment event.

The table below explains each property in the event data.

PropertyDescription
user

Contains information about the user who established the session.

tenant

Represents the root organization (tenant) under which the session gets established.

organization

Represents the organization under which the session gets established.

userStore

Indicates the user store that manages the user's data.

application

Contains information about the application through which the session gets established.

session

Contains details about the established session including:

  • id: Unique identifier for the session
  • loginTime: Timestamp when the session gets created
  • applications: Array of applications associated with this session
initiatorType

Indicates whether an administrator, user, or application initiated the event.

initiatorIpAddress

Indicates the IP address of the initiator that triggered the event.

action

Indicates the flow that triggered the event. The value is LOGIN.

Session presented event​

WSO2 Identity Server sends a sessionPresented event when an existing session gets used for authentication.

Example payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "2837280b-5229-462a-afb6-dc84e97ca152",
"iat": 1755541961796,
"rci": "60f7dd4f-a791-4135-94d6-d26795629361",
"events": {
"https://schemas.identity.wso2.org/events/session/event-type/sessionPresented": {
"initiatorType": "USER",
"user": {
"id": "1801d35e-1339-4c16-9c53-61321cf37fb9",
"claims": [
{
"uri": "http://wso2.org/claims/username",
"value": "peter"
}
],
"organization": {
"id": "10084a8d-113f-4211-a0d5-efe36b082211",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"ref": "https://localhost:9443/t/myorg.com/scim2/Users/1801d35e-1339-4c16-9c53-61321cf37fb9"
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "10084a8d-113f-4211-a0d5-efe36b082211",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"userStore": {
"id": "UFJJTUFSWQ==",
"name": "PRIMARY"
},
"application": {
"id": "eb395ddd-1280-46e9-98fb-810948c1dab4",
"name": "Test App"
},
"session": {
"id": "68d1f2861461c69d8e821d91839bbf8e23ef04fb96c1ac655f452d94d1fd6e4d",
"loginTime": 1755541961792,
"applications": [
{
"id": "eb395ddd-1280-46e9-98fb-810948c1dab4",
"name": "Test App"
}
]
},
"action": "LOGIN"
}
}
}

The events object contains the actual event data for a session presentation, identified by the URI https://schemas.identity.wso2.org/events/session/event-type/sessionPresented. This URI signifies a session presentation event.

The table below explains each property in the event data.

PropertyDescription
user

Contains information about the user whose session gets presented.

tenant

Represents the root organization (tenant) under which the session gets presented.

organization

Represents the organization under which the session gets presented.

userStore

Indicates the user store that manages the user's data.

application

Contains information about the application that requested the session presentation.

session

Contains details about the presented session including:

  • id: Unique identifier for the session
  • loginTime: Timestamp when the session originally started
  • applications: Array of applications associated with this session
initiatorType

Indicates whether an administrator, user, or application initiated the event.

initiatorIpAddress

Indicates the IP address of the initiator that triggered the event.

action

Indicates the flow that triggered the event. The value is LOGIN.

Session revoked event​

WSO2 Identity Server sends a sessionRevoked event when one or more user sessions get revoked.

Example payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "61503199-bdf7-4f44-8f50-60c78bf419ad",
"iat": 1755541966644,
"rci": "48eaeb32-76c0-4af8-b04e-9ce0c00cb61f",
"events": {
"https://schemas.identity.wso2.org/events/session/event-type/sessionRevoked": {
"initiatorType": "USER",
"user": {
"id": "1801d35e-1339-4c16-9c53-61321cf37fb9",
"claims": [
{
"uri": "http://wso2.org/claims/username",
"value": "peter"
}
],
"organization": {
"id": "10084a8d-113f-4211-a0d5-efe36b082211",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"ref": "https://localhost:9443/t/myorg.com/scim2/Users/1801d35e-1339-4c16-9c53-61321cf37fb9"
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "10084a8d-113f-4211-a0d5-efe36b082211",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"userStore": {
"id": "UFJJTUFSWQ==",
"name": "PRIMARY"
},
"sessions": [
{
"id": "68d1f2861461c69d8e821d91839bbf8e23ef04fb96c1ac655f452d94d1fd6e4d",
"loginTime": 1755541961792,
"applications": [
{
"id": "eb395ddd-1280-46e9-98fb-810948c1dab4",
"name": "Test App"
}
]
}
],
"action": "LOGOUT"
}
}
}

The events object contains the actual event data for a session revocation, identified by the URI https://schemas.identity.wso2.org/events/session/event-type/sessionRevoked. This URI signifies a session revocation event.

The table below explains each property in the event data.

PropertyDescription
user

Contains information about the user whose sessions get revoked.

tenant

Represents the root organization (tenant) that processes the session revocation.

organization

Represents the organization that processes the session revocation.

userStore

Indicates the user store that manages the user's data.

sessions

Array of revoked sessions. Each session contains:

  • id: Unique identifier for the revoked session
  • loginTime: Timestamp when the session originally started
  • applications: Array of applications that lost access due to session revocation

Credential update events​

WSO2 Identity Server sends a credentialUpdated event when a user successfully updates credential information. This event currently triggers only for password updates.

Example payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "24fc890a-41c5-4397-9cc9-b9f48102384e",
"iat": 1751566637663,
"rci": "05268edb-9a87-4656-87c0-0fb674dd03b1",
"events": {
"https://schemas.identity.wso2.org/events/credential/event-type/credentialUpdated": {
"initiatorType": "ADMIN",
"user": {
"id": "85071750-3d1f-4ba4-b58f-991532e2742b",
"claims": [
{
"uri": "http://wso2.org/claims/emailaddress",
"value": "[email protected]"
}
],
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"ref": "https://localhost:9443/t/myorg.com/scim2/Users/85071750-3d1f-4ba4-b58f-991532e2742b"
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"userStore": {
"id": "UFJJTUFSWQ==",
"name": "PRIMARY"
},
"credentialType": "PASSWORD",
"action": "UPDATE"
}
}
}

The events object contains the actual event data for a credential update, identified by the URI https://schemas.identity.wso2.org/events/credential/event-type/credentialUpdated. This URI signifies a successful credential update event.

The table below explains each property in the event data.

PropertyDescription
userContains information about the user whose credential updated.
tenantRepresents the root organization (tenant) that processed the credential update.
organizationRepresents the organization that processed the credential update.
userStoreIndicates the user store that manages the user's data.
credentialTypeShows which credential the user updates. Currently shows "PASSWORD" as events trigger only for password updates.
initiatorTypeIndicates whether an administrator, user, or application initiated the password update. Refer to initiatorType and action properties for details.
initiatorIpAddressIndicates the IP address of the initiator that triggered the event.
actionIndicates whether the password update uses a reset flow, update flow, or invite flow. Refer to initiatorType and action properties for details.

initiatorType and action properties for credential update events​

The initiatorType and the action property together show which flow triggers a password update.

The table below explains how these properties differ based on each flow.

FlowValue of initiatorTypeValue of actionDescription
User initiated password updateUSERUPDATEOccurs when a user updates their password through profile settings in My Account app or via SCIM 2.0 Me API .
User initiated password resetUSERRESETOccurs when a user forgets their password and initiates a reset flow to regain account access.
Admin initiated password updateADMINUPDATEOccurs when an administrator updates a user's password directly via console or SCIM 2.0 Users API.
Admin initiated password resetADMINRESETOccurs when an administrator initiates a forced password reset and the user resets the password via that request.
Admin initiated user invite to set passwordADMININVITEOccurs when an administrator invites a new user to join the system. The user then sets their password.
Application initiated password updateAPPLICATIONUPDATEOccurs when an application with appropriate permissions automatically updates a user's password. This happens during automated user provisioning or integration with external identity management systems via SCIM 2.0 Users API.

User account management events​

WSO2 Identity Server dispatches webhook events for changes to user profiles and account statuses. These events provide detailed context for each action, helping you synchronize external systems with user data and manage user lifecycle within your applications.

User created event​

WSO2 Identity Server sends a userCreated event when a new user account gets created in the system.

This event triggers when administrators, applications, or users create accounts through various flows like direct registration, invitations, or automated provisioning.

Example payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "b6148a40-9e3c-45c4-b57d-85c7da482ad5",
"iat": 1755618921154,
"rci": "dca8d1d5-5a8f-4141-aac6-2abcb27fd168",
"events": {
"https://schemas.identity.wso2.org/events/user/event-type/userCreated": {
"initiatorType": "ADMIN",
"user": {
"id": "3987d74e-8432-4f4d-b1a8-cad463af843d",
"claims": [
{
"uri": "http://wso2.org/claims/username",
"value": "[email protected]"
},
{
"uri": "http://wso2.org/claims/emailaddress",
"value": "[email protected]"
},
{
"uri": "http://wso2.org/claims/lastname",
"value": "Doe"
},
{
"uri": "http://wso2.org/claims/givenname",
"value": "John"
}
],
"organization": {
"id": "10084a8d-113f-4211-a0d5-efe36b082211",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"ref": "https://localhost:9443/t/myorg.com/scim2/Users/3987d74e-8432-4f4d-b1a8-cad463af843d"
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "10084a8d-113f-4211-a0d5-efe36b082211",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"userStore": {
"id": "UFJJTUFSWQ==",
"name": "PRIMARY"
},
"action": "REGISTER"
}
}
}

The events object contains the actual event data for a user creation, identified by the URI https://schemas.identity.wso2.org/events/user/event-type/userCreated. This URI signifies a successful user creation event.

The table below explains each property in the event data.

PropertyDescription
userContains information about the newly created user including user claims and organization details.
tenantRepresents the root organization (tenant) that processed the user creation.
organizationRepresents the organization that processed the user creation.
userStoreIndicates the user store that manages the user's data.
initiatorTypeIndicates whether an administrator, user, or application initiated the user creation.
initiatorIpAddressIndicates the IP address of the initiator that triggered the event.
actionShows the user creation flow type. Can have values like REGISTER for direct registration or INVITE for invitation-based creation.

User profile updated event​

WSO2 Identity Server sends a userProfileUpdated event when a user updates profile information.

Example payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "2371a91d-66e8-400b-a8de-6e8ee2b8175e",
"iat": 1751569642578,
"rci": "05268edb-9a87-4656-87c0-0fb674dd03b1",
"events": {
"https://schemas.identity.wso2.org/events/user/event-type/userProfileUpdated": {
"initiatorType": "ADMIN",
"user": {
"id": "85071750-3d1f-4ba4-b58f-991532e2742b",
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"ref": "https://localhost:9443/t/myorg.com/scim2/Users/85071750-3d1f-4ba4-b58f-991532e2742b",
"addedClaims": [
{
"uri": "http://wso2.org/claims/organization",
"value": "myorg"
}
],
"updatedClaims": [
{
"uri": "http://wso2.org/claims/emailAddresses",
"value": "[email protected]"
}
]
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"userStore": {
"id": "UFJJTUFSWQ==",
"name": "PRIMARY"
},
"action": "UPDATE"
}
}
}

The events object contains the actual event data for a user profile update, identified by the URI https://schemas.identity.wso2.org/events/user/event-type/userProfileUpdated. This URI signifies a successful user profile update event.

The table below explains each property in the event data.

PropertyDescription
user

Contains information about the user whose profile updated. This includes:

  • addedClaims: Array of claims (attributes) newly added to the user's profile during the update
  • updatedClaims: Array of claims (attributes) that the update process changes in the user's profile
  • removedClaims: Array of claims (attributes) that the update process removes from the user's profile
tenant

Represents the root organization (tenant) that processed the profile update.

organization

Represents the organization that processed the profile update.

userStore

Indicates the user store that manages the user's data.

initiatorType

Indicates whether an administrator, user, or application initiated the profile update.

initiatorIpAddress

Indicates the IP address of the initiator that triggered the event.

action

Shows the profile update flow type. Currently has the value UPDATE, indicating a standard profile update flow.

User disabled event​

WSO2 Identity Server sends a userDisabled event when a user account gets disabled.

Example payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "d32b6be7-1675-4e7d-b118-7346ad53c046",
"iat": 1751570468806,
"rci": "05268edb-9a87-4656-87c0-0fb674dd03b1",
"events": {
"https://schemas.identity.wso2.org/events/user/event-type/userDisabled": {
"initiatorType": "ADMIN",
"user": {
"id": "85071750-3d1f-4ba4-b58f-991532e2742b",
"claims": [
{
"uri": "http://wso2.org/claims/emailaddress",
"value": "[email protected]"
}
],
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"ref": "https://localhost:9443/t/myorg.com/scim2/Users/85071750-3d1f-4ba4-b58f-991532e2742b"
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"userStore": {
"id": "UFJJTUFSWQ==",
"name": "PRIMARY"
},
"action": "USER_ACCOUNT_DISABLE"
}
}
}

The events object contains the actual event data for a user disabled event, identified by the URI https://schemas.identity.wso2.org/events/user/event-type/userDisabled. This URI signifies a successful user account disablement.

The table below explains each property in the event data.

PropertyDescription
userContains information about the user.
tenantRepresents the root organization (tenant) that processed the user disablement.
organizationRepresents the organization that processed the user disablement.
userStoreIndicates the user store that manages the user's data.
initiatorTypeIndicates whether an administrator or application initiated the user disablement.
initiatorIpAddressIndicates the IP address of the initiator that triggered the event.
actionIndicates the flow that triggered the event. The value is USER_ACCOUNT_DISABLE.

User enabled event​

WSO2 Identity Server sends a userEnabled event when a user account gets enabled. This event signifies that a previously disabled user account becomes reactivated.

Example payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "285a876f-ea57-47b6-9a9d-fc452a04413a",
"iat": 1751570713348,
"rci": "05268edb-9a87-4656-87c0-0fb674dd03b1",
"events": {
"https://schemas.identity.wso2.org/events/user/event-type/userEnabled": {
"initiatorType": "ADMIN",
"user": {
"id": "85071750-3d1f-4ba4-b58f-991532e2742b",
"claims": [
{
"uri": "http://wso2.org/claims/emailaddress",
"value": "[email protected]"
}
],
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"ref": "https://localhost:9443/t/myorg.com/scim2/Users/85071750-3d1f-4ba4-b58f-991532e2742b"
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"userStore": {
"id": "UFJJTUFSWQ==",
"name": "PRIMARY"
},
"action": "USER_ACCOUNT_ENABLE"
}
}
}

The events object contains the actual event data for a user enabled event, identified by the URI https://schemas.identity.wso2.org/events/user/event-type/userEnabled. This URI signifies a successful user account enablement.

The table below explains each property in the event data.

PropertyDescription
userContains information about the user whose account enabled.
tenantRepresents the root organization (tenant) that processed the user enablement.
organizationRepresents the organization that processed the user enablement.
userStoreIndicates the user store that manages the user's data.
initiatorTypeIndicates whether an administrator or application initiated the user enablement.
initiatorIpAddressIndicates the IP address of the initiator that triggered the event.
actionIndicates the flow that triggered the event. The value is USER_ACCOUNT_ENABLE.

User account locked event​

WSO2 Identity Server sends a userAccountLocked event when a user account gets locked.

This event triggers when accounts get locked due to failed login attempts, administrative action, or security policies. Locked accounts prevent users from authenticating until unlocked.

Example payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "5ab9d903-a718-4e71-9a16-314203f02778",
"iat": 1755619049121,
"rci": "24b22c09-ae39-4942-896f-5c14fd18b4e0",
"events": {
"https://schemas.identity.wso2.org/events/user/event-type/userAccountLocked": {
"initiatorType": "ADMIN",
"user": {
"id": "3987d74e-8432-4f4d-b1a8-cad463af843d",
"claims": [
{
"uri": "http://wso2.org/claims/emailaddress",
"value": "[email protected]"
}
],
"organization": {
"id": "10084a8d-113f-4211-a0d5-efe36b082211",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"ref": "https://localhost:9443/t/myorg.com/scim2/Users/3987d74e-8432-4f4d-b1a8-cad463af843d"
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "10084a8d-113f-4211-a0d5-efe36b082211",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"userStore": {
"id": "UFJJTUFSWQ==",
"name": "PRIMARY"
},
"action": "USER_ACCOUNT_LOCK"
}
}
}

The events object contains the actual event data for a user account locked event, identified by the URI https://schemas.identity.wso2.org/events/user/event-type/userAccountLocked. This URI signifies a user account lock event.

The table below explains each property in the event data.

PropertyDescription
userContains information about the user whose account got locked.
tenantRepresents the root organization (tenant) that processed the account locking.
organizationRepresents the organization that processed the account locking.
userStoreIndicates the user store that manages the user's data.
initiatorTypeIndicates whether an administrator, user, or application initiated the event.
initiatorIpAddressIndicates the IP address of the initiator that triggered the event.
actionIndicates the flow that triggered the event. The value is USER_ACCOUNT_LOCK.

User account unlocked event​

WSO2 Identity Server sends a userAccountUnlocked event when a user account gets unlocked.

This event triggers when locked accounts get restored to normal status through administrative action or automatic timeout policies. Unlocked accounts allow users to authenticate again.

Example payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "7bf8f4ce-816e-46a2-8964-99682ece9084",
"iat": 1755619053135,
"rci": "e26aade5-ad74-4e5f-a98b-762bd218197e",
"events": {
"https://schemas.identity.wso2.org/events/user/event-type/userAccountUnlocked": {
"initiatorType": "ADMIN",
"user": {
"id": "3987d74e-8432-4f4d-b1a8-cad463af843d",
"claims": [
{
"uri": "http://wso2.org/claims/emailaddress",
"value": "[email protected]"
}
],
"organization": {
"id": "10084a8d-113f-4211-a0d5-efe36b082211",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"ref": "https://localhost:9443/t/myorg.com/scim2/Users/3987d74e-8432-4f4d-b1a8-cad463af843d"
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "10084a8d-113f-4211-a0d5-efe36b082211",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"userStore": {
"id": "UFJJTUFSWQ==",
"name": "PRIMARY"
},
"action": "USER_ACCOUNT_UNLOCK"
}
}
}

The events object contains the actual event data for a user account unlocked event, identified by the URI https://schemas.identity.wso2.org/events/user/event-type/userAccountUnlocked. This URI signifies a user account unlock event.

The table below explains each property in the event data.

PropertyDescription
userContains information about the user whose account got unlocked.
tenantRepresents the root organization (tenant) that processed the account unlocking.
organizationRepresents the organization that processed the account unlocking.
userStoreIndicates the user store that manages the user's data.
initiatorTypeIndicates whether an administrator, user, or application initiated the event.
initiatorIpAddressIndicates the IP address of the initiator that triggered the event.
actionIndicates the flow that triggered the event. The value is USER_ACCOUNT_UNLOCK.

User deleted event​

WSO2 Identity Server sends a userDeleted event when a user account gets deleted.

Example Payload:

{
"iss": "https://localhost:9443/t/myorg.com",
"jti": "21f03016-632d-4266-9e8b-8863001109f2",
"iat": 1751571143534,
"rci": "05268edb-9a87-4656-87c0-0fb674dd03b1",
"events": {
"https://schemas.identity.wso2.org/events/user/event-type/userDeleted": {
"initiatorType": "ADMIN",
"user": {
"id": "0bd61ecd-e974-41e6-a962-8b712090240f",
"claims": [
{
"uri": "http://wso2.org/claims/username",
"value": "[email protected]"
}
],
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"ref": "https://localhost:9443/t/myorg.com/scim2/Users/0bd61ecd-e974-41e6-a962-8b712090240f"
},
"tenant": {
"id": "12402",
"name": "myorg.com"
},
"organization": {
"id": "6f8d17ae-1ad5-441b-b9e0-c7731e739e94",
"name": "myorg",
"orgHandle": "myorg.com",
"depth": 0
},
"userStore": {
"id": "UFJJTUFSWQ==",
"name": "PRIMARY"
},
"action": "USER_ACCOUNT_DELETE"
}
}
}

The events object contains the actual event data for a user deleted event, identified by the URI https://schemas.identity.wso2.org/events/user/event-type/userDeleted. This URI signifies a user account deletion.

The table below explains each property in the event data.

PropertyDescription
userContains information about the user whose account got deleted.
tenantRepresents the root organization (tenant) that processed the user deletion.
organizationRepresents the organization that processed the user deletion.
userStoreIndicates the user store that managed the user's data.
initiatorTypeIndicates whether an administrator or application initiated the user deletion.
initiatorIpAddressIndicates the IP address of the initiator that triggered the event.
actionIndicates the flow that triggered the event. The value is USER_ACCOUNT_DELETE.

Was this page helpful?