Find answers from the community

Updated last year

πŸ‘‹ I'm trying to get the confluence

At a glance

A community member is trying to use the Confluence loader with an OAuth 2.0 (3LO) Confluence app, but is receiving a "Current user not permitted to use Confluence" error. They have set up the application with the correct callback URL and scopes, and are using the access token as follows:

token = { "access_token": result["access_token"], "token_type": "Bearer", } oauth2_dict = { "client_id": os.environ['CONFLUENCE_CLIENT_ID'], "token": token, }

Other community members suggest that the issue may be related to the user's account not having the proper access to use Confluence via the token. They recommend trying to create an API token in Confluence instead of using the OAuth 2.0 app. There is no explicitly marked answer in the comments.

πŸ‘‹ I'm trying to get the confluence loader to work with a an OAuth 2.0 (3LO) confluence app.

I've set up the application with the correct callback URL and scopes, but when I use the access token with the loader, I get the following error:
Plain Text
{"message":"Current user not permitted to use Confluence","statusCode":403}


I'm setting up the loader as follows:
Plain Text
        token = {
            "access_token": result["access_token"],
            "token_type": "Bearer",
        }
        oauth2_dict = {
            "client_id": os.environ['CONFLUENCE_CLIENT_ID'],
            "token": token,
        }

        logging.info("oauth2 dict: " + str(oauth2_dict))
        c = download_loader('ConfluenceReader')
        reader = c(base_url=r["base_url"], oauth2=oauth2_dict)

Does anyone have any pointers as to why this doesn't work?
W
H
6 comments
Seems like your account does not have the proper access to use confluence via token.
I agree - this is a demo account i've set up so I am the owner. Are there any additional steps I need to take?
No I dont think so, I have tried this somewhere in the past too πŸ˜…
I had just created the confluence site for myself and from their create a token and it worked for me.
Did you create an API token in confluence or create a confluence app?
API token in Confluence
thanks, i'll try that
Add a reply
Sign up and join the conversation on Discord