# Connect Drives to SharePoint Hub Site Hierarchies

Hub sites in SharePoint Online provide a flexible means to structure and re-organise sites. Unlike subsites in a site collection, sites' association with a hub site can be changed, allowing hub sites to be re-organised with evolving business requirements. <code class="expression">space.vars.PRODUCT\_NAME</code> supports connecting a mapped network drive, or <code class="expression">space.vars.PRODUCT\_NAME</code> [virtual folder](/feature-guide/virtual-folders-for-organising-drive-content.md), to a SharePoint Online hub site; the associated hierarchy of sites, hub sites and document libraries can be accessed via the <code class="expression">space.vars.PRODUCT\_NAME</code> network drive.

<code class="expression">space.vars.PRODUCT\_NAME</code> will show the full hub site hierarchy you have configured. If a root hub site has other hub sites associated, and those associated hub sites themselves have associated hub sites, <code class="expression">space.vars.PRODUCT\_NAME</code> will show the full hierarchy in the network drive.

Changing the hub site associations in SharePoint will reflect in the network drive in <code class="expression">space.vars.PRODUCT\_NAME</code> automatically. There may be a delay of a few minutes before changes will reflect in the network drive depending on SharePoint Online's search index performance which is used by <code class="expression">space.vars.PRODUCT\_NAME</code> to discover site associations.

To connect your network drive or virtual folder to a hub site, choose the 'Hub site' option from the 'Connect To' drop down list in the <code class="expression">space.vars.PRODUCT\_NAME</code> administration console.

<figure><img src="/files/CLZqusYz5VApvZcrEJVj" alt=""><figcaption></figcaption></figure>

Click the Choose button and browse for a hub site.

<figure><img src="/files/WuqnYbyq1OGdapnR0gtD" alt=""><figcaption></figcaption></figure>

After selecting your hub site, click the Options button to configure how <code class="expression">space.vars.PRODUCT\_NAME</code> will show sites.

<figure><img src="/files/Smt48SJRW0ZsBu1QscRP" alt=""><figcaption></figcaption></figure>

If your associated sites have only a single document library and you don't use document libraries in hub sites, then choose to show only the default document library and hide hub site document libraries. File Explorer will show only the sites as folders, not document libraries. Your files can be found directly in the site folders.

<figure><img src="/files/fH38S0zK2LNY214e2Om7" alt=""><figcaption></figcaption></figure>

As a comparison, the document libraries will now show in File Explorer if you choose to show hub site document libraries and all document libraries from associated sites.

<figure><img src="/files/zsPYfUuDLvA4sGeKTPpY" alt=""><figcaption></figcaption></figure>

Check the [hub site step-by-step connection guide](/administration-guide/network-drive-connection-options.md#hub-site) for more information.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zeedrive.com/feature-guide/connect-drives-to-sharepoint-hub-site-hierarchies.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
