Introduction
Microsoft Graph is the gateway to data and intelligence in Microsoft 365. It provides a unified programmability model that you can use to access the tremendous amount of data in Microsoft 365, Windows, and Enterprise Mobility + Security. Use the wealth of data in Microsoft Graph to build apps for organizations and consumers that interact with millions of users.
Prerequisites
- Logsign 6.3.23+ versions support this integration.
Configure On Microsoft
Create Azure Active Directory Application
Forwarding settings are completed as follows:
- Log in to the Microsoft Azure portal.
- In the Main menu, click Azure Active Directory and click App registrations.
- Select New registration for creating a new application.
- Define the settings as follows:
- Specify Name for the application.
- Adjust Supported account types to Accounts in this organizational directory only.
- Adjust Redirect URI to Web and in the URI box enter http://www.yourdomain.com.
- In the Front-channel logout URL part, specify your domain.
- In the Implicit grant and hybrid flows part you can select ID tokens (used for implicit and hybrid flows).
- In the Supported account types part, you can select Accounts in any organizational directory (Any Azure AD directory - Multitenant).
- In the Allow public client flows part, you can select "yes".
- Click Register to save the changes.
Add API Access to Graph API and Grant Permission
Forwarding settings are completed as follows:
- In the Main menu, click Azure Active Directory and click App registrations.
- Click the application you created in Azure Active Directory Application.
- Click API Permissions and then click Add a permission.
- In the Request API permission part, click Microsoft Graph.
- Define the Application permissions as follows:
- Click Application permissions.
- Specify one of the following:
- Click Application > User.Read.All in the list of permissions.
- Click Application > Mail.Send in the list of permissions.
- Click Add permission and then click Grant admin consent for your application.
Locate Directory ID
Forwarding settings are completed as follows:
- In the Azure portal, go to the application you created.
- In the Directory (tenant) ID box, copy the value. The Directory id should be used when configuring the integration connector.
Locate Application ID
Forwarding settings are completed as follows:
- In the Azure portal, go to the application you created.
- In the Application (client) ID box, copy the value. The Application id should be used when configuring the integration connector.
Locate Application Secret
Forwarding settings are completed as follows:
- In the Azure portal, go to the application you created.
- Click Certificates & secrets and then use the following information to create a new client secret:
- Click New client secret.
- Specify Description to Test-graph
- Specify Expires to 6 months.
Note: After the set expiration time, the new client secret must be generated again. Reconfiguring the connector is also necessary.
- Click Add and then the client secret is displayed.
Note: Before leaving this screen, copy the client secret value.
- If you are configuring the integration connector, use the client secret as the application secret.
Configure On Logsign
Forwarding settings are completed as follows:
- Click Settings > Integrations > Responses.
- In the 'Search' part, write Microsoft Graph Mail.
- Click 'Configure' and then click '+Device'.
- Define the settings as follows:
- Device Name: Define the Device Name.
- Tenant Id: The ID of the Microsoft Azure Active Directory to retrieve information from.
- Client Id: The ID of the application that will connect to Microsoft Azure Active Directory, which in this case is the integration connector.
- Client Secret: The value that will be used as the secret in the connection to Microsoft Azure.
- Sender Email: The value that will be used as the E-mail address on Microsoft Azure.
- Insecure Skip Verify (optional): Skips TLS certificate verification on both the token request to login.microsoftonline.com and the Graph API request. Leave this off (the default) unless your organization sits behind a TLS-inspecting proxy that re-signs outbound HTTPS traffic with its own certificate; in that case, enabling it lets the connector authenticate and send. Existing devices keep whatever value they were saved with; only newly created devices default to verifying certificates.
- Timeout (optional): Per-request timeout in seconds for both the token request and the Graph API call, default 30. Increase this if your network path to Microsoft's endpoints is slow enough that requests are timing out; a token request that never gets a response is retried automatically up to three times with backoff.
- Click Create to save the changes.
Methods
SEND_MAIL
- Device: Select the configuration you have configured.
- To: It is written for the person you want to be sent.
- Subject: Type the subject for the mail you want to send.
Content: Type the content for the mail you want to send.
A failed send (for example a 403 from a revoked mailbox permission, or a 401 from an expired client secret) is reported back as a failed action with the status and error body Microsoft returned. send_mail is not automatically retried on failure, so a transient error does not risk sending the same mail twice; re-trigger the action rule or resend manually if needed.