How to restrict the delete permission of table in confluence page?
Asked by Greeshma A R:

\* User can edit the values in confluence table.

\* User should not delete the table. Delete option should be restricted.

\* They can add and delete row

\* They should not rename the page name and rename the headings.

How to achieve this in confluence?


Answers:
author: Robert Reiner _smartics_
body: You could provide a page that provides a macro to render other pages as table rows. Now your users could add new pages that match the query of the macro and therefore are listed as new rows. Once such a page is deleted (or simply does no longer match the query) the row will be removed. Users would not have permission to alter the page containing the macro.

Maybe the [Page Properties Report Macro](https://confluence.atlassian.com/doc/page-properties-report-macro-186089616.html) supports your use case. If not you would need a third-party add-on (or maybe a user macro).

The [Display Table Macro](https://www.smartics.eu/confluence/x/wgNk) provided by the [projectdoc Toolbox](https://www.smartics.eu/confluence/x/1YEp) (commercial) support this use case.

**Biased alert**: I'm one of the authors of the projectdoc Toolbox.

comments: author: Greeshma A R
body: i am not able to understand the display table macro. can u just quickly tell?

does the plugin will restrict page table deleted by users?


author: Robert Reiner _smartics_
body: The macro does not handle access permissions on the page it is part of. What it does is to allow the owner of a page to define a query. The result set of a query contains all pages the user viewing the page has access to. This way only the page author has write access to the page while other users only have view access.

So I think that this approach would be a solution to your use case, because:

* User can edit the values in confluence table  
  YES: Users add new pages that match with the query defined with the Display Table Macro
* User should not delete the table. Delete option should be restricted  
  YES: Users have no write access to the page that contains the Display Table Macro
* They can add and delete row  
  YES: Users add a page that matches, alter the page so they do no longer match, or delete the page -\> The Display Table Macro will either add the row or remove the row since it is no longer in the result set at the time of a user viewing the page
* They should not rename the page name and rename the headings.  
  YES: As above - users do not have write access to the page containing the Display Table Macro

In case you need users to not alter the table, but alter the contents of the rest of the page then you would need to use a transclusion macro (such as the [Excerpt Include Macro](https://confluence.atlassian.com/doc/excerpt-include-macro-148067.html) provided by Confluence or the [Transclusion Macro](https://www.smartics.eu/confluence/x/_QJk) provided by the projectdoc Toolbox or another macro that supports this). Every content users should not alter would be transcluded. But the following limitations apply:

1. You cannot prevent users to remove the Excerpt / Transclusion Macro (that is that the table still exists on another page or a section with a title still exists on another page, but is no longer part of the page)
2. You cannot prevent users from altering the page name

Hope this helps to clarify the usage of the Display Table Macro?


author: Jakob KN
body: i Greeshma,

Confluence permissions are controlled by the space permissions and the page restrictions, so if a user have permission to edit a page, they will be able to edit all content on the page, including the whole table.

This is also described here, where you can find more info and possible workarounds:  
<https://community.atlassian.com/t5/Confluence-questions/Can-i-restrict-editing-in-columns-of-a-table/qaq-p/674938>


Tags: delete

page