Forums

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

Get Permissions of all files or pages using REST api

Mahesh_Kumar_Yadav May 3, 2020

I have the lastest Confluence Server and want to get the Permissions of Files or Pages using REST API. I want to see all users and their related permission on every page or file. Please help me.

I tried to find API to get Permission. I didn't get till now.


1 answer

1 accepted

0 votes
Answer accepted
DPKJ
Community Champion
May 3, 2020

@Mahesh_Kumar_Yadav  Do check out this API - https://docs.atlassian.com/ConfluenceServer/rest/7.3.5/#api/content/{id}/restriction

Make sure you check all expand parameters!

Mahesh_Kumar_Yadav May 4, 2020

I am testing using it.

image.png

DPKJ
Community Champion
May 4, 2020

@Mahesh_Kumar_Yadav  Can you please elaborate on response you got, if you are admin you must get some JSON response in result.

I have tried this API multiple time and it is working fine on my instance.

Mahesh_Kumar_Yadav May 4, 2020

Yes, it's working fine, below my output.

 

image.png

Suryasis Paul
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 23, 2023

This will give you the restrictions only at the page level, the space level permissions and parent page level permissions will be ignored, Am I correct ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events