# Map Drive to SharePoint doc library?

**URL:** <https://www.finalbuilder.com/forums/t/map-drive-to-sharepoint-doc-library/7292>\
**Category:** Discussion\
**Created:** [October 20, 2022, 1:36pm UTC](https://www.finalbuilder.com/forums/t/map-drive-to-sharepoint-doc-library/7292 "2022-10-20T13:36:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathanmeltzer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jonathanmeltzer](https://www.finalbuilder.com/forums/u/jonathanmeltzer)\
**Post date:** [October 20, 2022, 1:36pm UTC](https://www.finalbuilder.com/forums/t/map-drive-to-sharepoint-doc-library/7292/1 "2022-10-20T13:36:14Z")

</div>

Currently we are using Automise to map a drive to a network share. IT would like us to map to a Sharepoint doc library instead. Can we use the Map Network Drive action to do this? If so, what would be the syntax for doing that?

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [October 20, 2022, 9:01pm UTC](https://www.finalbuilder.com/forums/t/map-drive-to-sharepoint-doc-library/7292/2 "2022-10-20T21:01:45Z")

</div>

We don’t have access to sharepoint to test this, however from what I can tell the map drive action should be able to do this. There are some things you need to do on the client machine to make this possible, this post covers it

> **[How to Perfectly Map SharePoint Drive](https://adamtheautomator.com/map-sharepoint-drive/)**
>
> If you've ever needed to map SharePoint drive as a real Window drive, learn how via the GUI, PowerShell and the command prompt.

Ignore the part about using powershell to do the mapping

In the Map Network Drive action, set the Share Path to something like this

`\\poshlab2.sharepoint.com@SSL\sites\ITOps`

---

<div class="post-metadata">

**Author:** ![jonathanmeltzer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jonathanmeltzer](https://www.finalbuilder.com/forums/u/jonathanmeltzer)\
**Post date:** [March 8, 2023, 8:24pm UTC](https://www.finalbuilder.com/forums/t/map-drive-to-sharepoint-doc-library/7292/3 "2023-03-08T20:24:29Z")

</div>

I realize this is a while later…but we are unable to change the Trusted Sites values on our machines, so I am unable to implement that solution.

Have any other Automise solutions for connecting to Sharepoint presented themselves since last October?

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [March 16, 2023, 10:01pm UTC](https://www.finalbuilder.com/forums/t/map-drive-to-sharepoint-doc-library/7292/4 "2023-03-16T22:01:27Z")

</div>

Hi Jonathan

I haven’t found another easy way to do this.

The common suggestion I see is to use Sync - but that requires a browser session logged in - which is not really an option here.

Another option we are exploring is microsoft graph api… but this is a massive api, so there is no way we can expose all of it in Automise, so we’ll need look at use cases.

Can you tell us more about your use case with sharepoint?

---

<div class="post-metadata">

**Author:** ![jonathanmeltzer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jonathanmeltzer](https://www.finalbuilder.com/forums/u/jonathanmeltzer)\
**Post date:** [March 17, 2023, 12:08pm UTC](https://www.finalbuilder.com/forums/t/map-drive-to-sharepoint-doc-library/7292/5 "2023-03-17T12:08:42Z")

</div>

Thank you for getting back to me. Our company is moving a lot of the networked files to Sharepoint sites, and wants to create data in Sharepoint rather than putting CSV files on the network as it did previously. One process I have been asked to create would place the file resulting from an Automise project into a Sharepoint location instead of in a mapped network location. While right now the need is to place files into Sharepoint locations, I can see a need down the line to be able to get files from Sharepoint as well.

---

<div class="post-metadata">

**Author:** ![jonathanmeltzer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jonathanmeltzer](https://www.finalbuilder.com/forums/u/jonathanmeltzer)\
**Post date:** [May 15, 2024, 12:14pm UTC](https://www.finalbuilder.com/forums/t/map-drive-to-sharepoint-doc-library/7292/6 "2024-05-15T12:14:09Z")

</div>

Just checking in - we have another project where we need to access Sharepoint. Any progress on this feature at all?

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [May 16, 2024, 12:29am UTC](https://www.finalbuilder.com/forums/t/map-drive-to-sharepoint-doc-library/7292/7 "2024-05-16T00:29:41Z")

</div>

Hi Jonathan

We have not had a chance to look at this yet and probably won’t any time soon - we have a long backlog and limited resources, so we have to pick our battles.

Are you using Sharepoint server or Sharepoint Online? If its the latter, you may be able to do this with the mgc command line

> **[GitHub - microsoftgraph/msgraph-cli: CLI tool for Microsoft Graph based on .NET](https://github.com/microsoftgraph/msgraph-cli?tab=readme-ov-file)**
>
> CLI tool for Microsoft Graph based on .NET. Contribute to microsoftgraph/msgraph-cli development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![jonathanmeltzer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jonathanmeltzer](https://www.finalbuilder.com/forums/u/jonathanmeltzer)\
**Post date:** [May 16, 2024, 2:45pm UTC](https://www.finalbuilder.com/forums/t/map-drive-to-sharepoint-doc-library/7292/8 "2024-05-16T14:45:41Z")

</div>

So…I figured out how to modify the Trusted Sites, and I am trying the solution you posted about setting the Share Path to something with this format: \\poshlab2.sharepoint.com@SSL\sites\ITOps

I have tried this, and I keep getting an error of “The network path was not found”. You had said to ignore the part of the web instructions about using powershell to do the mapping, but is there something else I would need to do besides setting the Trusted Sites to get this to work?

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [May 16, 2024, 11:10pm UTC](https://www.finalbuilder.com/forums/t/map-drive-to-sharepoint-doc-library/7292/9 "2024-05-16T23:10:48Z")

</div>

Are you using Sharepoint Online or on premises?

We are not sharepoint users and do not currently have access to it to test this, so my suggestion was just result of googling.

further googling suggests it might be unreliable.

Another option is this (saw it mentioned on the ms doco site)

> **[CLI for Microsoft 365 - CLI for Microsoft 365](https://pnp.github.io/cli-microsoft365/)**
>
> Using the CLI for Microsoft 365, you can manage your Microsoft 365 tenant and SharePoint Framework projects on any platform. No matter if you are on Windows, macOS or Linux, using Bash, Cmder or PowerShell, using the CLI for Microsoft 365 you can...

> **[Log in to Microsoft 365 - CLI for Microsoft 365](https://pnp.github.io/cli-microsoft365/user-guide/connecting-microsoft-365/)**
>
> Before you can use CLI for Microsoft 365 commands to manage your tenant, you have to log in to Microsoft 365. Following section explains how you can log in and check the Microsoft 365 login status.

> **[file add - CLI for Microsoft 365](https://pnp.github.io/cli-microsoft365/cmd/file/file-add/)**
>
> Uploads file to the specified site using Microsoft Graph

You can call this tool using the Execute Program action.
