Discover insights from Microsoft Exchange with the Microsoft Exchange connector for Amazon Q Business

Discover insights from Microsoft Exchange with the Microsoft Exchange connector for Amazon Q Business

Amazon Q Business is a fully managed, generative AI-powered assistant that helps enterprises unlock the value of their data and knowledge. With Amazon Q Business, you can quickly find answers to questions, generate summaries and content, and complete tasks by using the information and expertise stored across your company’s various data sources and enterprise systems. At the core of this capability are native data source connectors that seamlessly integrate and index content from multiple repositories into a unified index. This enables the Amazon Q Business large language model (LLM) to provide accurate, well-written answers by drawing from the consolidated data and information. The data source connectors act as a bridge, synchronizing content from disparate systems like Salesforce, Jira, and SharePoint into a centralized index that powers the natural language understanding and generative abilities of Amazon Q Business.

To make this integration process as seamless as possible, Amazon Q Business offers multiple pre-built connectors to a wide range of data sources, including Atlassian Jira, Atlassian Confluence, Amazon Simple Storage Service (Amazon S3), Microsoft Exchange, Microsoft SharePoint, Salesforce, and many more. This allows you to create your generative AI solution with minimal configuration. For a full list of Amazon Q Business supported data source connectors, see Supported connectors.

One of the key integrations for Amazon Q Business is with Microsoft Exchange. Microsoft Exchange is a widely used enterprise email and collaboration environment that contains a wealth of valuable information, including email conversations, attachments, calendar events, and contacts.

With the Microsoft Exchange connector, we are enhancing user productivity and streamlining communication processes within organizations. This integration empowers users to use advanced search capabilities and intelligent email management using natural language.

The Microsoft Exchange connector for Amazon Q Business providing a seamless way to index and query data stored in Microsoft Exchange. With this connector, organizations

  • Centralized access to Microsoft Exchange data – Amazon Q Business allows you to configure Microsoft Exchange as a data source, providing a single, centralized interface to search and access information stored in your Microsoft Exchange repositories. This alleviates the need for users to navigate through individual email accounts or folders to find relevant data.
  • Intelligent search and retrieval – Amazon Q Business uses advanced natural language processing and machine learning capabilities to enable intelligent, natural language-based search and retrieval of information from Microsoft Exchange. Users can ask questions or make queries in plain language, and Amazon Q Business will surface the most relevant responses and insights.
  • Enhanced productivity and collaboration – By making it straightforward for employees to find and act on the information stored in Microsoft Exchange, Amazon Q Business can improve productivity and collaboration across the organization. Users can quickly locate key documents, contacts, or calendar events, and use that information to make more informed decisions and drive faster, more effective outcomes.
  • Secure and compliant data access – Amazon Q Business provides a secure, compliant way to access and query Microsoft Exchange data. Amazon Q Business integrates with your organization’s identity provider (IdP) to make sure only authorized users can access sensitive information, and it maintains a detailed audit trail of all user activity.
  • Streamlined workflows and decision-making – Amazon Q Business has the ability to generate summaries, answers, and recommendations based on Microsoft Exchange data, users can make more informed decisions and streamline various workflows, such as customer support, project management, and strategic planning.

By using the Microsoft Exchange connector for Amazon Q Business, organizations can unlock the full value of the data stored in their Microsoft Exchange repositories, empowering employees to work more efficiently, collaborate more effectively, and drive greater business impact.

In this post, we show how to index information stored in Microsoft Exchange and use Amazon Q Business to query your Microsoft Exchange data.

Microsoft Exchange connector for Amazon Q Business features

The following table gives an overview of the Microsoft Exchange connector for Amazon Q Business and its supported features. For more details, refer to Microsoft Exchange connector overview.

Solution overview

With Amazon Q Business, you can configure multiple data sources to provide a central place to search across your internal repository. For our solution, we demonstrate how to retrieve data from the Microsoft Exchange repository or a folder using the Microsoft Exchange connector for Amazon Q Business. The solution consists of the following steps:

  1. Configure a Microsoft Exchange application and gather connection details
  2. Create users and groups in AWS IAM Identity Center
  3. Create the Microsoft Exchange connector for Amazon Q Business
  4. Query Microsoft Exchange data using the Amazon Q web experience
  5. Troubleshooting

The following diagram illustrates the solution architecture.

Enterprise search architecture showing how Amazon Q Business processes Exchange data with IAM-based access controls

Prerequisites

To configure the Microsoft Exchange connector for Amazon Q Business, you need to create a Microsoft Exchange account in Office 365.

Configure a Microsoft Exchange application and gather connection details

  1. Log in to the Azure portal using your global admin user account and choose Next.

  1. Enter your password and choose Sign in.

  1. If multi-factor authentication (MFA) is configured, now authenticate using Microsoft Authenticator.

  1. Choose Yes to stay signed in.
  2. On the Azure portal’s landing page, search for and choose Microsoft Entra ID.

Azure portal search results for Microsoft Entra ID

  1. On the Microsoft Entra ID service page, copy the value of Tenant ID.

Azure Active Directory tenant overview page showing basic information and tenant ID

  1. Choose App registrations in the navigation pane.

Microsoft Entra ID portal with App registrations menu item highlighted in navigation pane

  1. Choose New registration.

Microsoft Entra ID App registrations page showing single registered application

  1. Enter the name of your choice for Name, then choose Register.

Application registration form with name field and account type selection

After successful registration, you will land on the application page, as shown in the following screenshot.

Application registration form with name and account type settings

  1. Choose Certificates & secrets in the navigation pane.

Azure portal view of blog-mx-application settings showing certificates and secrets menu selection

  1. Choose New client secret.

Azure portal view of blog-mx-application settings showing certificates and secrets menu selection

  1. Enter a description for the client secret for Description and choose Add.

Azure portal dialog box for adding new client secret with description field and expiration dropdown

  1. Make a note of the secret value and secret ID.

Azure portal showing newly created client secret with masked value and ID fields

  1. Now configure API permissions by choosing API permissions in the navigation pane.

Azure portal showing API permissions menu selection with active client secret configuration

  1. For Microsoft Exchange Online, please make sure that you have Azure AD Premium P2 activated. This will make sure that the Microsoft Exchange Online is available as part of your organization APIs.

API permissions page showing configuration settings for a blog application in AWS Management Console

API permissions configuration page showing Microsoft Graph integration settings

API permissions page showing list of configurable application permissions with search functionality

  1. Add the permissions to the APIs Microsoft Graph and Office 365 Exchange Online.

There are 13 permissions for Microsoft Graph and 1 permission for Office 365 Exchange Online.

API permissions list showing Microsoft Graph and Exchange Online access settings

Create users and groups in AWS IAM Identity Center

In this section, you create a user John Doe in AWS IAM Identity Center, who will be given permission to use the application.

To create your user, complete the following steps:

  1. Open IAM Identity Center console.
  2. If you haven’t enabled IAM Identity Center, choose Enable. If there’s a pop-up, choose how you want to enable IAM Identity Center. For this example, select Enable only in this AWS account. Choose Continue.

For more details, refer to Enable IAM Identity Center.

  1. On the IAM Identity Center console, choose Users in the navigation pane.
  2. Choose Add user.
  3. Enter the following user details:
    1. Username: john_doe
    2. Email address: john_doe@xyz.com (Use or create a real email address for each user to use in a later step.)
    3. First name: John
    4. Last name: Doe
    5. Display name: John Doe

IAM user creation form showing primary information fields including username and email address

  1. Skip the optional fields and choose Next to create the user.
  2. On the Add user to groups page, choose Next and then choose Add user.

Create the Microsoft Exchange connector for Amazon Q Business

For detailed steps to set up Amazon Q Business, refer to Getting started with Amazon Q Business. To configure the Amazon Q Business connector, complete the following steps:

  1. In the Amazon Q Business console, choose Applications in the navigation pane.
  2. Choose Create application.

Amazon Q Applications dashboard showing four-step workflow process

  1. In the Create application step, for Service access, select Create and use a new service role, then choose Create.

Amazon Q application creation form showing basic settings configuration

  1. In the Select retriever step, select Use native retriever and choose Next.

Amazon Q retriever selection interface with native and existing options

  1. In the Connect data sources step, search for and choose Microsoft Exchange, then choose Create application.

AWS Q data source configuration screen showing Amazon S3, Web crawler, and Microsoft Exchange connection options

  1. On the Applications page, choose your application (qbiz-mx-app).

AWS Q Applications dashboard showing workflow steps and list of existing applications

  1. In the Data sources section, choose Add data source.

AWS Q application details page showing workflow steps and configuration settings for qbiz-mx-app

  1. On the Add data source page, search for Microsoft Exchange and choose the plus sign to configure the data source.

AWS Q Add data source interface showing available connection options including Microsoft Exchange

  1. Enter the name of the data source and the tenant ID noted earlier.

Microsoft Exchange configuration form in AWS Q showing name, description, and authorization fields

  1. In the Authorization section, enable Access Control List (ACL).
  2. In the Authentication section, for AWS Secrets Manager secret, choose Create and add new secret.

AWS console showing authentication settings with secrets manager dropdown menu highlighted

  1. Enter the secret name of your choice, the client ID and client secret values you noted earlier, and choose Save.

AWS Secrets Manager modal for creating new secret credentials

  1. In the Configure VPC and security group section, leave the settings as default.
  2. In the IAM role section, choose Create a new service role.
  3. In the Sync scope section, for User email ID, enter the email of your Microsoft Exchange account and choose Add.

Alternatively, if you have list of user email IDs, you can provide an Amazon S3 path to a file with user emails in your S3 bucket. For more details, refer to Connecting Amazon Q Business to Microsoft Exchange using the console.

AWS console interface showing IAM role configuration and sync settings

AWS sync scope configuration with user email input and optional settings

  1. In the Sync mode section, use the default Full sync.
  2. In the Sync run schedule section, choose the frequency of your choice.
  3. Leave the remaining sections with default values.

AWS console showing sync schedule and field mapping configuration

  1. Choose Add data source.

Field mapping interface showing Microsoft Exchange email fields matched to index fields in AWS

Amazon Q will take 30 seconds to 1 minute to configure your data source. You will see a success banner as shown in the following screenshot.

  1. Choose Sync now to sync your data source.

After successfully syncing the data source, you will see the Status / Summary column as Completed.

AWS data source details page showing newly created Microsoft Exchange connection with success messages

AWS Amazon Q data source page showing successful sync completion with 5 items processed

  1. For the Update groups and users step, choose Add groups and users.

 AWS groups and users configuration page with service role selection

The users and groups that you add in this section are from the IAM Identity Center users and groups set up by your administrator.

  1. In the Add or assign users and groups pop-up, select Assign existing users and groups to add existing users configured in your connected IAM Identity Center.

Optionally, if you have permissions to add users to connected IAM Identity Center, you can select Add new users.

Dialog box with options to add new users or assign existing users to Amazon Q Business

  1. Choose Get started.

Dialog box for assigning users and groups to Amazon Q Business with Get Started button

  1. In the Assign users and groups pop-up, search for users by user display name or groups by group name.
  2. Choose the users or groups you want you add and choose Done.

User search interface showing search results in IAM Identity Center

This closes the pop-up. The groups and users that you added should now be available on the Groups or Users tabs.

  1. Choose Assign.

For each group or user entry, an Amazon Q Business subscription tier needs to be assigned.

  1. To enable a subscription for a group, on the Update groups and users page, choose the Groups (If individual users need to be assigned a subscription, choose the Users tab.)
  2. For Subscription, choose Choose subscription and choose a subscription (Q Business Lite or Q Business Pro).
  3. Choose Update application to complete setting up the data connector for Amazon Q Business.

Query Microsoft Exchange data using the Amazon Q web experience

To query the data that is synced through the data source, navigate back to the Amazon Q Business application (qbiz-mx-app) and choose the Web experience URL link.

Amazon Q console dashboard showing application management interface

Sign in to the web application using the credentials of the user assigned and configured in IAM Identity Center.

AWS sign-in page with username field and Next button

After a successful sign in, the Amazon Q Business application should be displayed in the list of applications, as shown in the following screenshot.

AWS access portal showing applications tab with one app listed

The application link should redirect you to the Amazon Q Business chat application, as shown in the following screenshot.

Amazon Q Business chat interface showing welcome message and input field for questions

The following screenshot shows the emails that were synced earlier. We will first query based on the content from the email highlighted in this screenshot.

Microsoft Outlook inbox showing Azure welcome email with getting started information

The following screenshot shows the response to the query “what are the easy ways to get started on Azure?”

Amazon Q Business chat showing response about Azure getting started options

You can choose the data source hyperlink to open the email that the response is based on.

Azure getting started guide showing web app and VM deployment options

The following screenshot shows an invoice email from Microsoft Outlook, which we will use for another question.

Outlook inbox showing Microsoft invoice email with billing details

We will also refer to calendar details of a meeting with the billing team along with the agenda details.

Calendar event details for billing meeting to discuss invoice details scheduled for December 3rd

We ask the question “Q Assistant, I have a meeting with the billing team tomorrow. Can you summarize the agenda and find relevant information from my emails that I can review in the meeting?” The following screenshot shows the response based on the sample invoices email.

Amazon Q chat interface showing billing meeting summary with Microsoft invoice details

The response included the information from the email along with the hyperlink to the data sources (in this case, it is the hyperlink to the Outlook emails).

We ask another question: “What are the main features and my actions items relating to the recent CloudTrail changes? By when should I implement the changes?”

Amazon Q interface showing CloudTrail changes summary and required actions

Amazon Q Business retrieved the main features, action items, and the implementation timeline.

Amazon Q response showing CloudTrail implementation timeline and required actions

Congratulations! You have successfully used the Microsoft Exchange connector for Amazon Q Business to surface answers and insights based on the content indexed from your Microsoft Exchange account.

Troubleshooting

Troubleshooting your Microsoft Exchange connector provides information about error codes you might see for the connector and suggested troubleshooting actions. If you encounter an HTTP status code 403 (Forbidden) error when you open your Amazon Q Business application, it means that the user is unable to access the application. See for common causes and how to address them.

