Learn about the custom-email-provider Action trigger’s event object, which provides contextual information about the message data.
The event object for the custom-email-provider Actions trigger provides contextual information about email data.
Name
Description
Properties
event.client
Information about the client with which this login transaction was initiated.
client_idString. The of the application the user is logging in to.
metadataDictionary. An object for holding other application properties.
nameString. The name of the application (as defined in the Dashboard).
event.connection(Optional)
Details about the connection used to authenticate the user.
idOptional string. The connection’s unique identifier.
metadataOptional dictionary. Metadata associated with the connection.
nameOptional string. The name of the connection used to authenticate the user (such as twitter or some-g-suite-domain).
strategyOptional string. The type of connection. For social connections, event.connection.strategy === event.connection.name. For enterprise connections, the strategy is waad (Windows Azure AD), ad (Active Directory/LDAP), auth0 (database connections), and so on.
event.custom_domain(Optional)
domainOptional string. Available in MCD EA. The custom domain name.
event.notification
htmlString. Rendered HTML template.
fromString. Email address of the sender for the email.
subjectString.Subject to be attached to the email.
localeOptional string. The locale we rendered the message in, for example en_US, as defined in the BCP-47 specification.
message_typeString. The type of message that is being sent, like verify_email or welcome_email. Possible values include:
verify_email
verify_email_by_code
reset_email
reset_email_by_code
welcome_email
verification_code
mfa_oob_code
enrollment_email
blocked_account
stolen_credentials
try_provider_configuration_email
organization_invitation
textString. Rendered text template.
toString. Email address of the recipient.
event.organization(Optional)
Details about the Organization associated with the current transaction.
display_nameString. The friendly name of the Organization.
idString. The Organization identifier.
metadataDictionary. Metadata associated with the Organization.
nameString. The name of the Organization.
event.request(Optional)
geoipOptional object. Includes the following properties:
countryCodeOptional string.
countryCode3Optional string.
cityNameOptional string.
latitudeOptional string.
longitudeOptional string.
timeZoneOptional string.
subdivisionCodeOptional string.
subdivisionNameOptional string.
continentCodeOptional string.
hostname * Optional string*. Available in MCD EA. The hostname that is being used for the authentication flow.
ipOptional string. The originating IP address of the request.
queryOptional dictionary. The query string parameters sent to the authorization request. Only supported for the Password Reset Flow.
user_agentOptional string. The value of the User-Agent header received when initiating the transaction.
event.tenant
friendly_nameOptional string. The friendly name for the tenant, usually a more human-readable version of the ID.
home_urlOptional string. The home URL for the tenant, if defined and as found in its settings.
idString. The name of the tenant.
logo_urlOptional string. The logo URL for the tenant, if defined and as found in its settings.
support_emailOptional string. The email to the tenant’s support service, if defined and as found in its settings.
support_urlOptional string. The url to the tenant’s support service, if defined and as found in its settings.
event.user
An object describing the user on whose behalf the current transaction was initiated.
app_metadataDictionary. Custom fields that store information about a user that influences the user’s access, such as support plan, security roles, or access control groups.
user_metadataDictionary. Custom fields that store information about a user that does not impact what they can or cannot access, such as work address, home address, or user preferences.