Export SharePoint folder structure/hierarchy

Anonymous
2024-08-02T13:55:20+00:00

Hello,

I am working on adjusting and reorganizing our foldering strcture in SharePoint and need to see the full layout of all of folder and subfolders currently.

I've done the export to excel feature but this gives me a long list of all the files themselves. I am less interested in file-level data, but instead want to see almost a site map showing the org structure of the folder names down through all subfolder names.

Is there a way to export this with a hierarchy display?

Thank you!

Sarah

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

6 answers

Sort by: Most helpful
  1. Anonymous
    2024-08-12T23:35:31+00:00

    I don't know why, but now the link is properly set.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-08-12T21:26:26+00:00

    Hi George,

    Thank you for this info. Do you have any insight as to whether Microsoft has this on a roadmap to integrate as a feature? It seems integral to managing the tool!

    Thanks,

    Sarah

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-08-02T17:11:17+00:00

    Hi Sarah,

    Thanks for posting in the community. We are happy to help you.

    Per your description, I need time to test it and will update the thread shortly.

    Sincerely,

    George | Microsoft Community Moderator

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2024-08-12T20:12:05+00:00

    Hi Sarah.

    A good resource to extract your information (folder structure from document libraries) in PowerShell can be found here:

    https://www.sharepointdiary.com/2018/09/sharepoint-online-get-all-folders-from-list-using-powershell.html

    I hope this will help you achieve the wanted result!

    Sincerely,

    Joël.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2024-08-12T19:30:38+00:00

    Hi Sarah,

    Sorry for my late reply.

    Based on my research, there is no built-in feature/setting that can directly meet your needs. There are two possible workarounds, running a PowerShell script or using the SharePoint migration tool to get all folder structures at the site collection level or organization level.

    For the SharePoint migration tool, some third-party tools designed for SharePoint migration that can also export folder structures.

    For the PowerShell script, I have tried to write relevant PowerShell scripts but failed to get all folder structures at the site collection level or organization level. Since the PowerShell script can be coded for different needs, and we have a specific channel Microsoft Q&A Community coping with such PowerShell script questions, you can post a new thread (click "Ask a question" and add the tag SharePoint Development) there for expert help.

    Sorry for the inconvenience that happened to you. Appreciate your understanding and patience.

    Sincerely,

    George | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments