Setting up Marketo User Audit Data Stream with Adobe I/O Events

These instructions describe how to set up and get started using Adobe I/O Events for Marketo user-driven change events. You can use Adobe I/O for streaming Marketo user-driven change events such as the modification of emails, campaigns, and landing pages.

Introduction

User Audit Data Stream provides all the user-driven change events that are shown in the MLM Audit Trail as an event stream to which you can subscribe.

data-src=marketo-data-streams-setting-up-ga-stream.md

Setup Adobe I/O

See Getting Started with Adobe I/O Events

For basic instructions for this use case, starting from console.adobe.io:

When prompted, click the designated button to proceed:

data-src=marketo-data-streams-developer-guidelines.md
data-src=marketo-data-streams-multiple-instances.md

Event Data Structure

Events are structured in JSON format using the CloudEvents spec

Example Event (batch):

[
    {
        "eventid": "cf904f43-56bc-4f80-935d-a484de6e4181",
        "event": {
            "body": {
                "specversion": "1.0",
                "type": "com.adobe.platform.marketo.audit.user.email",
                "source": "urn:mlm",
                "time": "2024-07-11 13:20:42.755",
                "datacontenttype": "application/json",
                "dataschema": "V2.0",
                "data": {
                    "componentId": 232459,
                    "componentType": "Email",
                    "eventAction": "approve",
                    "munchkinId": "123-ABC-456",
                    "imsOrgId": "<your_ims_org_id>@AdobeOrg",
                    "userId": "user@marketo.com"
                }
            }
        },
        "recipientclientid": "<your_client_id>"
    },
    {
        "eventid": "e931c3ec-9d76-406b-ac89-626e9650813a",
        "event": {
            "body": {
                "specversion": "1.0",
                "type": "com.adobe.platform.marketo.audit.user.landingpage",
                "source": "urn:mlm",
                "time": "2024-07-11 13:20:42.755",
                "datacontenttype": "application/json",
                "dataschema": "V2.0",
                "data": {
                    "componentId": 123321,
                    "componentType": "Landing Page",
                    "eventAction": "approve",
                    "munchkinId": "123-ABC-456",
                    "imsOrgId": "<your_ims_org_id>@AdobeOrg",
                    "userId": "user@marketo.com"
                }
            }
        },
        "recipientclientid": "<your_client_id>"
    }
]

Example Event (single):

{
    "eventid": "a9ef9c3c-bafe-48b8-9eae-bc63dfaed28c",
    "event": {
        "body": {
            "specversion": "1.0",
            "type": "com.adobe.platform.marketo.audit.user.email",
            "source": "urn:mlm",
            "time": "2024-07-11 13:20:42.755",
            "datacontenttype": "application/json",
            "dataschema": "V2.0",
            "data": {
                "componentId": 232459,
                "componentType": "Email",
                "eventAction": "approve",
                "munchkinId": "123-ABC-456",
                "imsOrgId": "<your_ims_org_id>@AdobeOrg",
                "userId": "user@marketo.com"
            }
        },
        "recipientclientid": "<your_client_id>"
    }
}

Data Field Definitions

Many of the fields are common across the different types of events. The event.body.data object will contain the specific details of the event.

Field
Type
Description
eventid
String
Unique UUID generated per event
specversion
String
CloudEvents version specification being used
type
String
Type of event used for event subscription routing
source
String
Context in which an event happened. Its values can be "urn:mlm", "urn:userservice", "urn:asset_api"
time
String (DateTime)
Timestamp of the completion of the action
datacontenttype
String
Content type of the data object
dataschema
String
User Audit Data Stream event schema version
data
Object
Event data object

The data object contains the following fields:

Field
Type
Description
componentId
Number
ID of the asset in Marketo
componentType
String
Type of the asset in Marketo
eventAction
String
Asset action that occurred in Marketo
munchkinId
String
Internal Marketo subscription identifier
imsOrgId
String
Internal Adobe organization identifier
userId
String
Email ID of the user in Marketo who completed the action

Event List

Note - This is a snapshot listing of most available events. There may be some events that don't show up or no longer exist.

Component
Event Type List
Default Program
clone, create, delete, edit channel, export, modify program setup, modify program token, rename
Email
approve, clone, create, delete, edit, move, rename, unapprove
Email Batch Program
approve, childUpdate, clone, create, delete, edit, edit channel, modify program schedule, modify program setup, modify program token, rename, unapprove
Email Template
approve, clone, create, delete, draftCreate, draftDiscard, edit, rename, unapprove
Engagement Program
clone, create, delete, edit channel, modify program setup, modify program stream, modify program token, rename
Event Program
clone, create, delete, edit channel, modify program schedule, modify program setup, modify program token, rename
Folder
create, delete, edit
Form
approve, clone, create, delete, draftCreate, edit, move, rename
Landing Page
approve, clone, create, delete, draftDiscard, edit, move, rename, unapprove
Landing Page Template
approve, clone, create, delete, draftCreate, draftDiscard, edit, rename, unapprove
List
clone, create, delete, rename
Marketing Folder
create, delete, edit
Nurture Program
clone, create, delete, edit channel, modify program setup, modify program stream, modify program token, rename
Segment
create, delete, edit, rename
Segmentation
approve, create, delete, draftCreated, draftDiscarded, rename, unapprove
Smart Campaign
abort, activate, clone, create, deactivate, delete, edit, modify campaign schedule, modify flow step action, modify smart list setup, move, rename
Smart List
clone, create, delete, edit, export, modify smartlist setup, rename
Snippet
approve, approve with no-draft, clone, create, delete, edit, rename, unapprove

The following events are related to access control and security:

Component
Event Type List
Login
login success, login failure
Role
create, delete, edit
User
create, delete, edit
data-src=marketo-data-streams-debug.md