Configuring email destinations
You can send information from a connection source to a set of email addresses using Microsoft 365 email resources or through an SMTP server. You can either include the results in the email body, or create an attachment.
Prerequisites for Microsoft 365 destinations
To configure a connection destination to send email through Microsoft 365, ensure you complete the following prerequisites:
-
For a walkthrough of configuration prerequisites, Microsoft Azure configuration, email server profile configuration, and connection configuration, see Tanium Community: Use Tanium Connect to Send Microsoft Office 365 Emails using Modern Authentication.
-
You must have a Microsoft 365 Outlook email address associated with a Microsoft Entra ID (formerly Azure Active Directory) user.
-
You must create a Microsoft Entra ID application and service principal, and assign the Mail.Send and User.Read permissions to the application, to send an email with an attachment up to a total of 3 MB (this includes the body of the email plus the attachment). If you want to limit the application scope, create an application access policy and associate it with a mail-enabled security group containing at least one user. For more information, see Microsoft Entra documentation: Create a Microsoft Entra application and service principal that can access resources and Microsoft Graph documentation: Configure ApplicationAccessPolicy.
-
You must also generate a Microsoft Entra ID application client secret. For more information, see Microsoft Entra documentation: Option 3: Create a new client secret.
-
You must also assign the Mail.Send and User.Read permissions to the application to send emails with attachments up to a total of 3 MB. For more information, see Microsoft Entra documentation: Assign a role to the application.
Note: If a connection run generates no data, no email is sent. However, if you select a saved question source and clear Hide No Results, an email is sent per connection run, regardless of whether data is available. -
If you want to enable sending emails with attachments greater than 3 MB and up to 150 MB (subject to your Microsoft 365 attachment settings), you can assign the Mail.ReadWrite permission to the Microsoft Entra ID application. If you assign this permission, you must allow traffic to outlook.office.com over port 443/TCP and outlook.office365.com over port 443/TCP.
Important: Attachments larger than 3 MB are not supported for email sent through GCC M365, including FedRAMP M365. Connect uses the Microsoft createUploadSession API to manage attachments for Microsoft 365 email uploads. The API has a known issue with attachments larger than 3 MB in GCC M365 environments. This limitation applies to any customer whose Microsoft 365 environment is GCC M365, independent of the Tanium environment. Customers who try to send an email with an attachment larger than 3 MB through a GCC M365 environment might receive a MS_GRAPH_STATUS_CODE 401 large_attachment response that contains an error message similar to caused by unexpected status code 401 from ms-graph. For more information about the createUploadSession API and the known issue, see Microsoft Graph documentation: attachment: createUploadSession.Note: The Mail.ReadWrite permission only permits a larger attachment size; the body of the email must never exceed 3 MB.Note: For the best results, if you assign the Mail.ReadWrite permission, create an access policy and limit Microsoft Entra ID application access to one user. For more information, see Microsoft Graph documentation: Limiting application permissions to specific Exchange Online mailboxes.
-
-
The Email (O365 & SMTP) destination requires an email server profile on the Tanium Server. You can configure an email server profile through the Connect workbench in Tanium Console.
-
To configure an email server profile in Tanium Console, you must have a role with the Tanium Email Config write permission. The predefined Connect Operator and Connect Administrator roles in Connect have this permission. Sending an email requires the user that configures the connection to have permission to the content set to which you assign the email server profile. For more information about predefined roles in Connect, see User role requirements. For information about configuring custom roles, see Managing access permissions through roles
Note: If you delete an email server profile configuration that is referenced by a scheduled connection, future scheduled instances of that connection fail. For more information, see Issue: Emails to Microsoft 365 destinations fail to send. -
-
The email server profile uses the Authority Host that you select for authentication to the Host that you select, over port 443/TCP.
-
Configure your network allow list to allow traffic outbound from your Tanium Module Server to the following Microsoft 365 URLs and enable access for Microsoft 365 mail resources:
-
graph.microsoft.com:443
-
login.microsoftonline.com:443
-
graph.microsoft.us:443
-
dod-graph.microsoft.us:443 for DoD tenants
-
login.microsoftonline.us:443
-
outlook.office.com:443 and outlook.office365.com:443 if you assign the Mail.ReadWrite permission to the Microsoft Entra ID application. For more information, see Microsoft 365 documentation: Office 365 URLs and IP address ranges.
-
For more information about how to configure an email server profile, see Configure email server profile settings for Microsoft 365.
Prerequisites for SMTP destinations
-
The Email (O365 & SMTP) destination requires an email server profile on the Tanium Server. You can configure an email server profile through the Connect workbench in Tanium Console.
-
To configure an email server profile in Tanium Console, you must have a role with the Tanium Email Config write permission. The predefined Connect Operator and Connect Administrator roles in Connect have this permission. Sending an email requires the user that configures the connection to have permission to the content set to which you assign the email server profile. For more information about predefined roles in Connect, see User role requirements. For information about configuring custom roles, see Managing access permissions through roles
Note: If you delete an email server profile configuration that is referenced by a scheduled connection, future scheduled instances of that connection fail. -
-
Configure your network allow list to allow traffic outbound from your Tanium Module Server to the SMTP server.
-
To use Google Mail as an SMTP server, allow traffic to
smtp.google.com.
-
-
You must have email addresses to send and receive email results.
-
Gather information about your mail server, including host, port, certificate, user name, password.
Specify general connection information
Configure the connection source
The connection source determines what data you are sending to the destination. This data is usually information from Tanium, such as a saved question, question log, client status, or event. The settings vary depending on which source you choose.
If a Tanium solution or source shows Critical , the installed solution does not meet the minimum required version for proper compatibility and functionality. Upgrade the solution to the minimum required version or later.
For more information about available connection sources, see Connection sources.
Configure the email results destination
Configure filters
(Optional) In the section, you can specify filters to modify the data that you are getting from your connection source before it is sent to the destination.
For more information about the types of filters you can configure, see Reference: Filtering options.
Format data for email
You can choose from any of the available formats for your email. The data is sent in an email attachment by default.
If you want to have the data in the body of the email instead of attaching a file to the email, edit the email destination settings to clear Attachment.
You can choose the columns that appear in the resulting email.
In the section, you can change the Destination Label of each column and Value Type to force the column to be a String, Numeric, or Date/Time value.
If you choose Numeric for the value, you can specify a default value that is used if the data cannot be coerced into a numeric value. You can specify any negative or positive number.
If you choose Date/Time for the value, specify the format that you want to use for the column. For more information about how to use a variable, see Time stamp variables.
For more information about column customizations, see Reference: Column customizations.
Schedule the connection
Connections can run at a highly configurable time interval, such as multiple times per hour, day, week, or month.
Use the Schedule section to update the schedule:
-
Select Enable schedule.
-
In the Schedule Type, select Basic to build a schedule with the provided controls.
-
To view or edit the cron expression directly, select Advanced - Define as a Cron Expression, and use the Advanced field to edit the cron expression.
For more information about cron syntax, see Reference: Cron syntax for Connect.
Enable listening for an event
Connections with Event sources only run when a configured event is detected, and cannot be scheduled or manually run.
Use the Enablement section to send data when a configured event is detected:
-
Select Listen for this Event.