How to get list of repositories for which app is enabled in Bitbucket Server and Data Center

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

This article explains how to get a list of repositories for which a particular app (plugin) is enabled.

Environment

Bitbucket 8.13, but also applicable to other versions.

Solution

In Bitbucket's apps system's architecture, all apps are installed globally for the whole server/cluster. Bitbucket has no built-in mechanism for turning on or off installed apps per repository.
However, that does not prevent a particular app from implementing its own means of deactivating or activating itself for a specific repository.

Two methods may help to get the required information:

  1. Universal Plugin Manager (UPM) REST API call that will list installed apps and their details. Please check the page How to Access UPM REST API for License Details for more information.

  2. HTTP (not REST) request, which can be tried directly from the web browser - URL is

    <BaseURL>/plugins/servlet/active-objects/tables/list

    The result of that request is a "Plugin Data Storage" page, which lists apps and SQL database tables they use.
    Apps that use their own mechanism for per-repository enabling will use some of those tables to store that information, so this would be the place to start the investigation.



Last modified on Sep 4, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.