Skip to content

Commit

Permalink
Fix test connection MicrosoftGraphMail (#27033)
Browse files Browse the repository at this point in the history
* add 'Required Permissions' to the  documentation

* change api call in test func to get list mails with limit 1

* docker

* RN
  • Loading branch information
rshunim authored May 29, 2023
1 parent 1740d1e commit d5c128e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
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

0 comments on commit d5c128e

Please sign in to comment.