Copy files from local Sharepoint Document Library to Sharepoint Online? - sharepoint

We maintain a local SharePoint Intranet here at work. We have made the switch to Office 365 for our email services and are in the process of transitioning most of our local intranet Sharepoint site to the cloud service. Right now we use Costpoint to post employee pay stubs (pdf's) to a document library. The private document library permissions are set up as this:
Private Folder:Read permissions for all
Employee Folder > Paystubs Folder: "That" Employee access and "Utility" account access only.
The Utility account is the account Costpoint uses to post the pdf files to the private document libraries. At this point, instead of going in and trying to modify Costpoint, we want to continue posting the pdf's to the local intranet library, and then copy them to the SharePoint Online site with the same file structure and permissions in place.
What would be the best way to go about this. Powershell script? Or is there a tool that we can use to accomplish this? Would the script have to be run manually or can we run it automatically when the folders are updated with new information?

Related

Power automate automation of shared SharePoint folder by client to my company's mail id

Client has given permission to a folder to upload files on his SharePoint to my company's mail id. I want to automate this task using power automate where it can take that file from my one drive and as soon it gets uploaded there, it should sync to the folder on SharePoint in which client has given us access to upload files and anything to that folder.
I am struggling get the result. What flow will do the job?

sharing an office add-in to the client

I have created an office add-in within visual studio code, I have published it on my Azure Storage Account, and via Centralyzed Deployment I've managed to install it for some users. The problem is that this add-in must be used by some clients, and there is no possibility that they'll use the addin stored in my azure account, and there is no possibility that they will create an account for me on their organization, in order for me to push data directly on their organization's azure account.
So what are the options? I need a solution where i send the office add-in as a zip or something like that, and the company's admin can easily upload that to its Azure account, and the manifest will point to their location. I've seen the possibility of downloading the addin from azure via ftp (without success yet), I imagine if i download that, there might be an option to upload for the client's company admin. Or am I on a wrong track?
many thanks!

Unsure how to make an Azure AD app registration that can have its own onedrive folder

I am working on a project that needs to have a Onedrive folder that it owns where it can store and edit certain files. This folder also needs to be accessible through Onedrive to certain users in my organization.
I have created an App Registration in Azure AD, but can't figure out what permissions and configuration I need to achieve this. I know I can give it access to authenticate to a user and edit/create files on their behalf, but I don't want the folder/files to be associated with any particular user in the organization. How can I achieve this?
You might try creating and managing items using application credentials. Also take a look to permissions and shared for more information about making it accesible to others.
Are the files you're looking to store files that are visible to users or that are "data files" for your app? We don't currently recommend building apps that only store their own proprietary files rather than operating on visible user data. (It's a little more nuanced situation when you look at lists rather than libraries of files).
In general files that are expected to be shared among users without a single user owning them would be placed in a SharePoint site. You can then manage the permissions of the site to give access to the users that need the files. OneDrive for Business is specifically intended for files owned by an individual user.
At the moment we don't have provisioning APIs available through Microsoft Graph to create a site programmatically today, but you can look at the PnP Provisioning Engine for how to automate the process with legacy APIs, or if you really just need a single site you can create the site manually and then refer to it from your application.
The Drive API is the same whether you're accessing a OneDrive for Business or SharePoint site.

Create a folder in SharePoint and configuring permissions in 1 transactions using REST API

Is there a way to create a folder in SharePoint to create a folder using SharePoint REST APIs that it already had already configured permissions (broken inheritance and members can only read instead of contribute).
Basically, I need to make sure that when I show to user special folder in Documents Library it will already have correct permissions. If there are failures on the way, then it is better to not show that folder at all.
One way for me to achieve this (I believe) is to create a folder in some random place, configure permissions and then move it to Documents. I was wondering if there is a better way of doing this.
It seems not a REST API to create folder and configuring permissions in 1 transactions.
We can to do it with two steps.
1.Create a folder using REST API.
Working with folders and files with REST
2.Set permission for this folder using REST API.
Folder level permission using REST api
Or as a workaround, we can create a custom REST service and using Server Side code to achieve this requirement, then consume this REST service from the client side. The following articles for your reference.
SharePoint 2013: Create a Custom WCF REST Service Hosted in SharePoint and Deployed in a WSP
Programmatically create folder in SharePoint List
How to Programmatically Set Permissions on Files/Folders in a SharePoint Document Library

Sync a sharepoint workspace with sharepoint

I am using a sharepoint Workspace between different people, so I'm basicaly syncing a folder between pc's. Now my question is if any of you know how to sync between pc's and a folder on a sharepoint site. I cannot seem to figure this out!
thank you for your help!
You need to create a document library on a SharePoint site and then give permissions (contribute or higher) to everyone who wants to share the files/folder. Once it's done, ask your users to navigate to the library on the SharePoint site and click on the "Sync to SharePoint Workspace" under library tab.
Alternatively, Once you are done assigning permissions to the document library (or just a folder in it), users can directly add the document library from the workspace quick launch for Sharing.
I suppose for your purpose you should use oneDrive instead of SharePoint workspace. Pay attention that oneDrive is available in office 2013 or office 365. In 2010 version it's named SkyDrive!
look at these links: Sync OneDrive for Business or site libraries to your computer
Overview of OneDrive

Resources