Intelligently search your group’s Microsoft Groups knowledge supply with the Amazon Kendra connector for Microsoft Groups


Organizations use messaging platforms like Microsoft Teams to deliver the correct folks collectively to securely talk with one another and collaborate to get work carried out. Microsoft Groups captures invaluable organizational data within the type of the knowledge that flows by it as customers collaborate. Nonetheless, making this information simply and securely obtainable to customers could be difficult because of the fragmented nature of conversations throughout teams, channels, and chats inside a corporation. Moreover, the conversational nature of Microsoft Groups communication renders a standard keyword-based strategy to look ineffective when looking for correct solutions to questions from the content material and due to this fact requires clever search capabilities which have the flexibility to course of pure language queries.

Now you can use the Amazon Kendra connector for Microsoft Groups to index Microsoft Groups messages and paperwork, and search this content material utilizing clever search in Amazon Kendra, powered by machine studying (ML).

This submit exhibits tips on how to configure the Amazon Kendra connector for Microsoft Groups and reap the benefits of the service’s clever search capabilities. We use an instance of an illustrative Microsoft Groups occasion the place customers focus on technical matters associated to AWS.

Resolution overview

Microsoft Groups content material for lively organizations is dynamic in nature resulting from steady collaboration. Microsoft Groups contains public channels the place any person can take part, and personal channels the place solely these customers who’re members of those channels can talk with one another. Moreover, people can instantly talk with each other in one-on-one and advert hoc teams. This communication is within the type of messages and threads of replies, with non-obligatory doc attachments.

In our answer, we configure Microsoft Groups as a knowledge supply for an Amazon Kendra search index utilizing the Amazon Kendra connector for Microsoft Groups. Based mostly on the configuration, when the information supply is synchronized, the connector crawls and indexes all of the content material from Microsoft Groups that was created on or earlier than a selected date. The connector additionally indexes the Entry Management Checklist (ACL) data for every message and doc. When entry management or person context filtering is enabled, the search outcomes of a question made by a person contains outcomes solely from these paperwork that the person is allowed to learn.

The Amazon Kendra connector for Microsoft Groups can combine with AWS IAM Identity Center (Successor to AWS Single Signal-On). You first should allow IAM Id Heart and create a corporation to sync customers and teams out of your lively listing. The connector will use the person identify and group lookup for the person context of the search queries.

With Amazon Kendra Experience Builder, you possibly can construct and deploy a low-code, totally practical search software to look your Microsoft Groups knowledge supply.

Stipulations

To check out the Amazon Kendra connector for Microsoft Groups utilizing this submit as a reference, you want the next:

Notice that the Microsoft Graph API locations throttling limits on the variety of concurrent calls to a service to forestall overuse of assets.

Configure Microsoft Groups

The next screenshot exhibits our instance Microsoft Groups occasion with pattern content material and the PDF file AWS_Well-Architect_Framework.pdf that we are going to use for our Amazon Kendra search queries.

The next steps describe the configuration of a brand new Amazon Kendra connector software within the Azure portal. This may create a person OAuth token for use in configuring the Amazon Kendra connector for Microsoft Groups.

  1. Log in to Azure Portal along with your Microsoft credentials.
  2. Register an software with the Microsoft Identity platform.

  1. Subsequent to Consumer credentials, select Add a certificates or secret so as to add a brand new consumer secret.

  1. For Description, enter an outline (for instance, KendraConnectorSecret).
  2. For Expires, select an expiry date (for instance, 6 months).
  3. Select Add.

  1. Save the key ID and secret worth to make use of later when creating an Amazon Kendra knowledge supply.

  1. Select Add a permission.

  1. Select Microsoft Graph so as to add all mandatory Microsoft Graph permissions.

  1. Select Utility permissions.

The registered software ought to have the next API permissions to permit crawling all entities supported by the Amazon Kendra connector for Microsoft Groups:

  • ChannelMessage.Learn.All
  • Chat.Learn
  • Chat.Learn.All
  • Chat.ReadBasic
  • Chat.ReadBasic.All
  • ChatMessage.Learn.All
  • Listing.Learn.All
  • Recordsdata.Learn.All
  • Group.Learn.All
  • Mail.Learn
  • Mail.ReadBasic
  • Consumer.Learn
  • Consumer.Learn.All
  • TeamMember.Learn.All

