Configure the Teams Connector

All BA Insight connectors share a number of common configuration options.

This section describes only settings specific to this particular connector.

For step-by-step instructions on how to configure a connector, please refer to Connectivity Hub or Connector Framework online help.

Required Configuration Settings

  1. Open the Connectivity Hub administration site.

  2. Edit the Teams web service connector to configure it with the values specified below.

  3. The connector Web service URL has the following form:

    http://<YourMachineName>:2547/dataconnector.asmx
    Note: If you changed the port during connector set up, use the value you specified instead.
  4. Enter connector login credentials into the Certificate and Password fields.
    The connector supports certificate authentication only.

    1. Certificate field should contain certificate distinguished name. 

      1. Example: CN=myserver.mydomain.local, CN=BA Insight Teams Connector

      INFO:

      You must ensure you enter your certificate information in the same way it's stored in the certificate:

      • For self-signed certificates generated by script provided by BA Insight:
        • Use Subject value from the script output exactly as it's formatted
      • For other certificates (or if the script output is lost):

      Note: Extra (or missing) spaces in this field may cause the connector to fail finding the certificate.

    2. Password field should contain Azure application ID.

      1. Example: 80884187-a95a-4559-8b69-6b59faa0e52d

  5. Office 365 Tenant: put your Office 365 tenant URL into this field.

    • Example: https://mytenant.sharepoint.com

  6. Content Owner: An account in the format supported by the target directory configured

    • Example (for AD): MYDOMAIN\MyUser

Optional Configuration Settings

  1. Teams Visibility Filter:

    1. Specify what types of Teams you want to crawl:

      • Only public

      • Only private

      • Both

  2. Message Conversion XSLT:

    1. Specify an XSLT transformation which is used to convert a chat message (with replies) to HTML format.

    2. The transformation operates on the following XML documents:

    Copy
    <Message>
        <Body><![CDATA[Message body in HTML or TEXT format]]></Body>
        <Replies>
            <Message>
                <Body><![CDATA[First message reply body in HTML or TEXT format]]></Body>
                <Attachments>
                    <Attachment>      
                        <contentUrl>...</contentUrl>
                        <name>...</name>
                        ...
                    </Attachment>
                    ...
                </Attachments>
            </Message>
            ...
            <Message>
                <Body><![CDATA[Last message reply body in HTML or TEXT format]]></Body>
                <Attachments>...</Attachments>
            </Message>
        </Replies>
    </Message>

    Content of Attachment XML element is an XML representation of chatMessageAttachment resource type in Graph API.

  3. Custom Filters:

    1. Specify filters for the teams to include.

    2. Every line defines one filter
      Filter line format:

      TEAM=<regular expression which matches team name(s)>

      Note: Full Crawl is required if this filter is changed.

  4. To exclude results matching a filter, prefix the filter line with a dash ('-'). 

  5. Filtering is not case sensitive

    1. Examples:

      1. To return only teams starting with TEST:

      Copy
      TEAM=^TEST
      1. To return only teams ending with TEST:

      Copy
      TEAM=.+TEST(?!.)
  6. More information on regular expression syntax is available here: Regular Expression Language - Quick Reference

Note: A Full Crawl is required if this filter is changed: you must run a Datastore Types Load job.

Note: You must run a Datastores Load job for the custom filter to take effect.