Forum Discussion
Hide 'Export to excel' button in both SharePoint List and MS List view
Not completely sure why this behavior is completely different for both the products. You can raise a support ticket with Microsoft directly and report this behavior at: Get M365 Support - Online Support
However, you can hide the export to excel button using JSON view formatting in SharePoint. Use JSON like:
{
"commandBarProps" : {
"commands": [
{
"key": "export",
"hide": true
}
]
}
}
Note: This hides the button from list view for all users - not possible to hide it based on permissions/access currently. So, if you want this button visible for very few number of users, they can create new personal/private view for them where the button will be visible.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.