I have a scenario in which I have the SharePoint role but am not a site collection admin.
I can use SPOService (Get-SPOSite) but it doesn't contain the web information I'm looking for (web creation date, web author, etc.).
I can use pnp but since I don't have explicit access to the sites, I get a forbidden error when trying to use Get-PnPSite and Get-PnPWeb.
Is there a way to get web data in such a scenario?
Example working code (except we must have access rights):
get-pnpweb -includes created, author.loginname
I suppose it would have to be either some command available in SPOService that I'm missing, something like Get-SPOWeb.
Or an alternative way to connect using pnp, one that doesn't use the current user as context, something like Get-PnPTenantWeb.
Unfortunately, these commands don't seem to exist.
Edit
Found a similar thread from 2014. I'm surprised this is still a problem (even through I can count 226 commands now).
Powershell for SharePoint Online is very limited today with only 30 cmdlets available compared to 774 for SharePoint Server.
Powershell to list all sites and subsites in SharePoint Online