Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test connection MicrosoftGraphMail #27033

Merged
merged 5 commits into from
May 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ def pages_puller(self, response: dict, page_count: int) -> list:

def test_connection(self):
if self._mailbox_to_fetch:
self.http_request('GET', f'users/{self._mailbox_to_fetch}')
self.http_request('GET', f'/users/{self._mailbox_to_fetch}/messages?$top=1')
else:
self.get_access_token()
return 'ok'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ script:
- Read
- Unread
description: Update the status of an email to read / unread.
dockerimage: demisto/crypto:1.0.0.57063
dockerimage: demisto/crypto:1.0.0.61689
feed: false
isfetch: true
longRunning: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ This integration was integrated and tested with version v1 of Microsoft Graph.
| Advanced: Time in minutes to look back when fetching emails | Use this parameter to determine how far backward to look in the search for incidents that were created before the last run time and did not match the query when they were created. | False |

4. Click **Test** to validate the URLs, token, and connection.

### Required Permissions
The following permissions are required for all commands:
- Mail.ReadWrite - Application
- Mail.Send - Application

## Commands
You can execute these commands from the Cortex XSOAR CLI, as part of an automation, or in a playbook.
After you successfully execute a command, a DBot message appears in the War Room with the command details.
Expand Down
7 changes: 7 additions & 0 deletions Packs/MicrosoftGraphMail/ReleaseNotes/1_5_3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

#### Integrations

##### O365 Outlook Mail (Using Graph API)

- Improved implementation of the ***test-module*** command.
- Updated the Docker image to: *demisto/crypto:1.0.0.61689*.
2 changes: 1 addition & 1 deletion Packs/MicrosoftGraphMail/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Microsoft Graph Mail",
"description": "Microsoft Graph lets your app get authorized access to a user's Outlook mail data in a personal or organization account.",
"support": "xsoar",
"currentVersion": "1.5.2",
"currentVersion": "1.5.3",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down