I am getting Error whenever trying to open SharePoint Designer in Office 365. Again try to install the PowerShell

MOHAMED ASIK ADAM 1 Reputation point
2021-06-19T06:30:26.03+00:00

I am getting Error whenever trying to open SharePoint Designer in Office 365. Again try to install the PowerShell . I am getting error like these what need to do ?

  1. Error 1: You do not have permission to open this web site in SP designer .
  2. Then try to install Microsoft.Online.Sharepoint.Powershell. Then i am getting message like these.

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"):

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

1 answer

Sort by: Most helpful
  1. CaseyYang-MSFT 10,316 Reputation points
    2021-06-21T09:19:23.49+00:00

    Hi @MOHAMED ASIK ADAM

    1.Whether this issue happens to all the site collections or just one specific site collection? Please make sure you have Designer, Owner, or Administrator permission to the target site collection or web site. If you also get error message:403 forbidden, you could try to install SharePoint designer SP1 64-bit or SharePoint designer SP1 32-bit. And you could try the following codes to enable custom script to solve this problem.

    PowerShell codes:

    Connect-SPOService -url https://YourO365Domain-admin.sharepoint.com  
    
    Set-SPOSite https://YourO365Domain.sharepoint.com/sites/YourSiteCollection -DenyAddAndCustomizePages 0  
    

    2.To solve “Untrusted repository” you could use the following PowerShell codes first before installing Microsoft.Online.Sharepoint.Powershell.

    PowerShell codes:

    Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted  
    

    107449-1.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    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.