The sync run history report is a new feature now available in Amazon Q Business that significantly improves visibility into data source sync operations. The latest release introduces a comprehensive document-level report incorporated into the sync history, providing administrators with granular indexing status, metadata, and ACL details for the documents processed during a data source sync job.

Frequently asked questions

In this section, we provide guidance to frequently asked questions.

Amazon Q Business is unable to answer your questions

If you get response “Sorry, I couldn’t find relevant information to complete your request,” this might be due to a few reasons:

  • No permissions – Access control lists (ACLs) applied to your account don’t allow you to query certain data sources. If this is the case, reach out to your administrator to make sure your ACLs are configured to access the data sources
  • Data connector sync failed – Your data connector might have failed to sync information from the source to the Amazon Q Business application. Verify the data connector’s sync run schedule and sync history to confirm the sync is successful.
  • Empty mail exchange – Verify that the connected email exchange to Amazon Q has data.

If none of these are true in your case, open a support case to get this resolved.

How to generate responses from authoritative data sources

You can configure these options using Amazon Q Business application global controls under Admin controls and guardrails:

  1. Log in as an Amazon Q Business application administrator.
  2. Navigate to the application and choose Admin controls and guardrails in the navigation pane.
  3. Choose Edit in the Global controls section to configure these options.

For more information, refer to Admin controls and guardrails in Amazon Q Business.

Amazon Q Business admin controls interface showing global and topic-specific settings

Amazon Q Business responds using old (stale) data even though your data source is updated

Each Amazon Q Business data connector can be configured with unique sync run schedule frequency. Verify the sync status and sync schedule frequency for your data connector to see when the last sync ran successfully. Your data connector’s sync run schedule might be set to sync at a scheduled time of day, week, or month. If set to run on demand, then the sync has to be manually triggered. When the sync run is complete, verify the sync history to make sure the run has successfully synced all new issues. Refer to Sync run schedule for more information.

How to set up Amazon Q Business using a different IdP

You can set up Amazon Q Business with another SAML 2.0-compliant IdP, such as Okta, Entra ID, or Ping Identity. For more information, see Creating an Amazon Q Business application using Identity Federation through IAM.

Expand the solution

You can explore other features in Amazon Q Business. For example, the Amazon Q Business document enrichment feature helps you control what documents and document attributes are ingested into your index and also how they’re ingested. Using document enrichment, you can create, modify, or delete document attributes and document content when you ingest them into your Amazon Q Business index. For example, you can scrub personally identifiable information (PII) by choosing to delete any document attributes related to PII.

Amazon Q Business also offers the following features:

  • Filtering using metadata – Use document attributes to customize and control users’ chat experience. This is currently supported only if you use the Amazon Q Business API.
  • Source attribution with citations – Verify responses using Amazon Q Business source attributions.
  • Upload files and chat – Let users upload files directly into chat and use uploaded file data to perform web experience tasks.
  • Quick prompts – Feature sample prompts to inform users of the capabilities of their Amazon Q Business web experience.

To improve retrieved results and customize the user chat experience, you can map document attributes from your data sources to fields in your Amazon Q index. Learn more by exploring Microsoft Exchange data source connector field mappings.

Clean up

To avoid incurring future costs, clean up the resources you created as part of this solution. If you only added a new data source using the Microsoft Exchange connector for Amazon Q Business, delete that data source.

Complete the following steps to clean up your resources:

  1. Open the Office 365 Admin Center using the account of a user member of the Tenant Global Admins group.
  2. Navigate to the Microsoft Azure Portal.
  3. Search for and choose App registrations.
  4. Select the application you created earlier, then choose Delete.
  5. On the Amazon Q Business console, choose Applications in the navigation pane.
  6. Select the application you created, and on the Actions menu, choose Delete.
  7. Delete the users that were added in IAM Identity Center.

Conclusion

With the Microsoft Exchange connector for Amazon Q Business, organizations can tap into the repository of information stored in their account securely using intelligent search powered by Amazon Q Business.

To learn about these possibilities and more, refer to the Amazon Q Business User Guide. For more information on how you can create, modify, or delete metadata and content when ingesting your data from Microsoft Exchange, refer to Enriching your documents during ingestion.


About the Authors

Ram Konchada is Senior Solutions Architect at AWS. He loves helping customers achieve their business goals using technology. Outside of work, Ram enjoys playing tennis.

Armstrong Onaiwu is a Solutions Architect at AWS. He is deeply passionate about technology and helping customers use AWS services to address business challenges. He specializes in designing highly scalable, resilient, and cost-effective network solutions on AWS. When not spending time with his family, Armstrong enjoys traveling and playing FIFA.

​ 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top