This article gives presents step by step instructions on how to give anonymous access to a Confluence access to anonymous users in Confluence space(s) using the Confluence CLI app.
Instructions
Use addPermissions action to add the permissions to the Confluence spacesspace along with userId parameter.
...
For anonymous user access to a single space:
Ensure that the CLI client file is updated with the required information. Run the following CLI action to add the view space permissions for anonymous users in a space:
Code Block | ||
---|---|---|
| ||
--action addPermissions --space ZCLI --permissions VIEWSPACE --userId anonymous |
...
For anonymous user access to multiple spaces:
In order to add permissions
...
to multiple spaces, you
...
need to create a
...
CSV file with a single column
...
named space
...
as follows
...
:
...
Once you have the
...
CSV file,
...
run the following
...
CLI command to add
...
permissions for multiple spaces
...
:
Code Block | ||
---|---|---|
| ||
--action runfromCSV --file "addpermissionspace.csv" --common "--action addPermissions --permissions VIEWSPACE --userId anonymous --continue" |
...
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.
...
This command results in:
The parameters used in the above actions are:
- space value refers to the space key.
- permissions value refers to comma separated list of space permissions.
- userId value refers to user id of the user whom you want to assign the permissions.
- file value refers to path to file based content.
Info |
---|
Valid space permissions are: [VIEWSPACE, REMOVEOWNCONTENT, EDITSPACE, REMOVEPAGE, EDITBLOG, REMOVEBLOG, CREATEATTACHMENT, REMOVEATTACHMENT, COMMENT, REMOVECOMMENT, SETPAGEPERMISSIONS, REMOVEMAIL, EXPORTSPACE, SETSPACEPERMISSIONS]. Group or userId can also be a comma separated list of groups and userIds. Space permission support is not available for Cloud. |