Install the Coveo plugin for Confluence
Install the Coveo plugin for Confluence
To complete the capabilities of its Confluence Data Center source, Coveo offers a plugin on the Atlassian Marketplace.
You must install it to benefit from the following features:
-
Refreshes: the plugin allows the source to run refresh operations that index deleted, restored, and moved items. Without the plugin, you’d need to run a rescan or rebuild operation instead, which would take more time and resources to complete. Therefore, the plugin allows your search interface to reflect content changes faster, with minimal impact on your Confluence Data Center instance.
-
Permission indexing: the plugin allows the source to index item permissions, which will then be replicated in your Coveo search interface. As a result, users of your search interface only see the content they’re allowed to see in Confluence. If they’ve been forbidden to access an article in Confluence, they won’t see it in their search results. To read more on how Coveo manages permissions, see Management of security identities and item permissions.
About the new plugin version
In July 2024, Coveo released version 2 of the plugin.
Starting with this new version, the plugin doesn’t require your crawling account to be a Confluence administrator anymore.
Instead, you can create a Confluence group named coveo-connector-plugin-users
, and then add your crawling account to this group.
This will allow your crawling account to use the plugin.
If you’ve installed the Coveo plugin before July 2024, you’re using version 1 and you can continue doing so. However, if you want to avoid the Confluence administrator permission requirement, switch plugin versions.
Install the plugin
-
Log in to your Confluence Data Center instance using a Confluence administrator account.
-
In the navigation bar at the top, click Apps, and then Manage apps.
-
In the search bar, search for
Coveo REST API for Confluence
: -
Locate the Coveo REST API for Confluence plugin, and then click Install.
-
In the Confirm app installation box that appears, review Coveo’s privacy policy and terms of use.
-
Click Accept & install to launch the installation process. Once it’s done, a message appears to confirm that the plugin is ready to use.
Once the plugin is installed in your Confluence instance, you can add a source to index its content.
Switch plugin versions
If you’ve installed the Coveo plugin before July 2024, you’re using its original version and you can continue doing so. Switching to a newer version (2 or higher) is optional, but will allow you to avoid making your crawling account a Confluence administrator.
To switch to the latest version:
-
Log in to Confluence using an administrator account.
Then, if you want to downgrade the privileges of your crawling account:
-
Create a Confluence group of users called
coveo-connector-plugin-users
. -
Add your crawling account to this group.
-
Remove the Confluence Administrator permission from your crawling account.
Keep in mind, however, that your crawling account must still meet the requirements. This allows your source to access your Confluence content for indexing purposes.
What does the plugin do?
Coveo’s Confluence plugin is designed to respect your security policies and ensure that your data is safe. It’s a read-only plugin built using the Atlassian Plugin SDK to allow Coveo to index your Confluence content and its permissions. It doesn’t modify your Confluence instance in any way.
This section details the additional API endpoints that the plugin exposes on your instance and the information returned with each call. Alternatively, if you want to review the plugin code yourself, you can download it from the Atlassian Marketplace listing.
Refresh endpoints
The following endpoints allow the Confluence Data Center source to retrieve deleted, restored, and moved item events when performing a refresh operation. The Confluence API doesn’t have this functionality, so, without the plugin, a rescan or rebuild is required to detect the same events.
Content item change events GET Gets a page of change events for a specific Confluence item type from a Confluence space that happened after a certain date. |
Deleted space change events GET Gets a space delete event that happened after the specified date. |
Security endpoints
Once you have installed the plugin, the Confluence Data Center source can use it to call the following security plugin endpoints. These permissions are then replicated in your Coveo search interfaces.
The source must make these calls to the plugin because the Confluence API doesn’t have an endpoint to read global permissions:
Global Administrators GET Gets the users and groups who have Confluence Administrator or System Administrator global permissions. |
Can Use permission GET Gets the users and groups who have the Can Use global permission. |
The source must make the following call because the Confluence API doesn’t have a read-only call to fetch space permissions and requires the Space Admin permission to get this information. Moreover, the Confluence API doesn’t return user emails, which Coveo needs to index permissions.
Space permissions GET Gets the groups and users that has permissions to view the specified space. |
The source must make the following calls to get user emails, which Coveo needs to replicate Confluence permissions.
Content restrictions GET Gets the groups and users from the restrictions of the specified page or blog. |
Users GET Gets a page of Confluence users for the specified offset and batch size. |
User GET Gets the user with the username passed as a path parameter. |
Group members GET Gets a page of Confluence users for the specified offset and batch size that are members of the specified group name. |
Version endpoint
Plugin version GET Gets the plugin version. |