How to get all the restricted pages from a space via api?

ruchimahajan March 5, 2024

I am creating a service for which I want to fetch all the pages which have restriction "Only specific people can view and edit" set to it. I

tried this endpoint confluence_base_instance/rest/api/content/{id}/restriction but in this also there is no where explicitly specified that this is a restricted page. Is there any response value through which I can check it?

I want to do this for both confluence cloud and confluence data center.

Any help would be appreciated.

1 answer

1 accepted

0 votes
Answer accepted
Nikola Perisic
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 5, 2024
ruchimahajan March 5, 2024

Hi Perisic 

Thanks for sharing, but all these answers are asking to fetch the data from confluence db. But I don't have access to confluence db. I need some specific response parameter through which I can identify whether this page is a locked/restricted page or not?

Nikola Perisic
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 5, 2024

Hello Ruchi,

Other than that documentation, sadly, your request cannot be fullfilled. Also you were saying about the confluence db. For this you would need a query, where you should be asking Atlassian to pull the data for you. Since the support for the support has ended, if you have a cloud instance, raise a support for the cloud but reference the problem that you are having and if it's possible to fetch the data that you need.

 

ruchimahajan March 5, 2024

okay, Thanks for the information Perisic.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events