→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ErikT
Lansweeper Tech Support
Lansweeper Tech Support

TL;DR-Sweepy-Icon (1).png
This page provides instructions on configuring Lansweeper to send emails using Microsoft 365 with modern authentication and a Microsoft Cloud Services application.


Sending emails using a Microsoft Cloud Services application was introduced in Lansweeper 8.3. If you are using an older Lansweeper release, you will need to update by following the instructions in this knowledge base article.

Lansweeper allows you to send emails in the context of both the helpdesk module and to send report and event alerts. Since Lansweeper 8.3, Microsoft 365 with modern authentication is supported as a mail provider. To do this a Microsoft Cloud Services application is required.

This article explains what is required to set this up, which permissions to add to your Microsoft Cloud Services application and how to configure your email account in the helpdesk email configuration or email alert configuration.

Prerequisites

To use a Microsoft 365 email account to send or receive emails in Lansweeper, make sure that:

Add permissions to the Microsoft Graph application to send and receive emails

  1. Open your company's Azure portal and navigate to App registrations. 
  2. Select the API permissions tab in the left-hand menu.
    Scanning_with_a_Microsoft_cloud_credential_5.jpg
  3. On the API permissions page, click Add permission and select Microsoft Graph from the API list.  Scanning_M365_with_a_Microsoft_cloud_credential_6.jpg
  4. As we are setting up the Microsoft Graph API to enforce modern authentication, you will need to add Application permissions. Start by selecting Application permissions.Scanning_with_a_Microsoft_cloud_credential_6.jpg
  5. Add the API permissions listed in the table below. These are all required to send and receive emails.

    Mail.ReadWrite

    Read and write mail in all mailboxes

    Mail.Send

    Send mail as any user

    User.Read.All

    Read all users' full profiles

  6. Once the permissions are added, select Save and double-check that the permissions that are listed.How-to-setup-a-MS-graph-email-configuration-4.jpg
  7. Admin consent must still be granted. Select Grant admin consent for <organization> and click Grant in the resulting pop-up.
    How-to-setup-a-MS-graph-email-configuration-5.jpg
    All added permissions should now show Granted for <organization>
    How-to-setup-a-MS-graph-email-configuration-6.jpg
By default, when using the settings above, your application will have access to all mailboxes in your M365 tenant. You can restrict this further by configuring "ApplicationAccessPolicy".

Configure your email account in the helpdesk email configuration

  1. Browse to the Configuration > Email Settings section of the Lansweeper Classic web console.
  2. Select Add E-mail account. You can also change an existing configuration by selecting Edit.
  3. Fill out DisplayName and E-mail address in the General Settings tab.
    The email address entered in the General Settings tab will be the email address used for sending and receiving email.
  4. Select the Incoming tab and select Microsoft Graph (REST API) as protocol.
  5. Fill in the Client ID, Tenant ID, and Client Secret. These values can be gathered when creating the Microsoft Cloud Services application.
    How_to_setup_a_MS_graph_email_configuration_1.jpg
  6. Select the outgoing tab and select the Microsoft Graph (REST API) as protocol. Fill out the Client ID, Tenant ID, and Client Secret, and select OK to save your helpdesk email account.
    How_to_setup_a_MS_graph_email_configuration_2.jpg
    The Client Secret entered in the Incoming and Outgoing tabs should contain the Secret Value and not the Secret ID.

Configure your email account to send Email Alerts

  1. Browse to the Configuration > Email Alerts section of the Lansweeper Classic web console.
  2. Select Microsoft Graph (REST API) as protocol in the E-mail Server section.
  3. Fill in the From address, Client ID, Tenant ID, and Client Secret. These values can be gathered when creating the Microsoft Cloud Services application.
    How_to_setup_a_MS_graph_email_configuration_3.jpg
    The email address entered in the From address field will be used to send the Email alerts.
Was this article helpful? Yes No
20% helpful (1/5)

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now
Version history
Last update:
‎06-05-2024 09:07 AM
Updated by: