To get the Confluence metrics, such as total capacity and remaining capacity, I introduced a caching mechanism to handle the 429 error, which indicates “You exceeded the rate limit.” Atlassian provides an endpoint to retrieve the number of users in an organization, with filters for Confluence groups and user status, allowing us to get the total count without using caching.
https://developer.atlassian.com/cloud/admin/organization/rest/api-group-users/#api-v2-orgs-orgid-directories-directoryid-users-count-get This endpoint returns 404 error and we have tried with full scope for a token.
Hi @Rocky Asante ,
As Viswanathan said/asked - can you maybe share which endpoints and authorization you used to retrieve this? Also, did you use your account or service account to do so? I'm asking as there's a difference between the two. 👀
In addition to that, there are two, let's say, related feature requests:
Cheers,
Tobi
I used a service account token and gave it most of the read scopes, also made it admin for confluence
I tried using the Admin token as well, but still got a 404 error. If you manage to get it working, let me know how you did it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Rocky Asante I've created some kind of explanation/tutorial related to another question but this might be useful as well:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for posting this.
I hope you meet the below?
The other likely reason could be
If you've confirmed the above but the endpoint consistently returns 404, it may indicate an issue with the endpoint itself or undocumented availability restrictions.
I would recommend you to reach out to developer community.
- https://community.developer.atlassian.com/.
May be developer support, if you have permissions
- https://developer.atlassian.com/support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the response.
I am tried both Service Account Token and Admin PAT token, both gave 404 for that endpoint.
I don't understand why getting Confluence license metrics is so hard to expose; we have to jump through so many hoops just to make it work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.