04-13-2021 08:30 PM - edited 12-01-2022 01:50 PM
Using Lansweeper it's possible to send emails in the context of both the helpdesk module and to send report and event alerts. Since Lansweeper 8.3, O365 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.
API permissions
tab in the left-hand menu.
Add permission
button and select the Microsoft Graph
from the API list. Application permissions
button.
Mail.ReadWrite |
Read and write mail in all mailboxes |
Mail.Send |
Send mail as any user |
User.Read.All |
Read all users' full profiles |
Once the permissions are added, click the save
button on the bottom of the page and double-check that the permissions that are listed.
The permissions are added but admin consent must still be granted. To do this, click the button Grant admin consent for <organization>
and click the Grant
button in the resulting pop-up. All added permissions should now show
Granted for <organization>
Navigate to Configuration\Email Settings
and click the add E-mail account
button. You can also change an existing configuration by hitting the edit
button. Fill out DisplayName and E-mail address in the General Settings tab.
Microsoft Graph (REST API)
as protocol. Fill in the Client ID
, Tenant ID
, and Client Secret
. These values can be gathered when creating the Microsoft Cloud Services application. Last, click on the outgoing tab and select the Microsoft Graph (REST API) as protocol. Fill out the
Client ID
, Tenant ID
, and Client Secret
, and click the OK
button to save your helpdesk email account.
Navigate to Configuration\Email Alerts
and select the Microsoft Graph (REST API) protocol in the E-mail Server section. Fill in the From address
, Client ID
, Tenant ID
, and Client Secret
. These values can be gathered when creating the Microsoft Cloud Services application.
From address
field will be used to send the Email alerts.This article is great, thanks.
I can get working with my email account, however, I can't get working for a shared mailbox - receive the following error when attempting to send using a shared mailbox.
Are you able to provide advice on how to get working for a shared mailbox, please?The E-mail server has not been configured correctly: Http call to MS Graph has failed with status code NotFound: {"error":{"code":"Request_ResourceNotFound","message":"Resource 'sharedmailbox@mydomain.com' does not exist or one of its queried reference-property objects are not present.","innerError":{"date":"2023-03-23T02:07:43","request-id":"3ffb110d-94e0-4efd-9c47-921304d052d5","client-request-id":"3ffb110d-94e0-4efd-9c47-921304d052d5"}}} (Last tried: 23/03/2023 10:07:41)