Nonetheless, you possibly can choose a lesser scope primarily based on the entities chosen to be crawled. The next lists are the minimal units of permissions wanted for every entity:

  • Channel Submit:
    • ChannelMessage.Learn.All
    • Group.Learn.All
    • Consumer.Learn
    • Consumer.Learn.All
    • TeamMember.Learn.All (user-group mapping for id crawl)
  • Channel Attachment:
    • ChannelMessage.Learn.All
    • Group.Learn.All
    • Consumer.Learn
    • Consumer.Learn.All
    • TeamMember.Learn.All (user-group mapping for id crawl)
  • Channel Wiki:
    • Group.Learn.All
    • Consumer.Learn
    • Consumer.Learn.All
    • TeamMember.Learn.All (user-group mapping for id crawl)
  • Chat Message:
    • Chat.Learn.All
    • ChatMessage.Learn.All
    • ChatMember.Learn.All
    • Consumer.Learn
    • Consumer.Learn.All
    • Group.Learn.All
    • TeamMember.Learn.All (user-group mapping for id crawl)
  • Assembly Chat:
    • Chat.Learn.All
    • ChatMessage.Learn.All
    • ChatMember.Learn.All
    • Consumer.Learn
    • Consumer.Learn.All
    • Group.Learn.All
    • TeamMember.Learn.All (user-group mapping for id crawl)
  • Chat Attachment:
    • Chat.Learn.All
    • ChatMessage.Learn.All
    • ChatMember.Learn.All
    • Consumer.Learn
    • Consumer.Learn.All
    • Group.Learn.All
    • Recordsdata.Learn.All
    • TeamMember.Learn.All (user-group mapping for id crawl)
  • Assembly File:
    • Chat.Learn.All
    • ChatMessage.Learn.All
    • ChatMember.Learn.All
    • Consumer.Learn
    • Consumer.Learn.All
    • Group.Learn.All
    • Recordsdata.Learn.All
    • TeamMember.Learn.All (user-group mapping for id crawl)
  • Calendar Assembly:
    • Calendars.Learn
    • Group.Learn.All
    • TeamMember.Learn.All
    • Consumer.Learn
    • Consumer.Learn.All
    • TeamMember.Learn.All (user-group mapping for id crawl)
  • Assembly Notes:
    • Group.Learn.All
    • Consumer.Learn
    • Consumer.Learn.All
    • Recordsdata.Learn.All
    • TeamMember.Learn.All (user-group mapping for id crawl)
  1. Choose your permissions and select Add permissions.

Configure the information supply utilizing the Amazon Kendra connector for Microsoft Groups

So as to add a knowledge supply to your Amazon Kendra index utilizing the Microsoft Groups connector, you should use an current Amazon Kendra index, or create a new Amazon Kendra index. Then full the steps on this part. For extra data on this subject, consult with Microsoft Teams.

  1. On the Amazon Kendra console, open the index and select Knowledge sources within the navigation pane.
  2. Select Add knowledge supply.
  3. Underneath Microsoft Groups connector, select Add connector.

  1. Within the Specify knowledge supply particulars part, enter the small print of your knowledge supply and select Subsequent.
  2. Within the Outline entry and safety part, for Tenant ID, enter the Microsoft Groups tenant ID from the Microsoft account dashboard.
  3. Underneath Authentication, you possibly can both select Create so as to add a brand new secret with the consumer ID and consumer secret of the Microsoft Groups tenant, or use an current AWS Secrets Manager secret that has the consumer ID and consumer secret of the Microsoft Groups tenant that you really want the connector to entry.
  4. Select Save.

  1. Optionally, select the suitable payment model:
    • Mannequin A fee fashions are restricted to licensing and fee fashions that require safety compliance.
    • Mannequin B fee fashions are appropriate for licensing and fee fashions that don’t require safety compliance.
    • Use Analysis Mode (default) for restricted utilization analysis functions.
  2. For IAM position, you possibly can select Create a brand new position or select an current IAM position configured with applicable IAM insurance policies to entry the Secrets and techniques Supervisor secret, Amazon Kendra index, and knowledge supply.
  3. Select Subsequent.

  1. Within the Configure sync settings part, present data concerning your sync scope.

  1. For Sync mode, select your sync mode (for this submit, choose Full sync).

