how to hide sharepoint command bar "embed" button for file share/file library but only for guest users?

drugo bot 1 Reputation point

Happy beginning 2023 to all

I shared a folder on SharePoint using the anonymous or "for everyone" link. When a user clicks on the link they will see the library title/site name followed by the command bar.
In the left part 2 commands are shown: "download" and "integrate"

I want to remove the "embed" command but only for viewing by the guest user using the share link.

I'm not a sysadmin, please provide a simple answer.

A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
6,049 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 24,476 Reputation points Microsoft Employee

    @drugo bot

    Per my research and test, you could hide "download" and "integrate" command bars for all users but cannot hide "download" and "integrate" command bars only for all guest users.

    To hide "download" and "integrate" command bars for all users, go to Format current view -> Advanced mode -> Add following codes.

      "commandBarProps" : {  
        "commands": [  
            "key": "download",  
            "hide": true  
            "key": "integrate",  
            "hide": true  

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.