Retrieving security for a page via REST API's

Hi,

 

I'm trying to write some code to index the different pages / sites within Confluence.  Using the rest api's seems like the most logical path.  As part of this, I need to be able to do the following:

 

1. Find out all users / groups who are either allowed to view the page or not allowed to view

2. Be able to identify when the security for a page has changed, to then flag the page for re-indexation

 

I'd like to use the REST API's to do this, but I don't see any way for either of these tasks, based off the documentation / examples.

 

Thanks in advance!

Brian

1 answer

as for part 1 :

use page restrictions api :   (GET)

<server>/rest/api/content/<page_id>/restriction/byOperation

replace <server> & <page_id> with your values

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

255 views 1 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you