문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top