Jan 03 2024 04:31 AM
Hi
I have 1 site collection, where I have created multiple team sites over the last 2 years. A request has come through asking if I can group these by the year they were created.
Is there an easy way to find this out? Once I find that how do I group them?
Thanks
Karen
Jan 03 2024 06:55 AM
Ok so you have subsite creation enabled?
Or do you mean different SharePoint Sites in SharePoint Online?
Have a look at this SharePoint Online: Get Site Collection Created Date using PowerShell - SharePoint Diary
Jan 03 2024 07:07 AM
Hi Andres. There is the site collection --> sub sites within so a parent --> child scenario.
I know I can go to SharePoint Admin to see when site collections have been created but I want to see when the sub sites were created. Is there a non-PowerShell way at all?
Jan 03 2024 07:19 AM
Oh Ok, I understand better now.
There is a Created column if you go to the Site Contents - Subsites list, does that work for you?
Otherwise the other options to use are indeed PowerShell
Jan 03 2024 07:25 AM
I went into Site Contents and only have a Modified column not a Created one.
Jan 03 2024 08:15 AM
Is the URL you are looking at ending like this?
/sites/SITENAME/_layouts/15/viewlsts.aspx?view=15
Jan 03 2024 02:28 PM
Hi,
Here is a good example of how to get all the subsites under a Site with PowerShell: https://www.sharepointdiary.com/2018/08/get-subsite-using-powershell-in-sharepoint-online.html
Jan 04 2024 02:02 AM
Yes it is but only have site name and modified, no other options.
Jan 04 2024 02:05 AM
Hi Juan
Even if I get all the dates from the PowerShell, I still need to group or tag them against the year so that there is a list available within SharePoint Online that users can search on.
I think a better option might be, when creating a sub site put the year (2022) or 2023 after the title name. I can then do a filter on the Content Search Query to look for it.