Logs for Email Activity: IdentityNow

Is there a way to view all the email-related activity performed by the system? If for instance, IDN is configured to send emails to the manager of a user on new account provisioning or if emails are configured in the workflow, can we view all the email logs? Like when an email was sent out and to whom, if there were any errors etc.?

1 Like

You can use the search API or the search UI to query email events.

If using the API, use this request body as a starting point. If using the UI, use action:emailSent as the query and select just the events index.

{
    "query": {
        "query": "action:emailSent"
    },
    "indices": [
        "events"
    ]
}

The API will return a response like this:

{
        "org": "devrel",
        "pod": "stg03-useast1",
        "created": "2020-12-21T16:52:29.919Z",
        "id": "2c9180887671658601768637745f0ecd",
        "action": "emailSent",
        "type": "USER_MANAGEMENT",
        "actor": {
            "name": "unknown"
        },
        "target": {
            "name": "[email protected]"
        },
        "trackingNumber": "4e70d230b83e406e842d489046d273ea",
        "attributes": {
            "sourceName": "null",
            "info": "New access request for john.doe ready for review"
        },
        "objects": [
            "EMAIL"
        ],
        "operation": "SEND",
        "status": "PASSED",
        "technicalName": "EMAIL_SEND_PASSED",
        "name": "Send Email Passed",
        "synced": "2021-03-19T19:36:39.385Z",
        "_type": "event",
        "_version": "v7"
    }
2 Likes

Thanks @colin_mckibben, that works as expected!
Is there a way to check what the body of the email contained when it was sent out? There are some variables configured and I just wanted to validate if the values are correct. (Without actually having to contact the end user!)

To the best of my knowledge there is no way to see what the contents of the email body were.