Seeing '403: Current user not permitted to use Confluence' when trying to update page through script

Kevin Abbott
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!
February 7, 2024

Essentially I have a a little script that should update an existing confluence page with cypress test results. However, everytime I run it I see:

Error updating Confluence page:
message: 'Current user not permitted to use Confluence',
statusCode: 403

I made the token at https://id.atlassian.com/manage-profile/security/api-tokens and copied it over exactly. I do have permissions to use and edit this page (I created it and can do any of those actions through the UI).

The token shows as 'Never Accessed' even though i've attempted this multiple times. I have followed the examples here:
https://developer.atlassian.com/cloud/confluence/rest-api-examples/

So formatting/structure should be correct. Does anyone have any other ideas or tips on how I can solve this issue?

1 answer

0 votes
Pavel Junek
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 8, 2024

Hi Kevin,

Welcome to Atlassian community!

I don't have much experience with the REST API for Confluence Cloud, but the 403 error says there is a problem logging in. I would probably try some simple thing first, e.g. in Postman, for example, to get information about a page. It is necessary to check that there is no problem with access via the token. You can look at Basic auth for REST APIs 

Pavel

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events