Skip to main content

Microsoft EWS Daemon

microsoft-defender-atp

Version: 2.2
Updated: Oct 06, 2023

Cloud SOAR

This integration is only for Cloud SOAR.

Process emails with EWS Daemon.

Actions

  • Microsoft EWS Incoming Mail Daemon (Daemon) - Automatically retrieve emails from EWS.

Microsoft EWS configuration

Each application 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 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.
  2. If you have access to multiple tenants, use the Directory + subscription filter
    microsoft-ews-daemon 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-defender-atp

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-defender-atp

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-defender-atp

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. Delegated permissions are selected by default. Delegated permissions are appropriate for client apps that access an API as the signed-in user, and whose access should be restricted to the permissions you select in the next step.
  4. Application permissions are for service- or daemon-type applications that need to access API as themselves, without user interaction for sign-in or consent. Unless you've defined application roles for your API.
  5. Select Add a permission, and add the following permissions (as we can see from the picture).microsoft-defender-atp

EWS API need to be configure these permissions

Applications are authorized to call APIs when they are granted permissions by users/admins as part of the consent process. The list of configured permissions should include all the permissions the application needs.

API / Permissions

Microsoft Graph (7)

  • Mail.Read
    • Type: Delegated
    • Description: Read user mail
    • Admin: -
  • Mail.Read
    • Type: Application
    • Description: Read mail in all mailboxes
    • Admin: Yes
  • Mail.ReadBasic
    • Type: Delegated
    • Description: Read user basic mail
    • Admin: -
  • Mail.ReadBasic
    • Type: Application
    • Description: Read basic mail in all mailboxes
    • Admin: Yes
  • Mail.ReadBasic.All
    • Type: Application
    • Description: Read basic mail in all mailboxes
    • Admin: Yes
  • profile
    • Type: Delegated
    • Description: View users' basic profile
    • Admin: -
  • User.Read
    • Type: Delegated
    • Description: Sign in and read user profile
    • Admin: Yes

Office 365 Exchange Online (3)

  • EWS.AccessAsUser.All
    • Type: Delegated
    • Description: Access mailboxes as the signed-in user via Exchange Web Services
    • Admin: -
  • Exchange.ManageAsApp
    • Type: Application
    • Description: Manage Exchange As Application
    • Admin: Yes
  • full_access_as_app
    • Type: Application
    • Description: Use Exchange Web Services with full access to all mailboxes
    • Admin: Yes

full_access_as_app Use Exchange Web Services with full access to all mailboxes

Once API permission are added then Admin must consent to a grant these permissions, Learn more about permissions and consent.

Category

Email Gateway

Change Log

  • October 27, 2021 - First upload
  • March 10, 2022 - Logo
  • October 6, 2023 (v2.2) - Integration Updated
Legal
Privacy Statement
Terms of Use

Copyright © 2024 by Sumo Logic, Inc.