-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Add site Id to output of Get-PnPTenantSite #36
Comments
Hi @alexbelevantsev , Unfortunately the API we call behind the scenes does not return a site id. The cmdlet returns the objects as returned by that API. If we would include the site id, we basically would have to do the same as you're already doing in your script, which would mean we would have to create our own object to return (minor problem, but still it would add a task to our work where we would have to make sure that our object stays in sync with the one being returned from the APi, and make sure that all properties from the API object are available in our own object), but it will also add a serious performance hit in the cmdlet. Especially with tenants that have thousands of thousands of sites. There is also the challenge that it can be possible that a tenant admin has no access to a specific site collection and retrieving the properties will fail then for that site collection. I would propose to create an entry in user voice: https://sharepoint.uservoice.com/ so that the engineering team see the request and hopefully will add it to a future version of the APIs we use. |
Hi! I ended up in a situation where I needed to map a usage report only having SiteId and I wanted to solve it via pwsh but couldn't. Instead I solved it with a console app but I do think what I did is pretty much the same thing that happens under the covers here? Or am I wrong, a bit rusty these days with this SPO-dev world? In this file (src/Commands/Admin/GetTenantSite.cs) it looks like that but the SiteId is missing from the model in this file (src/Commands/Model/SPOSite.cs) Just wanted to see if this after all is possible to fix and also maybe fairly simple? @erwinvanhunen |
Fixed through #4527 |
Is your feature request related to a problem? Please describe.
Get-PnPTenantSite doesn't return site Id.
Describe the solution you'd like
Get-PnPTenantSite returns a site Id.
Describe alternatives you've considered
Currently we use the following cmdlets to get the site Id:
Unfortunately additional cmdlets takes much time to execute.
The text was updated successfully, but these errors were encountered: