Audit Log Create
Audit Log Create
This event is generated when an audit log is created.
Event typeaudit.log.create
Event Scope
This is a system scoped event. If enabled in Settings -> Webhooks -> Your Webhook , this event will be sent.
The tenant webhook enable or disable settings do not apply and will be ignored.
Transaction Compatibility
This event is non-transactional. The operation will succeed regardless of the webhook response status code.
Event Body
event.createInstantLongThe instant that the event was generated.
event.auditLogObjectThe audit log for this event. See the Audit Logs API for property definitions and example JSON.
event.info.dataObjectAn object that can hold any information about the event that should be persisted.
event.info.deviceDescriptionStringThe description of the device associated with the event.
event.info.deviceNameStringThe device name associated with the event.
event.info.deviceTypeStringThe type of device associated with the event.
event.info.ipAddressStringThe source IP address of the event.
event.info.location.cityStringThe city where the event originated.
Note: An Enterprise plan is required to utilize event location data.
event.info.location.countryStringThe country where the event originated.
Note: An Enterprise plan is required to utilize event location data.
event.info.location.latitudeDoubleThe latitude where the event originated.
Note: An Enterprise plan is required to utilize event location data.
event.info.location.longitudeDoubleThe longitude where the event originated.
Note: An Enterprise plan is required to utilize event location data.
event.info.location.regionStringThe geographic location where the event originated.
Note: An Enterprise plan is required to utilize event location data.
event.info.location.zipcodeStringThe zip code where the event originated.
Note: An Enterprise plan is required to utilize event location data.
event.info.osStringThe operating system associated with the event.
event.info.userAgentStringThe user agent associated with the event.
event.idUUIDThe unique Id of the event. You may receive an event more than once based upon your transaction settings. This Id may be used to identify a duplicate event.
event.typeStringThe event type, this value will always be audit.log.create.
Example Event JSON
{
"event": {
"auditLog": {
"id": 1773,
"insertInstant": 1629141543059,
"insertUser": "admin@example.com",
"message": "Updated the user with Id [73092cb2-2119-4a5d-acb4-7db5a1facaf8] and loginId [adam68@example.com]",
"newValue": {
"active": true,
"birthDate": "1984-09-13",
"connectorId": "e3306678-a53a-4964-9040-1c96f36dda72",
"data": {
"city": "San Francisco",
"favoriteColor": "Red",
"lifeTimeValue": 375,
"state": "CA"
},
"email": "adam68@example.com",
"firstName": "Adam",
"id": "73092cb2-2119-4a5d-acb4-7db5a1facaf8",
"imageUrl": "/images/demo/nope.gif",
"insertInstant": 1625783587031,
"lastName": "Green",
"lastUpdateInstant": 1629141542987,
"memberships": [],
"passwordChangeRequired": false,
"passwordLastUpdateInstant": 1625783587031,
"preferredLanguages": [
"en",
"fr"
],
"registrations": [
{
"applicationId": "d23ecde6-0661-44a7-808b-a23013e6dfdc",
"data": {},
"id": "9693406b-1e62-4eb0-a3c1-7271de3f8ddf",
"insertInstant": 1625783587031,
"lastLoginInstant": 1625783587031,
"lastUpdateInstant": 1625783587031,
"preferredLanguages": [],
"roles": [
"USER"
],
"tokens": {},
"username": "Adam68",
"usernameStatus": "ACTIVE",
"verified": false
}
],
"tenantId": "a743e2cd-55bb-789c-b076-8846fdd3a51f",
"timezone": "America/Denver",
"twoFactor": {
"methods": [],
"recoveryCodes": []
},
"uniqueUsername": "Adam68",
"username": "Adam68",
"usernameStatus": "ACTIVE",
"verified": true
},
"oldValue": {
"active": true,
"birthDate": "1984-09-13",
"connectorId": "e3306678-a53a-4964-9040-1c96f36dda72",
"data": {
"city": "San Francisco",
"favoriteColor": "Red",
"lifeTimeValue": 375,
"state": "CA"
},
"email": "adam68@example.com",
"encryptionScheme": "salted-sha256",
"firstName": "Adam",
"id": "73092cb2-2119-4a5d-acb4-7db5a1facaf8",
"imageUrl": "/images/demo/nope.gif",
"insertInstant": 1625783587031,
"lastName": "Gray",
"lastUpdateInstant": 1625783587031,
"memberships": [],
"passwordChangeRequired": false,
"passwordLastUpdateInstant": 1625783587031,
"preferredLanguages": [
"en",
"fr"
],
"registrations": [
{
"applicationId": "d23ecde6-0661-44a7-808b-a23013e6dfdc",
"data": {},
"id": "9693406b-1e62-4eb0-a3c1-7271de3f8ddf",
"insertInstant": 1625783587031,
"lastLoginInstant": 1625783587031,
"lastUpdateInstant": 1625783587031,
"preferredLanguages": [],
"roles": [
"USER"
],
"tokens": {},
"username": "Adam68",
"usernameStatus": "ACTIVE",
"verified": false
}
],
"tenantId": "a743e2cd-55bb-789c-b076-8846fdd3a51f",
"timezone": "America/Denver",
"twoFactor": {
"methods": [],
"recoveryCodes": []
},
"uniqueUsername": "Adam68",
"username": "Adam68",
"usernameStatus": "ACTIVE",
"verified": true
},
"reason": "FusionAuth User Interface"
},
"createInstant": 1629141543064,
"id": "29e3f639-649e-4a5c-bc4b-eec7f89ee20c",
"info": {
"ipAddress": "42.42.42.42",
"location": {
"city": "Denver",
"country": "US",
"displayString": "Denver, CO, US",
"latitude": 39.73915,
"longitude": -104.9847,
"region": "CO"
},
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.115 Safari/537.36"
},
"type": "audit-log.create"
}
}