Sync_SharepointLibrary

Sync a Sharepoint Library using OneDrive *MUST BE RAN AS USER

Sync_SharepointLibrary

**This component must be ran as the User!! A scripted way to sync a Sharepoint Library. The component creates the same URL that is accessed when clicking the “Sync” button on the Sharepoint Library. You dont have to remote into the computer, navigate to the sharepoint site, navigate to the document library, and click the sync button. All done for you, remotely. You should import multiple copies of this component, one for each library you wish to sync. You will need to set up some info so it can generate the link, details on how to do that are in the Technical Info Section.

The component (WHICH MUST BE RAN AS THE USER) creates the odopen url using the info provided. The users email address is part of the url, we pull it using the command “whoami /upn”. In the event you dont have the users upn set, you can simply enter an email address when you run the component. If the device is Azure Joined, and the user is logged in using Azure credentials, then the upn will be correct, so no need to enter the email address.

This component is a bit complex to set up. You will find the additional information you need here.

Level
Name
Value
Notes
Component
webUrl
https://.sharepoint.com
Obtained from browser. See Technical Info section
Component
siteId
{00000000-0000-0000-0000-000000000000}
Obtained from browser. See Technical Info section
Component
listId

{00000000-0000-0000-0000-000000000000}
Obtained from browser. See Technical Info section
Component
webTitle

Team Site, etc.
Obtained from browser. See Technical Info section
Component
webId

{00000000-0000-0000-0000-000000000000}
Obtained from browser. See Technical Info section
Component
userEmail
Optional
*Optional. If no valid email address found here, component will use whoami/upn to get users email address if possible.
Component
listTitle
Documents
Obtained from browser. See Technical Info section
Component
displayName
Obtained by looking at the file structure of a user that is already syncing the library

If this component downloads any external files other then grabbing the script from our repository, they will be listed here so you can do your own due diligence if needed.

Filename
URL
Notes
No external files downloaded

7/22/2022 – Initial Release

GET IN TOUCH