3

I'm trying to connect to a SPO tenant using PowerShell, using MS documentation here: https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-online/connect-sharepoint-online?view=sharepoint-ps

But it appears that it is only possible to connect using an account which is an admin in the given tenant.

Is there a way to assign permission to an ordinary user account, so it can connect to SPO through PowerShell?

My intention is to manipulate certain sites through PowerShell, but it is not possible for me to use the tenant admin account for it.

4

No, you can't use the non-admin account, as SPO powershell always run under the tenant-admin account. You have to have a tenant admin account and connect to https://tname-admin.sharepoint.com

I think in your scenario, use the PNP for SharePoint online. Which is run under the site collection scope so it will help you to achieve the required goal.

https://github.com/SharePoint/PnP-PowerShell

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.