Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-76815

REST API to get a list of restricted pages

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      User Problem

      Currently, there are no API endpoints to list restricted pages. Using Admin key without UI is not supported either.

      While there is an endpoint to get restriction details, you must know the content details to call this API. If we could have the API to get the list, it will improve the usability.

      Suggested Solutions

      1. We have a new space API endpoint such as:
        api/spaces/{id}/restriction
        
      1. Call the API endpoint
        curl --request GET \
          --url 'https://your-domain.atlassian.net/wiki/rest/api/spaces/{id}/restriction' \
          --user 'email@example.com:<api_token>'
        
      1. If the user is not a space admin, the API fails with a 401 error.
      2. Obtain the response like below
        {"results":[
        {"id":"001","type":"page","status":"current","title":"Onlyme" ....},
        {"id":"002","type":"page","status":"current","title":"Onlyyou"....},
        ....
        {"id":"00X","type":"page","status":"current","title":"Onlythem"....},
        ],"start":X,"limit":25,"size":X"}
        

      Current Workarounds

      • Manually check restricted pages in each space one by one.

      Attachments

        Activity

          People

            Unassigned Unassigned
            a9811fcf7424 Kaz Nobutani
            Votes:
            9 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: