<commit_before>Use the Microsoft Graph integration to let your applications get authorized access to a user's Outlook mail data in a personal or organization account.

## Authentication
For more details about the authentication used in this integration, see [Microsoft Integrations - Authentication](https://xsoar.pan.dev/docs/reference/articles/microsoft-integrations---authentication).

### Required Permissions
* Mail.ReadWrite - Application
* User.Read - Application

### OData Usage
The OData parameter can be used to create different queries for the ***msgraph-mail-list-emails*** and ***msgraph-mail-get-email*** commands. Please see [OData Docs](https://docs.microsoft.com/en-us/graph/query-parameters) for detailed information.
Examples:
* ```!msgraph-mail-list-emails user_id=<EMAIL> odata="$select=from"```
* ```!msgraph-mail-list-emails user_id=<EMAIL> odata="$filter=from/emailAddress/address eq '<EMAIL>'"```
* ```!msgraph-mail-list-emails user_id=<EMAIL> odata="$filter=sentDateTime gt 2020-03-25T09:35:23Z and sentDateTime lt 2020-03-25T12:04:47Z" ```

**NOTE:**
The query parameter '$filter' is not supported when using the 'search' parameter.

## Configure O365 Outlook Mail (Using Graph API) on Cortex XSOAR

1. Navigate to **Settings** > **Integrations** > **Servers & Services**.<commit_msg>Added the Mail.Send - Application Permission (#15000)<commit_after>Use the Microsoft Graph integration to let your applications get authorized access to a user's Outlook mail data in a personal or organization account.

## Authentication
For more details about the authentication used in this integration, see [Microsoft Integrations - Authentication](https://xsoar.pan.dev/docs/reference/articles/microsoft-integrations---authentication).

### Required Permissions
* Mail.ReadWrite - Application
* User.Read - Application
* Mail.Send - Application

### OData Usage
The OData parameter can be used to create different queries for the ***msgraph-mail-list-emails*** and ***msgraph-mail-get-email*** commands. Please see [OData Docs](https://docs.microsoft.com/en-us/graph/query-parameters) for detailed information.
Examples:
* ```!msgraph-mail-list-emails user_id=<EMAIL> odata="$select=from"```
* ```!msgraph-mail-list-emails user_id=<EMAIL> odata="$filter=from/emailAddress/address eq '<EMAIL>'"```
* ```!msgraph-mail-list-emails user_id=<EMAIL> odata="$filter=sentDateTime gt 2020-03-25T09:35:23Z and sentDateTime lt 2020-03-25T12:04:47Z" ```

**NOTE:**
The query parameter '$filter' is not supported when using the 'search' parameter.

## Configure O365 Outlook Mail (Using Graph API) on Cortex XSOAR

1. Navigate to **Settings** > **Integrations** > **Servers & Services**.
{'fraction_non_alphanumeric': 0.13457249070631971, 'fraction_numerical': 0.025650557620817842, 'mean_word_length': 5.71072319201995, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3140144', 'n_tokens_mistral': 834, 'n_tokens_neox': 775, 'n_words': 242}