Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,818
Community Members
 
Community Events
184
Community Groups

How to add a user with "edit" permissions on all "restricted" pages?

Hello, I have a "Knowledge Base" space with hundreds of pages in it. The goal is to move some pages to their separate space.

To be able to perform "Move" operation, Atlassian mentioned that I should have access ("Edit" permissions) on all restricted pages in this space. 

The issue here is, this space has hundreds of restricted pages. I have the below script which can update the restrictions of one page at a time. It needs PageID as input.

Now, updating one page at a time is time consuming and tiring activity.

Can someone help on updating this script in such a way that it runs on all restricted pages in this particular space?

 

curl --request POST \
--url 'https://<instance>.atlassian.net/wiki/rest/api/content/{page ID}/restriction' \
--user '<email>:<API token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '[
{
"operation": "update",
"restrictions": {
"user": [
{
"type": "known",
"accountId": "<user ID>"
}
]
}
}
]'

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events