Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

CSV files can be displayed in Confluence using the CSV macroMacro. In many cases it is useful to display the csv file using Augments so the display is more useful for viewers. This page has examples of this.

...

Csv
outputwiki
columnsSpace, Space, Id Type, Id,6,7,9,10,11,12,13,14,15,16,17,18,19
autoNumbertrue
headingAugmentsSpace, Key,,,View,Page\\Add,Page\\Restrict,Page\\Delete,Blog\\Add,Blog\\Delete,Comment\\Add,Comment\\Delete,Attachment\\Add,Attachment\\Delete,Mail\\Delete,Space\\Export,Space\\Admin
scriptExample output^cliSpacePermissionList.csv
augments[%Space%:],,,,!info:images^%viewspace%.png!,!info:images^%editspace%.png!,!info:images^%setpagepermissions%.png!,!info:images^%removepage%.png!,!info:images^%editblog%.png!,!info:images^%removeblog%.png!,!info:images^%comment%.png!,!info:images^%removecomment%.png!,!info:images^%createattachment%.png!,!info:images^%removeattachment%.png!,!info:images^%removemail%.png!,!info:images^%exportspace%.png!,!info:images^%setspacepermissions%.png!
 
Tip
titleManagement

Once you see your permissions, quickly you find that some are wrong (sad). Here are example CLI commands for making global changes.

No Format
--action runFromSpaceList --common "-a addPermissions --space @space@ --group developers --permissions VIEWSPACE,EDITSPACE,EXPORTPAGE,SETPAGEPERMISSIONS,REMOVEPAGE,EDITBLOG,REMOVEBLOG,COMMENT,REMOVECOMMENT,CREATEATTACHMENT,REMOVEATTACHMENT,REMOVEMAIL,EXPORTSPACE"
 
or for a specific list of spaces
--action runFromList --list ACLI,BCLI --common "-a addPermissions --space @entry@ --group developers --permissions VIEWSPACE,EDITSPACE,EXPORTPAGE,SETPAGEPERMISSIONS,REMOVEPAGE,EDITBLOG,REMOVEBLOG,COMMENT,REMOVECOMMENT,CREATEATTACHMENT,REMOVEATTACHMENT,REMOVEMAIL,EXPORTSPACE"

getLabelList - Site by page

...