Configure Exchange Online Upload/Collection Using OAuth Authentication
To enable OAuth and configure Exchange Online for use of upload/collection functionality, you will need to register the application with your Microsoft Entra ID. You will also need to give permissions for the application during this process. Specifically, the application needs permission to use Office 365 Exchange Online API to access EWS (Exchange Web Services).
Review the information below to complete this process.
Register your application with Microsoft Entra ID
To register your application with Microsoft Entra ID, follow the steps below:
-
Go to App Registrations and select New Registration.
-
Complete the registration form.
-
Enter a name. This could be "ZyLabOneExchangeCollector" or another application name that seems appropriate.
-
Decide the account type. Determine if the application should be single tenant (for this organization only) or multitenant. Typically single tenant is chosen here.
-
The redirect URI is not needed.
-
Click Register.
-
-
You’ve now created a registration. From here, go to Certificates and secrets.
-
Select New Client Secret.
-
Enter a description and a duration. Click Add.
-
You will now be shown a screen with your client secret (value field). Please copy this value now as this is the ONLY time it will be displayed.
-
Click on API Permissions. Then click Add Permission.
-
Go to APIs my organization uses.
-
Search for Office and select Office 365 Exchange Online.
-
Select Application permissions.
-
Search for full and select full_access_as_app. Click Add permissions.
-
Click Grant Consent for (your companyname).
-
Select Yes.
-
You will now see that the consent was granted.
-
This finishes the creation of the App Registration that’s needed for the ZyLAB Exchange Collector. Please save the TentantID, AppID and ClientSecret for the next section.
Modify the collector configuration
-
Create a backup and then edit the exchange collector configuration.
Program Files (x86)\ZyLAB\EDiscovery\Ediscoveryservice\Assemblies\Performers\ZyLAB.EDiscovery.Collectors.Exchange\ZyLAB.EDiscovery.Collectors.Exchange.dll.xml
-
Modify the Default configuration (we can no longer use basic authentication now).
-
Replace the AppID, TenantID and ClientSecret with what you saved earlier.
<configuration id="Default">
<settings>
<!-- Legacy Auth-->
<Domain> </Domain>
<LoginAccount> </LoginAccount>
<LoginPassword> </LoginPassword>
<!-- OAuth -->
<OAuth>true</OAuth>
<!-- AppId -->
<AppId>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</AppId>
<!-- TenantId -->
<TenantId>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</TenantId>
<!-- Client Secret -->
<ClientSecret>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</ClientSecret> <!-- Exchange2010, Exchange2010_SP1 -->
<ExchangeVersion>Exchange2013_SP1</ExchangeVersion> <Folders>MsgFolderRoot,RecoverableItemsRoot,ArchiveMsgFolderRoot,ArchiveRecoverableItemsRoot</Folders><ExchangeWebServicesURL>https://outlook.office365.com/EWS/Exchange.asmx</ExchangeWebServicesURL>
-
Save the file.
-
Now open up Legal Processing.
-
Go to settings > processing rules.
-
Click Refresh System Performers (or regenerate defaults if you’re on 6.9).
-
Save and close.
-
Now, when you create a new matter, it will use the new configuration.