This article gives step by step instructions on how to give anonymous access to a Confluence access to the Confluence CLI app.
Instructions
Use addPermissions action to add the permissions to the Confluence spaces.
To give Anonymous access for a single space:
- .
--action addPermissions --space ZCLI --permissions VIEWSPACE --userId anonymous
To give Anonymous access for multiple spaces:
In order to add permissions for multiple spaces, you would need to create a CSV file with a column name as space as follows.
Once you have the CSV file, you can execute the following CLI command to add the permissions for multiple spaces.--action runfromCSV --file "addpermissionspace.csv" --common "--action addPermissions --permissions VIEWSPACE --userId anonymous --continue"
Update your CSV(addspace.csv) file with space details for which space you want to give anonymous access. Once you execute the following runformCSV action
You will be able to add the permissions for the anonymous users using the below command. By setting it as anonymous, all can access your instance.