Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

nbcdotcom/mParticle-Connector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mParticle Identity Connector

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.

Usage

To deploy this connector:

  1. Download or build the mParticle Connector jar
  2. Next, copy the jar into the openidm/connectors directory
  3. Copy the translation.json to openidm/ui/admin/default/locales/en/translation.json (make sure to update translation.json with any previous changes you've made for your deployment)
  4. Finally, copy org.forgerock.openicf.connectors.mParticle.mParticleConnector_1.5.html to openidm/ui/admin/default/templates/admin/connector/

mParticle Connector Configuration

  • 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. mParticle_Configuration

Configure Mappings

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.

  1. Create a new mapping which maps the IDM user managed object to the mParticle Connector Account Object: create_mapping

  2. 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. define_mapping

  3. 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. define_policy

Example Payload

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"
    }
  }
]
}

Notes

  1. Make sure the mainTrustStore located in openidm/conf/secrets.json contains the cacert for inbound.mparticle.com. If it doesn't, SSL exceptions will occur when the request to mParticle is executed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 78.5%
  • HTML 19.2%
  • Groovy 2.3%