Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Inherited Restrictions Rest API

Alan Yan October 30, 2020

Hi,

I was wondering if I'm able to get more details about a page's permissions using the Cloud Rest API. I've used both the Get Restrictions https://developer.atlassian.com/cloud/confluence/rest/api-group-content-restrictions/ and Get Content (expanding on restrictions) https://developer.atlassian.com/cloud/confluence/rest/api-group-content/, but it appears that the responses only reflect the restrictions that are reflected on the UI for that page.

 

Is there any way to get all the inherited restrictions for a page? 

What about how to tell if a page has inherited restrictions or not? And is there a way to see if the page restriction is set to ‘everyone’, ‘everyone can view, some can edit’, or ‘some can view and edit’?

Lastly, is there an exposed endpoint we can use to show if additional restrictions conflict with inherited restrictions, like it's shown on the UI? For example, say this page's parent has a restriction where only the Engineering group can view/edit. Then, I create a child page, but add a non-engineer (Betty) to the view/edit. As you can see below, it says that Betty "Needs access to a parent page first".Screen Shot 2020-10-30 at 12.58.47 PM.png

1 answer

1 accepted

3 votes
Answer accepted
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 11, 2020

Hello @Alan Yan !

Currently, this is not possible via REST API. I have raised a suggestion and you can check it here:

The best approach would be to vote and watch the report. Voting helps to increase the visibility of the report and watching it will keep you up to date with everything posted there.

Let us hear from you!

Alan Yan November 11, 2020

Thanks for the response Diego! I will make sure to do both

Like Colin_McDermott likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events