---
title: "How to retrieve permissions of a restricted page using Confluence CLI"
canonical: "https://support.appfire.com/space/SUPPORT/89132898/How%20to%20retrieve%20permissions%20of%20a%20restricted%20page%20using%20Confluence%20CLI"
format: markdown
---
<span style="color: #000000">This article explains how to retrieve permissions of a restricted page using </span>*<span style="color: #000000">Confluence Command Line Interface (CLI)</span>*<span style="color: #000000">.</span>

## <span style="color: #000000">Instructions</span>

<span style="color: #000000">Use the </span>**<span style="color: #000000">getPermissionList </span>**<span style="color: #000000">action with the </span>*<span style="color: #000000">space</span>*<span style="color: #000000"> and </span>*<span style="color: #000000">title</span>*<span style="color: #000000"> parameters to retrieve a list of all available space or page permissions. See </span>**<span style="color: #000000">getSpacePermissionList</span>**<span style="color: #000000"> for more detailed space permissions. Use the </span>*<span style="color: #000000">userId</span>*<span style="color: #000000"> parameter to restrict the list to permissions for a specific user.</span>

<span style="color: #000000">Ensure that the CLI client file is updated with the required information. Run the following CLI action to update space and title information respectively:</span>

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

<span style="color: #000000">The result for the CLI action is as follows: </span>

> Macro (inline-media-image)

  
<span style="color: #000000">The following screenshot shows the Confluence page with the restriction:</span>  
> Macro (inline-media-image)



> ℹ️ <span style="color: #000000">It is recommended to run the action in a test environment before running it in production.</span>