EWSO365
The new EWS O365 integration uses OAuth 2.0 protocol and can be used with Exchange Online and Office 365 (mail).
Email · Microsoft Exchange Online
Configuration parameters
azure_cloud— Azure Cloud_client_id— ID / Application ID_tenant_id— Token / Tenant IDcredentials—default_target_mailbox— Email Address (required)upn_mailbox— UPN Addressfolder— Name of the folder from which to fetch incidentsaccess_type— Access Type (Impersonation is deprecated as of February 2025)is_public_folder— Public FolderisFetch— Fetch incidentsincidentType— Incident typefetch_time— First fetch timestamp (<number> <time unit>, e.g., 12 hours, 7 days)max_fetch— Maximum number of incidents per fetch (up to 200). Performance might be affected by a value higher than 50.mark_as_read— Mark fetched emails as readrequest_timeout— Timeout (in seconds) for HTTP requests to Exchange Serverinsecure— Trust any certificate (not secure)proxy— Use system proxy settingsseparate_process— Run as a separate process (protects against memory depletion)self_deployed— Use a self deployed Azure Applicationclient_id— ID / Application ID (Deprecated)tenant_id— Token / Tenant ID (Deprecated)client_secret— Key / Application Secret (Deprecated)incidentFetchInterval— Incidents Fetch IntervalincidentFilter— What time field should we filter incidents by?legacy_name— Use legacy attachment nameskip_unparsable_emails— Skip unparsable emails during fetch incidents
Commands (22)
-
ews-auth-resetRun this command if for some reason you need to rerun the authentication process.
-
ews-create-folderCreates a new folder in a specified mailbox.
-
ews-delete-attachmentDeletes the attachments of an item (email message).
-
ews-delete-itemsDelete items from mailbox.
-
ews-expand-groupExpands a distribution list to display all members. By default, expands only first layer of the distribution list. If recursive-expansion is "True", the command expands nested distribution lists and returns all members.
-
ews-find-foldersRetrieves information for folders for a specified mailbox. Only folders with read permissions will be returned. Your visual folders on the mailbox, such as "Inbox", are under the folder "Top of Information Store".
-
ews-get-attachmentRetrieves the actual attachments from an item (email message). To get all attachments for a message, only specify the item-id argument.
-
ews-get-contactsRetrieves contacts for a specified mailbox.
-
ews-get-folderRetrieves a single folder.
-
ews-get-itemsRetrieves items by item ID.
-
ews-get-items-as-emlRetrieves items by item ID and uploads its content as an EML file.
-
ews-get-items-from-folderRetrieves items from a specified folder in a mailbox. The items are order by the item created time, most recent is first.
-
ews-get-out-of-officeRetrieves the out-of-office status for a specified mailbox.
-
ews-get-searchable-mailboxesReturns a list of searchable mailboxes. This command requires eDiscovery permissions to the Exchange Server. For more information, see the EWSv2 integration documentation.
-
ews-mark-item-as-junkMarks an item as junk. This is commonly used to block an email address (meaning all future emails from this sender will be sent to the junk folder). For more information, see the Microsoft documentation: https://msdn.microsoft.com/en-us/library/office/dn481311(v=exchg.150).aspx.
-
ews-mark-items-as-readMarks items as read or unread.
-
ews-move-itemMove an item to different folder in the mailbox.
-
ews-move-item-between-mailboxesMoves an item from one mailbox to different mailbox.
-
ews-recover-messagesRecovers messages that were soft-deleted.
-
ews-search-mailboxSearches for items in the specified mailbox. Specific permissions are needed for this operation to search in a target mailbox other than the default.
-
reply-mailReplies to an email using EWS.
-
send-mailSends an email.