With the Full sync choice, each time the sync runs, Amazon Kendra will crawl all paperwork and ingest every doc even when ingested earlier. The complete refresh lets you reset your Amazon Kendra index with out the necessity to delete and create a brand new knowledge supply. Should you select New or modified content material sync or New, modified, or deleted content material sync, each time the sync job runs, it should course of solely objects added, modified, or deleted for the reason that final crawl. Incremental crawls might help cut back runtime and value when used with datasets that append new objects to current knowledge sources frequently.

  1. For Sync run schedule, select Run on demand.
  2. Select Subsequent.

  1. Within the Set subject mappings part, you possibly can optionally configure the sector mappings, whereby Microsoft Groups subject names could also be mapped to a unique Amazon Kendra attribute or side.
  2. Select Subsequent.

  1. Overview your settings and ensure so as to add the information supply.
  2. After the information supply is added, select Knowledge sources within the navigation pane, choose the newly added knowledge supply, and select Sync now to start out knowledge supply synchronization with the Amazon Kendra index.

The sync course of can take upwards of half-hour (relying on the quantity of knowledge to be crawled).

Now let’s allow entry management for the Amazon Kendra index.

  1. Within the navigation pane, select your index.
  2. On the Consumer entry management tab, select Edit settings and alter the settings to appear like the next screenshot.
  3. Select Subsequent, then select Replace.

Carry out clever search with Amazon Kendra

Earlier than you attempt looking on the Amazon Kendra console or utilizing the API, guarantee that the information supply sync is full. To verify, view the information sources and confirm if the final sync was profitable.

Now we’re prepared to look our index.

  1. On the Amazon Kendra console, navigate to the index and select Search listed content material within the navigation pane.
  2. Let’s use the question “How do you detect safety occasions” and never present an entry token.

Based mostly on our entry management settings, a sound entry token is required to entry authenticated content material; due to this fact, once we use this search question with out setting any person identify or group, no outcomes are returned.

  1. Subsequent, select Apply token and set the person identify to a person within the area (for instance, usertest4) that has entry to the Microsoft Groups content material.

On this instance, the search will return a consequence from the PDF file uploaded within the Microsoft Groups chat message.

  1. Lastly, select Apply token and set the person identify to a unique person within the area (for instance, usertest) that has entry to completely different Microsoft Groups content material.

On this instance, the search will return a unique Microsoft Groups chat message.

This confirms that the ACLs ingested in Amazon Kendra by the connector for Microsoft Groups are being enforced within the search outcomes primarily based on the person identify.

Clear up

To keep away from incurring future prices, clear up the assets you created as a part of this answer. Should you created a brand new Amazon Kendra index whereas testing this answer, delete it. Should you solely added a brand new knowledge supply utilizing the Amazon Kendra connector for Microsoft Groups, delete that knowledge supply.

Conclusion

With the Amazon Kendra connector for Microsoft Groups, organizations could make invaluable data trapped of their Microsoft Groups situations obtainable to their customers securely utilizing clever search powered by Amazon Kendra. Moreover, the connector supplies aspects for Microsoft Groups attributes resembling channels, authors, and classes for the customers to interactively refine the search outcomes primarily based on what they’re on the lookout for.

To study extra concerning the Amazon Kendra connector for Microsoft Groups, consult with Microsoft Teams.

For extra data on how one can create, modify, or delete metadata and content material when ingesting your knowledge from the Microsoft Groups, consult with Customizing document metadata during the ingestion process and Enrich your content and metadata to enhance your search experience with custom document enrichment in Amazon Kendra.


Concerning the Authors

Praveen Edem is a Senior Options Architect at Amazon Net Companies. He works with main monetary providers clients, architecting and modernizing their essential large-scale functions whereas adopting AWS providers. He has over 20 years of IT expertise in software improvement and software program structure.

Gunwant Walbe is a Software program Growth Engineer at Amazon Net Companies. He’s an avid learner and eager to undertake new applied sciences. He develops advanced enterprise functions, and Java is his main language of alternative.

Leave a Reply

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