How to hide Move and Copy menu for pages
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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:
<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!