This article explains how to get the list of parent pages that have page restrictions in a space using the Confluence Command Line Interface app.
Instructions:
...
Scenrio1:
The below Command will help you to get the list of permissions of pages of a space using getPermissionList action.
Code Block | ||
---|---|---|
| ||
--action runFromPageList --space "spacename" --parent "Home" --common "--action getPermissionList --id @pageId@" |
Senerio2
The below command will help you to get the list pages using getPageList action, where the file can be edited based on the requirement and then execute the below getPermissionList action to get the permissions of the pages from the provided .CSV file.
Run the below getPageList action command to get all the parent pages in the space.
Code Block theme Midnight --action getPageList --space “spacename” --title "Home" --children --columns "3, title, space" --outputFormat 999 --file "pagelist.csv"”
- Edit the pagelist.csv file from the above cli results, to ensure that the new file contains the Title and Space details.
Run the getPermissionList command to get all the page permissions in the space. This provides only the list of pages that have restrictions. The pages that do not have restrictions are not displayed.
Code Block theme Midnight --action runFromCsv --file pagelist.csv --continue --common "--action getPermissionList --file "permissionlist.csv" --append"
Output of the mentioned command:
...