locked
What is the PowerShell script to access the site with Site collection Admin access. I am not Tenant admin. Can I run the PowerShell script with just Site Collection admin access? RRS feed

  • Question

  • What is the PowerShell script to access the site with Site collection Admin access. I am not Tenant admin. Can I run the PowerShell script with just Site Collection admin access? What is the basic permission needed to run the PowerShell on the SharePoint online sites and document libraries?

    I tried the below code to access the SharePoint site.

    Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking;
    $cred = [System.Net.CredentialCache]::DefaultCredentials
    [System.Net.WebRequest]::DefaultWebProxy.Credentials = $cred
    Connect-SPOService -url  -credential 

    Monday, March 9, 2020 3:22 AM

All replies

  • Site Collection Admin access should be enough to run under the respective Site Collection.

    Thanks & Regards,


    sharath aluri

    Monday, March 9, 2020 3:33 AM