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

drugo bot 1 Reputation point
2023-01-01T11:22:55.427+00:00

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.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,682 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 41,941 Reputation points Microsoft Vendor
    2023-01-02T09:24:05.387+00:00

    @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.

    1 person found this answer helpful.