Scripts used to help manage this site
Space list that includes all anonymous and general use access
--list "ACLI, BCLI, CRDCLI, CRUCLI, CSOAP, FCLI, JCLI, SCLI, SCLIP, BGTP, CACHE, DTBL, XL, FLASH, GVIZ, HTML, JSPR, LIBSEC, CMSP, RUN, LIBSCRPT, SCRP, SLID, SQL, TBL, CVP, WORD, CWP, CCLI, JCPP, CSOT, CW, MARKDOWN, JSOAPLIB, CSOAPLIB, GINT"
Other tips and techniques
How to
In order to produce a page with links to all the how to pages, we use howto labels on all pages and content by label macro. In order to do this, we need a quick way to make sure all the existing how to pages had the right label. This is what was used. I We also removed howto labels from the simple topic pages. This uses the Confluence Command Line Interface (CLI) or CLI Plugin for Confluence (requires version 3.0.0 - available soon).
confluence --action runFromList --common "--action runFromPageList --common \"--action addLabels --id @pageId@ --labels howto\" --regex \"How to \s*.*\" --space @entry@" --list "ACLI, BCLI, CRDCLI, CRUCLI, CSOAP, FCLI, JCLI, SCLI, SCLIP, BGTP, CACHE, DTBL, XL, FLASH, GVIZ, HTML, JSPR, LIBSEC, CMSP, RUN, LIBSCRPT, SCRP, SLID, SQL, TBL, CVP, WORD, CWP, CCLI, JCPP, CSOT, JSOAPLIB, CSOAPLIB, GINT"
confluence --action runFromList --common "--action runFromPageList --common \"--action removeLabels --id @pageId@ --labels howto\" --regex \"How to\" --space @entry@" --list "ACLI, BCLI, CRDCLI, CRUCLI, CSOAP, FCLI, JCLI, SCLI, SCLIP, BGTP, CACHE, DTBL, XL, FLASH, GVIZ, HTML, JSPR, LIBSEC, CMSP, RUN, LIBSCRPT, SCRP, SLID, SQL, TBL, CVP, WORD, CWP, CCLI, JCPP, CSOT, JSOAPLIB, CSOAPLIB, GINT"
Checking page restrictions
Occasionally, pages are hidden until ready for production use. However, it is easy to forget to remove the restriction. The following produces a list of pages that have view or edit restrictions. It can be scanned for pages that are not intended to be hidden. It should be run with the id that is restricting pages. Requires ACLI 3.3 or above.
--action runFromPageList --space @all --common " --action getPermissionList --id @pageId@ --outputFormat 2 --file permissionList.csv --append"
Space permissions
--action runFromList --common "--action runFromPageList --common \"--action removeLabels --id @pageId@ --labels howto\" --regex \"How to\" --space @entry@" --list "ACLI, BCLI, CRDCLI, CRUCLI, CSOAP, FCLI, JCLI, SCLI, SCLIP, BGTP, CACHE, DTBL, XL, FLASH, GVIZ, HTML, JSPR, LIBSEC, CMSP, RUN, LIBSCRPT, SCRP, SLID, SQL, TBL, CVP, WORD, CWP, CCLI, JCPP, CSOT, JSOAPLIB, CSOAPLIB, GINT"
--action runFromList --common "--action addPermissions --space @entry@ --group users --permissions EXPORTSPACE,CREATEATTACHMENT" --list "ACLI, BCLI, CRDCLI, CRUCLI, CSOAP, FCLI, JCLI, SCLI, SCLIP, BGTP, CACHE, DTBL, XL, FLASH, GVIZ, HTML, JSPR, LIBSEC, CMSP, RUN, LIBSCRPT, SCRP, SLID, SQL, TBL, CVP, WORD, CWP, CCLI, JCPP, CSOT, JSOAPLIB, CSOAPLIB, GINT"