How to get confluence licensed users count through rest API?
Hi Anoop,
This is not yet possible, but we have a feature request for it:
It's possible to do using a database query:
Let me know if you have any questions about this.
Regards,
Shannon
Hi Shannon,
I am just looking to get my purchased license count for an automation to avoid the hard coded value, not the list of active users counting, that I got already through the same thread you posted above.
Anoop
Anoop,
Alright, thank you for letting me know you were able to obtain it via that method.
If you have any further questions please let us know.
No, I think you misunderstood my reply. Still I am not able to figure out a way for my actual request. Again for a clarity, I was looking for an option to find the count of my purchased license through an API call or a DB query. I am not looking for the active users count or logged in users count, only the purchased license count. I know I can see that value if I login to the UI. But I am looking for an option to get that value to add it into an automation which I am trying.
Hey, I know this is an old question. However, I also just stumbled over that problem and the answer is now in the above linked ticket. To save some time for future users I just add the information here too:
This comment mentions these (in Confluence 7.4.10 working) rest endpoints:
/rest/license/1.0/license/userCount/rest/license/1.0/license/remainingSeats/rest/license/1.0/license/maxUsers
Hope this will save some time for others.
That's awesome Frederik! I've been looking for a way to do this for a long while. Thanks!!
Tom
Hi Frederik,Have tried the above mentioned api in postman to get the licensed user count.There i'm getting the error:"No value present" in the responseIs the domain url before the /rest/licence should be the atlassian company domain url. Is there any api link to check with. Or is there any change required in the api call.
Hey, sry for the late reply.
My answer was for the Server/Data Center version of Confluence. It seems that you are looking for a solution for the Cloud version of Confluence. For that I unfortunately can't help you.
Hope you will find or already found your answer somewhere else.
It looks like you're new here. Sign in or register to get started.