Can we use Rest API to uninstall an application from the marketplace without the user and password

Nissan Almog
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 15, 2024

Hi,

I'm trying to call this endpoint:

curl -I --user ${ADMIN_USRNAME}:${ADMIN_PWD} -H 'Accept: application/json' -X DELETE ${CONFLUENCE_BASE_URL}'/rest/plugins/1.0/'${APP_KEY}'-key' 2>/dev/null

which uninstall a marketplace App using REST API(the API from here). I don't have access to the user and password, only to the access_token(JWT). Is there a way to uninstall it with the access_token or any other way? 

 

 

1 answer

2 votes
Humashankar VJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 15, 2024

Hi @Nissan Almog 

Uninstalling a Confluence Marketplace app directly with an access token -JWT is not possible.

The method you referenced depends on basic authentication with username and password.

  • Access tokens in Confluence are used for accessing data or performing specific actions within an app, not for administering the platform itself.
  • Uninstalling an app involves modifying the server configuration, which requires administrative privileges which are granted through username and password.

More information can be referred in the article - Uninstalling apps | Atlassian Support | Atlassian Documentation

View and Revoke OAuth Access Tokens | Confluence Data Center 8.9 | Atlassian Documentation

 

Hope this helps - Happy to help further!!
Thank you very much and have a great one!

Warm regards

Nissan Almog
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 16, 2024

Thank you. It's most helpful. 

Like Humashankar VJ likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events