How to Set Up and Configure the Confluence Cloud Connector

After running the MSI installation wizard, complete your installation using the manual steps for your type of Confluence connector below.

All BA Insight connectors can be downloaded from the Upland Right Answers Portal under Knowledge > BA Insight > Product Downloads > Connectors. This connector is installed with the same generic steps as any BA Insight connector. You must satisfy the Prerequisites for your connector before installing. The configuration specifics are detailed below.

Install and Deploy the Confluence Add-On

As of Confluence 8.8, the Upload Add-on button is disabled by default. To enable the button, refer to one of the workaround solutions in the Confluence documentation.

The Confluence connector uses a Confluence add-on to help gather the data that is necessary for crawling. This add-on is provided by BA Insight as part of the installation package.

  1. Log in to Confluence as a System Administrator.
  2. Click the sprocket icon and select Add-ons.
  3. Click the Upload Add-on button.

  4. Upload the BAInsightAddIn.jar file that is provided with the Confluence Connector zip file. This file is deployed by the installer to the Addin subfolder of installation target A Target is a "pointer" to a specific instance of a search application, such as Elasticsearch. - (A Search application instance has one or more indexes) location.
  5. Click Logging and Profiling from the left side menu.
  6. Class/Package Name: Type BAInsightConnector in this field.
  7. Add entry: Click the Add entry button.

Note: Steps 5 through 7 are required because the add-on writes messages to the Confluence log file.

Selecting the Appropriate Sub-Connector

When the connection Connection defines the how Connectivity Hub connects to your Source System (which contains your documents, graphics, etc.,). Your Connection includes identifying elements such as: URL of the BA Insight web service connector you are using, (File Share connector, SharePoint Online connector, etc.), Authentication mode, User Accounts and Credentials, Database information (for database connectors) is created, a sub-connector must be selected. If Confluence is running in Atlassian cloud, then there is one option only. The sub-connector must be selected using the following considerations:

  • The connector can use the REST API only to get content from Confluence, but it has some limitations (see the limitations section in About the Confluence Connectors). To avoid those limitations, direct database access configuration is needed according to the database type used by Confluence.

Configuring the Confluence Connector for the Data Center version of Confluence with OAuth

Install and Deploy the Confluence Add-On

The Confluence connector uses a Confluence add-on to help gather the data that is necessary for crawling. This add-on is provided by BA Insight as part of the installation package.

  1. Log in to Confluence as a System Administrator.
  2. Click the sprocket icon and select Add-ons.
  3. Click the Upload Add-on button.

  4. Upload the BAInsightAddIn.jar file that is provided with the Confluence Connector zip file. This file is deployed by the installer to the Addin subfolder of installation target location.
  5. Click Logging and Profiling from the left side menu.
  6. Class/Package Name: Type BAInsightConnector in this field.
  7. Add entry: Click the Add entry button.

Note: Steps 5 through 7 are required because the add-on writes messages to the Confluence log file.

Generate the Authorization Token

Before generating the authorization token, verify the following:

In Connectivity Hub, navigate to the Connection settings. If the Crawl content as anonymous setting is set, then no authorization is needed and this section can be skipped. For more information, see How to Deploy the Confluence Connector.

To create an authorization token that enables the Confluence Connector to access Confluence while crawling, follow these steps:

  1. On the server where the Connector is installed, navigate to:
       https://<host>:<port number>/OAuth Specifies a process for resource owners to authorize third-party access to their server resources without providing credentials..aspx
    • <host>: This is the FQDN, Host name, or IP of the server where the Connector is installed.
    • <port number>: This is the port number that you selected during the Connector installation (by default, 2401).
      The connector must have a https binding for the authorization to work.
  2. Follow the instructions in the configuration page opened in previous step.
  3. Read the notes carefully, because the Confluence user interface is not straightforward.
  4. Follow the on-screen prompts to log in using the credentials of the crawling user account (see Confluence Connector Prerequisites).

