Domanda

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.

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top