On a SharePoint Online site home page, how to show all top-level folders/files from all document libraries in a tree-view-like structure? Permissions should be respected.

frob 4,261 Reputation points
2022-08-15T16:58:44.627+00:00

Hi there

On a SharePoint Online site home page, how to show all top-level folders/files from all document libraries in a tree-view-like structure?
(Permissions should be respected)

Thanks.

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. Paul de Jong 806 Reputation points
    2022-08-17T07:06:16.447+00:00

    An alternative approach is to use REST API to generate the tree structure. This approach has been used elsewhere.231894-explorercopymovepaste.png

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2022-08-16T08:10:17.717+00:00

    Hi @frob ,
    SharePoint currently does not support displaying all top-level folders/files in all document libraries in a tree structure on the SharePoint Online site home page.
    You can only have folders and files displayed in a tree-like structure in the classic navigation pane (as shown in the image below).
    231441-image.png
    Here are steps:

    1. site content->site setting->Navigation Elements.
    2. Enable Tree View->OK.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. frob 4,261 Reputation points
    2022-08-18T00:27:48.57+00:00

    Hi @ PauldeJong-6993, I think that is a good idea. Are you able to suggest any links to any guides or tutorials for using REST API in this way for SharePoint Online, please?
    Also, please post your response as an answer, so I can mark it as Accepted. As of now, I do not see a way to accept your answer.

    Thank you so much.

    0 comments No comments

  3. Paul de Jong 806 Reputation points
    2022-08-19T07:25:08.227+00:00

    "An alternative approach is to use REST API to generate the tree structure. This approach has been used elsewhere." See above screenshot.

    REST API references: check out
    https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/complete-basic-operations-using-sharepoint-rest-endpoints
    and
    https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service?tabs=csom

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.