Update Confluence License using REST

Hello Folks,

Could any of you have idea on how can we get the license key updated while confluence is freshly installed on a standalone server?

I'm planning to do it using PowerShell.

If it helps, can we add the license key directly to 'confluence.cfg.xml' to skip GUI configuration steps?

 

1 answer

0 vote

Hi, Arnab,

From what I could gather, you'd like to update the licence key directly to 'confluence.cfg.xml' as a way to skip configuration steps. Is that correct?

We suggest you do not do it for this purpose, as basically manually change the license directly in confluence.cfg.xml should be used for reasons such as upgrades are failing, the license is corrupted and cannot be changed in the Confluence UI.

From How to change the Confluence License in confluence.cfg.xml, please note that some versions of Confluence do not even require a hashed license. In these versions, you simply need to edit the confluence.license.messageproperty.

In order to know if your version needs the hash, you can check whether the line <property name="atlassian.license.hash" is present in the confluence.cfg.xml

Cheers!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

264 views 11 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you