Using python script to connect to atlassian API
was working 6 months ago.
Now getting:
03 Error - ['{"statusCode":403,"message":"com.atlassian.confluence.mvc.rest.common.exception.StacklessResponseStatusException: 403 FORBIDDEN \\"Request rejected because caller cannot access Confluence\\""}']
using this endpoint
Hey @Darren Johnston ,
Are you using the user's API token or service account for this?
Can you try using scoped API tokens as described here: Scoped API Tokens in Confluence Cloud?
Note that you'll have to use a slightly different format here:
https://api.atlassian.com/ex/confluence/{cloudId}/wiki/rest/api/group/user
When talking about scripts and authentication, you can use these two methods:
Basic Auth (Recommended for scripts): You must Base64-encode the string
email:api_token.
Header:
Authorization: Basic <base64_encoded_credentials>Bearer Token: If you are using a Service Account API key specifically designed for Bearer auth, use:
Header:
Authorization: Bearer <api_key>
Can you try configuring these and see how that will go?
Cheers,
Tobi
Just a guess: maybe your API key expired.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.