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,
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
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.
- Takeru_IshikawaNov 18, 2019Copper ContributorHi,My purpose is to get links on sub-site pages.
"Get-SPOSite" or alternate cmdlet is good because their output have strings including HTML link tags.
My understanding is PnP command is a combination of commmands so it also needs tenant admin permisisson.Then, I will serch PnP commands.Thank you,
Takeru Ishikawa