--- title: Microsoft EWS (Graph) description: '' slug: /help/docs/platform-services/automation-service/app-central/integrations/microsoft-ews-graph/ canonical: https://www.sumologic.com/help/docs/platform-services/automation-service/app-central/integrations/microsoft-ews-graph/ --- import useBaseUrl from '@docusaurus/useBaseUrl'; Microsoft EWS icon ***Version: 1.4 Updated: Dec 30, 2025*** Perform actions on Microsoft EWS mailboxes and accounts using Graph API. ## Actions * **Get Attachments** (*Enrichment*) - Get an email attachment. * **Get Contacts** (*Enrichment*) - Get all contacts for a mailbox. * **Get Searchable Mailboxes** (*Enrichment*) - Multiple new fields to search mails. * **Get Out Of Office** (*Enrichment*) - Get out of office message for a mailbox. * **Search Emails Extended** (*Enrichment*) - Search emails with multiple new fields to search mails. * **Copy Email** (*Containment*) - Copy email to a new destination. * **Delete Attachments** (*Containment*) - Delete an attachment. * **Delete Email** (*Containment*) - Delete an email. * **Download Mail As EML** (*Enrichment*) - Save the whole email as EML format in incident attachments / objects. * **Forward Mail** *(Containment)* - Forward the email. * **Send Email** *(Notification)* - Send an email. * **Reply To Email** *(Notification)* - Reply to an email with a given item ID. ## Microsoft EWS configuration Each application for which you want the Microsoft identity platform to perform identity and access management (IAM) needs to be registered. Registering it establishes a trust relationship between your application and the identity provider, the Microsoft identity platform. ### Register an application [Registering your application](https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth) establishes a trust relationship between your app and the Microsoft identity platform. The trust is unidirectional. Your app trusts the Microsoft identity platform, and not the other way around. Follow these steps to create the app registration: 1. Sign in to the [Azure portal](https://portal.azure.com/). 2. If you have access to multiple tenants, use the Directory + subscription filter
Click /microsoft-ews in the top menu to select the tenant in which you want to register an application. 3. Search for and select the **Azure Active Directory**. 4. Under **Manage**, select **App registrations > New registration**. 5. Enter a **Name** for your application. Users of your app might see this name, and you can change it later. 6. Select **Register** to complete the initial app registration. 7. Don't enter anything for **Redirect URI (optional)**.
/microsoft-ews When registration completes, the Azure portal displays the app registration's **Overview** pane, which includes its Application (client) ID. Also referred to as just client ID, this value uniquely identifies your application in the Microsoft identity platform. The client ID as one aspect in validating the security tokens it receives from the identity platform.
/microsoft-ews ### Add credentials Credentials are used by confidential client applications that access an API. Examples of confidential clients are web apps, or service- and daemon-type applications. Credentials allow your application to authenticate as itself, requiring no interaction from a user at runtime. You can add client secrets (a string) as credentials to your confidential client app registration.
/microsoft-ews ### Add a client secret The client secret, known also as an application password, is a string value of your app. 1. Select your application in App registrations in the Azure portal. 2. Select **Certificates & secrets > New client secret**. 3. Add a description for your client secret. 4. Select a duration. 5. Select **Add**. 6. Record the secret's value for use in your client application code - it's never displayed again after you leave this page. ### Add permissions to API 1. Select your application in **App registrations** in the Azure portal. 2. Select **API permissions > Add a permission**. 3. Add the following permissions:
/microsoft-ews #### API / Permissions | Permission | Permission Type | Description | Admin Consent Required | |:----------------------|:-----------------|:-------------------------------------|:-----------------------| | Mail.ReadWrite | Application | Read and write mail in all mailboxes | Yes | | MailboxSettings.Read | Application | Read all user mailbox settings | Yes | | User.Read.All | Application | Read all user's full profiles | Yes | | Mail.Read | Application | Read mail in all mailboxes | Yes | | Mail.Send | Application | Send mail as any user | Yes | | Contacts.Read | Application | Read contacts in all mailboxes | Yes | ## Configure Microsoft EWS in Automation Service and Cloud SOAR import IntegrationsAuth from '../../../../reuse/integrations-authentication.md'; import IntegrationCertificate from '../../../../reuse/automation-service/integration-certificate.md'; import IntegrationEngine from '../../../../reuse/automation-service/integration-engine.md'; import IntegrationLabel from '../../../../reuse/automation-service/integration-label.md'; import IntegrationProxy from '../../../../reuse/automation-service/integration-proxy.md'; import IntegrationTimeout from '../../../../reuse/automation-service/integration-timeout.md'; import CloudSOARAPIURL from '../../../../reuse/automation-service/cloud-soar-api-url.md'; import AccessID from '../../../../reuse/automation-service/access-id.md'; import AccessKey from '../../../../reuse/automation-service/access-key.md'; :::note Use the information you set up [above](#microsoft-ews-configuration). ::: * * **Microsoft Graph URL**. Enter Microsoft Graph URL, `https://graph.microsoft.com/v1.0` * **Tenant ID**. Enter the [tenant ID](https://learn.microsoft.com/en-us/entra/fundamentals/how-to-find-tenant) for authentication. * **Client ID**. Enter the client ID for authentication. * **Client Secret**. Enter the client secret for authentication. * **Microsoft Graph Scope**. Enter the scope. * **Mailbox**. Enter the mailbox address. * * * * * * * Microsoft EWS configuration For information about Microsoft EWS, see [Microsoft Exchange Web Services documentation](https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth). ## Category Email Gateway ## Change Log * September 10, 2025 - First upload * October 31, 2025 (v1.1) - Fixed issue in the **Download Mail As EML** action. * November 21, 2025 (v1.2) + Fixed issue in the **Search Emails Extended** action. + Converted `has_attachments` and `is_unread` from text fields to list fields with true/false options. * December 10, 2025 (v1.3) - Added a dynamic Mailbox override option to all actions, enabling multi-user execution without requiring resource updates. * December 30, 2025 (v1.4) - Removed the default values for the `has_attachments` and `un_read` fields in the **Search Emails Extended** action. The change allows users to search for emails without being forced to filter by attachment status or read/unread status.