-
Suggestion
-
Resolution: Unresolved
-
None
-
17
-
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
- We have a new space API endpoint such as:
api/spaces/{id}/restriction
- 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>'
- If the user is not a space admin, the API fails with a 401 error.
- 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.
- is related to
-
CONFCLOUD-72443 Allow bypassing of restrictions with Admin Key when using REST API
- Gathering Interest