The mParticle Connector lets administrators integrate the mParticle events API into the user registration and update process. This connector is compatible with IDM 7.0.
To deploy this connector:
- Download or build the mParticle Connector jar
- Next, copy the jar into the
openidm/connectors
directory - Copy the
translation.json
toopenidm/ui/admin/default/locales/en/translation.json
(make sure to update translation.json with any previous changes you've made for your deployment) - Finally, copy
org.forgerock.openicf.connectors.mParticle.mParticleConnector_1.5.html
toopenidm/ui/admin/default/templates/admin/connector/
- API Endpoint - mParticle API Events API endpoint i.e.
https://inbound.mparticle.com/s2s/v2/events
- Server Key - The mParticle Server to Server Key.
- Server Secret - The mParticle Server to Server Secret.
- Production Environment - Enable for mParticle Production Environment, disable for development.
- mParticle Attributes - Add the mParticle attributes that IDM should allow as options during mapping.
Once the mParticle Connector has been created, the next step is to define a mapping so that when a user is created or updated, IDM calls the mParticle events API.
-
Create a new mapping which maps the IDM user managed object to the mParticle Connector Account Object:
-
Next, define the attributes that you'd like to map from IDM users to mParticle. The target attributes list is generated from the mParticle Attributes connector configuration that was defined during connector setup.
-
Finally, configure the Polices for the various synchronization actives. If you select the
Default Actions
policy, IDM will call mParticle events for Create and Update operations.
When the mParticle connector is configured, and a user gets created in IDM, the following payload is sent from IDM to the mParticle events API.
{
"environment": "development",
"user_identities": {
"customer_id": "df4b0850-34cd-42af-85ee-839e69b6899a",
"email": "user@gmail.com"
},
"user_attributes": {
"forgeRock_givenName": "first",
"forgeRock_username": "user",
"forgeRock_sn": "last"
},
"events": [
{
"event_type": "custom_event",
"data": {
"custom_event_type": "user_preference",
"event_name": "registration"
}
}
]
}
- Make sure the
mainTrustStore
located inopenidm/conf/secrets.json
contains the cacert forinbound.mparticle.com
. If it doesn't, SSL exceptions will occur when the request to mParticle is executed.