Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict the delete permission of table in confluence page?

Greeshma A R October 9, 2018

* 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?

 

2 answers

0 votes
Robert Reiner _smartics_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 9, 2018

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 supports your use case. If not you would need a third-party add-on (or maybe a user macro).

The Display Table Macro provided by the projectdoc Toolbox (commercial) support this use case.

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

Greeshma A R October 9, 2018

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?

Robert Reiner _smartics_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 9, 2018

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 provided by Confluence or the Transclusion Macro 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?

0 votes
Jakob KN
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 9, 2018

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events