Forum Discussion
Is there alternate "Get-SPOSite" if I'm not a global administrator?
- Nov 18, 2019
Takeru_Ishikawa If you use PnP PowerShell Scripts, you can connect to your sites without being a Tenant Admin. Not sure what commands you are looking for... but I'd check the PnP module and see if they have what you need.
Hi ,
Could you please tell me the error ,what you are getting for Connect-SPOService?
Please refer to this article for reference
https://www.codetwo.com/admins-blog/connect-to-sharepoint-online-using-powershell/
Hi,
Thank you for the reply.
I'm a sub-site administrator, not global one.
Input: Connect-SPOService -url https://***-admin.sharepoint.com
Output:Connect-SPOService : Current user is not a tenant admin.
発生場所 行:1 文字:1
+ Connect-SPOService -url https://***-admin.sharepoint.com
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-SPOService], ServerException
+ FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.ConnectSPOService
- O365DeveloperNov 14, 2019Brass Contributor
Hi Takeru
Assuming you are giving your tenant admin url in the connect-spo service.
I think you need to have atleast a delegated admin access to the tenant,in order to execute it.
- Takeru_IshikawaNov 17, 2019Copper Contributor
- Beau CameronNov 18, 2019MVP
Takeru_Ishikawa If you use PnP PowerShell Scripts, you can connect to your sites without being a Tenant Admin. Not sure what commands you are looking for... but I'd check the PnP module and see if they have what you need.