Forum Discussion

escupham's avatar
escupham
Iron Contributor
Oct 05, 2016

What O365 roles can run PowerShell scripts?

I see the documentation, "To use SharePoint Online PowerShell commands, you must be a SharePoint Online global administrator."

 

Does this imply that a person who needs to run powershell scripts for SPO have both the Global Admin and SharePoint Admin roles?  Or is the SharePoint Admin role sufficient to be able to run SPO Powershell commands?

7 Replies

    • Brent Ellis's avatar
      Brent Ellis
      Silver Contributor
      You can even do it at just the Site Collection Admin level if need be (for a particular site collection).

      Global Admin is only needed for a few things, if you start crossing into OneDrive scripting, or things that require you to touch the -admin site collection for example.
      • escupham's avatar
        escupham
        Iron Contributor

        Do you have to be a global admin to enable licenses (like SPO) via PowerShell?

Resources