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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

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
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

26 views 0 2
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you