Create and Register the Application Link in Confluence

  1. From within Confluence, click the sprocket icon in the top left corner and select the General configuration page:
  2. from the left-side navigation, under ADMINISTRATION, select Application Links.
  3. Enter a name for your application link and click the Create new link button.
  4. On the Create link page, specify the following
    1. Set the Application type to External application.
    2. Set the Direction to Incoming.
    3. Click Continue.
  5. On the Configure an incoming link page, enter a name for you application link.
  6. In the Redirect URL field, enter https://<host>:<port number>/OAuthRedirect.aspx. The <host> and <port number> values must exactly match the values that were set for the Confluence connector https binding.
  7. From the Permission drop-down list, select Admin.
  8. Click Save.
  9. The Application link is now created. Make sure that you store the Client Id and Client Secret to be used in the next steps.
  10. Continue with the instructions provided in Confluence, which includes entering your Confluence base URL, including port. Ensure you are using the https protocol.
  11. Click Next.
  12. Read the instructions that appear and click the URL link shown on the screen.
    LEAVE THIS TAB OPEN. Do not click Next or fill out the next fields yet.


  13. A new tab opens where you must log in with an account that has admin permissions.
  14. Click Allow to give the connector app access to confluence.
  15. You will be redirected to OAuthRedirect.aspx that contains the Authorization code. Copy the authorization code and close this tab.
  16. Go back to the BA Insight Confluence Connector tab and paste the authorization code and client secret that you noted in step 11.

  17. Click Next.
  18. A confirmation message should be displayed. The authorization is now completed.
  19. Open Connectivity Hub in a local browser. If you are using the server Connectivity Hub is installed on, the address is https://localhost:port. (55001 is the default local port).
  20. Navigate to the Connections page.
  21. Edit your Confluence connector.
    1. If you do not have a Confluence connector, create one by a creating a new Web Service connection.
    2. Read and enter values (or check) for all available fields:


  22. Click the Save button at the top of the page.
  23. Navigate to Content Sources.
  24. Select New > Web service content using the drop-down menu.
  25. The Wizard appears.
  26. Follow the wizard to configure your Connection and Target.

Configuring Confluence Connector for the Data Center version of Confluence with Basic Authentication

  1. Open Connectivity Hub in a local browser. If you are using the server Connectivity Hub is installed on, the address is https://localhost:port. (55001 is the default local port).
  2. Navigate to the Connections page.
  3. Edit your Confluence connector.
    1. If you do not have a Confluence connector, create one by a creating a new Web Service connection.
    2. Read and enter values (or check) for all available fields:


  4. Select the Security tab.
  5. If you have configured another Connector and wish to use the same security mapping, Select the existing connection that will serve as the master for this connection from the Master Security Connection drop-down list.

  6. Select the Security: Directory tab.
  7. In the Group expansion threshold field, you can specify the threshold to determine if a group is expanded. At crawl time, users in expanded groups are added to the item ACL as individuals.
  8. In the Create security groups field, enable the checkbox to create missing security groups in the target directory during a security sync Loads User and Group tables and executes the mapping based on the connector configuration..

  9. Click the Save button at the top of the page.
  10. Navigate to Content Sources.
  11. Select New > Web service content using the drop-down menu.
  12. The Wizard appears.
  13. Follow the wizard to configure your Connection and Target.

Configuring Confluence Connector for Confluence in Atlassian Cloud

The Confluence Cloud connector uses the REST API which has the following limitations:

  • The Confluence Cloud connector does not enumerate all content from a space where the admin user doesn't have access.

Create an API token

The connector needs an API token to authenticate to the Atlassian cloud.

A Token can be generated using the following steps:

  1. Log in to https://id.atlassian.com/manage/api-tokens as an administrator.
  2. Click Create API token.
  3. From the dialog that appears, enter a memorable and concise label for your token and click Create.
  4. Click Copy to clipboard and save it somewhere for later use in the connection settings.

Create Connection

  1. Open Connectivity Hub in a local browser. If you are using the server Connectivity Hub is installed on, the address is https://localhost:port. (55001 is the default local port).
  2. Navigate to the Connectionspage.
  3. Edit your connection settings.
    1. If you do not have a Confluence connection, create a connection by a creating a new Web Service connection.
    2. Enter values (or check) into all available fields.
      1. User name: 
        1. Login name of the administrator who generated the API token.
      2. Password:
        1. API token based to the checkbox at the end.
        2. Token and key can be generated as described in previous sections.
      3. Confluence URL:
        1. Use this URL in Web browsers to reach the Confluence UI.
             

  4. Click the Save button at the top of the page.
  5. Navigate to Content Sources.
  6. Select New > Web service content using the drop-down menu.
  7. The Wizard appears.
  8. Follow the wizard to configure your Connection and Target.