Forums

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

About automatic operation of page permissions in confluence

青山 明
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 17, 2022

About page permissions in confluence. I want to operate permissions automatically with REST API. In the API, as you do manually with the key mark on the upper right of the page I want to be able to change from "Everyone can view and edit" to "Only some users can view and edit". Is it possible with the REST API?

2 answers

0 votes
adrian.hernandez-mendez
October 6, 2023

@青山 明  @Pramodh M  Using the Update restrictions endpoint I've managed to change all the page permissions one by one but I haven't succeeded either on change from "everyone can view and edit" to "only some users can view and edit" with the REST API. Did you find a solution already ? 

0 votes
Pramodh M
Community Champion
January 17, 2022

Hi @青山 明 

Here is the reference for Page restrictions API for Confluence

https://developer.atlassian.com/cloud/confluence/rest/api-group-content-restrictions/#api-wiki-rest-api-content-id-restriction-post

Let me know what exactly you are trying to add (user/group) for the permission you have specified.

Thanks,
Pramodh

青山 明
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 17, 2022

Instead of adding restrictions, confluence page permissions I want to be able to change from "everyone can view and edit" to "only some users can view and edit" with the REST API. Everyone else except a specific group or individual wants to deny access.

青山 明
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 18, 2022

That REST API can't fulfill my request.

adrian.hernandez-mendez
October 6, 2023

@青山 明  @Pramodh M  I haven't succeeded either on change from "everyone can view and edit" to "only some users can view and edit" with the REST API. Did you find a solution already ? 

青山 明
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 6, 2023

Not resolved.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events