Set Page Restrictions
confluence_set_page_restrictionsControl access to a Confluence page by defining allowed viewers and editors. Replace all existing restrictions with new lists or clear them entirely.
Instructions
Set view and edit restrictions on a Confluence page.
Replaces all existing restrictions with the provided lists. Omitting all parameters (or passing empty lists) removes all restrictions.
Args: ctx: The FastMCP context. page_id: The ID of the page to restrict. read_users: Account IDs / usernames allowed to view the page. read_groups: Group names allowed to view the page. edit_users: Account IDs / usernames allowed to edit the page. edit_groups: Group names allowed to edit the page.
Returns: JSON string with the updated restriction lists.
Raises: ValueError: If Confluence client is not configured or available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | The ID of the page to restrict | |
| edit_users | No | (Optional) Account IDs (Cloud) or usernames (Server/DC) allowed to edit the page. | |
| read_users | No | (Optional) Account IDs (Cloud) or usernames (Server/DC) allowed to view the page. Empty list = unrestricted. | |
| edit_groups | No | (Optional) Group names allowed to edit the page. | |
| read_groups | No | (Optional) Group names allowed to view the page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |