Confluence Cloud HTTP Request Scope Error

Hello everyone,
First post here, if I am not following the standards my apologies in advance.
I am trying to use the Confluence connector within studio to make a request to Confluence Cloud’s REST API. I am using the Confluence Cloud HTTP Request activity, with the request URL set to “/wiki/api/v2/pages/” + page_id where page_id is a variable.

I have given the connector all of the available permission scopes, including the one needed for the API call I am trying to make.
The API states the scope necessary for the endpoint I am trying to call is read:page:confluence.
But the response I keep getting is {"code":401,"message":"Unauthorized; scope does not match"}
I am not sure what to do, I understand the response I am receiving is from the Confluence side of things but I can’t figure out why the scopes do not match given that they are listed as enabled on UiPath integration service for the Confluence connector.
Any advice would be highly appreciated, I am quite new to UiPath in general but I am wondering if I should just use a normal HTTP web request rather than the Confluence Cloud connector for some advanced functionality that the predefined activities do not help with.
Thank you to anyone who has read this far, I appreciate it!
Regards
Ewen

Also might be worth mentioning that when trying the Web HTTP request activity, and manually authenticating with my Confluence email and API token the request works no problem, should I bother trying to figure out the problem with the Confluence Connector or just use this manual basic authenticated one?

First try with postman try to find what exaclly root cause.

Hi @Aleem_Khan,
Not sure how that would be useful in this case? I can request Confluence’s REST API normally with any other service like Bruno (similar to Postman), Pythons requests library, and via web URL. I understand how permission scopes work, and I have given the connector every possible scope already including the one necessary for the endpoint I am attempting to call. I can’t replicate UiPath’s connector in something like Bruno or Postman as I don’t know what the internals are doing with the OAuth2.0.

@ewen

Welcome to the community

Just to be sure when you gave confluence connection details..did you include the same scope? Just to verify try to create the connection again and match the scope you have..mau be the connection was made and then the scope would have been increases but in the connector details the scope would have been limited

Also isnt this method directly available in get records?

Cheers

You are right in that get records allows me to get the page from id and probably uses the same API endpoint in the implementation, but that makes me more confused as to why the get records activity works but the Confluence Cloud HTTP Request one doesn’t if they both need the same scope? I went ahead and tried your suggestion of recreating the connector with all scopes from the get go but nothing seemed to change there. For now I can use the get records activity but I will need to figure out why I cant use the Confluence HTTP activity so that I can add labels to pages as there is no activity for that.

@ewen

are you uising it correct? it needs relative api path so check if you are giving the correct one

glad you got a work around for now

cheers

I believe I am using it correctly, I am trying to use this endpoint: https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels/#api-group-content-labels
So the request URL parameter is set to "/wiki/rest/api/content/" + page_id + "/label" where page_id is a string variable. I am trying to verify if other users are able to use the Confluence Cloud HTTP request because I am baffled at this point and I am probably just going to use the regular web HTTP request as it’s not worth all the time I am spending debugging.
Thanks for your responses I appreciate you trying to assist me!

@ewen

just try to remove the first slash and try

most of the times this is observed for connectors

cheers