Forum Discussion
escupham
Oct 05, 2016Iron Contributor
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 fo...
Oct 05, 2016
IMHO, it should be enough if you are a SharePoint Admin
Brent Ellis
Oct 05, 2016Silver 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.
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.
- escuphamOct 10, 2016Iron Contributor
Do you have to be a global admin to enable licenses (like SPO) via PowerShell?
- davidpetree1Oct 10, 2016Iron Contributor
Im guessing you need to be either a Global Admin or User Management Admin
You need the same role as you would need to do it in the portal.
https://support.office.com/en-us/article/Assign-or-remove-licenses-for-Office-365-for-business-997596b5-4173-4627-b915-36abac6786dc
- Oct 10, 2016All, just the results of my tests:
(1) To use PowerShell at the SPO Tenant Level you need to be a Global Admin or a SPO Admin. This allows you to work with SharePoint Online Management Shell
(2) To use PowerShell at the Site Collection Level it's enough to be a site collection Admin as stated by Brent...but you have to run your PowerShell code using ISE or Visual Studio and you have to work with Client Side Object Model