How to hide Move and Copy menu for pages
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Some customers may want to prevent Move or Copy options for pages, but there is no separate permission to disable those specific functions.
Environment
Confluence 7.x, 8.x
Solution
As a workaround, we can hide the Move and Copy menus with below Javascript in General Configuration > Custom HTML, and the end of BODY section:
1
2
3
4
5
6
7
8
<script type='text/javascript'>
AJS.toInit(function(){
if (! AJS.params.isConfluenceAdmin) {
AJS.$('#action-copy-page-link').hide();
AJS.$('#action-move-page-dialog-link').hide();
}
});
</script>
The above code hides those menus for all the users except for Confluence Administrators. The changes will be applied immediately!
Was this helpful?