Skip to end of banner
Go to start of banner

How to retrieve permissions of a restricted page using Confluence CLI

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Current »

This article explains how to retrieve permissions of a restricted page using Confluence Command Line Interface (CLI).

Instructions

Use the getPermissionList action with the space and title parameters to retrieve a list of all available space, or, page permissions. See getSpacePermissionList for more detailed space permissions. Use the userId parameter to restrict the list to permissions for a specific user.

Ensure that the CLI client file is updated with the required information. Run the following CLI action to update space and title information respectively:

--action getPermissionList --space "ZCLI" --title "CLI Page"

The result for the CLI action is as follows: 


The following screenshot shows the Confluence page with the restriction:

It is recommended to run the action in a test environment before running it in production.

  • No labels