Best way to access Teams/One Drive folders and files from UIPath

We are writing some RPA processes that need to access folders and files in Teams. For example a robot might need to read file names in a teams folder to determine the next available file name and then create and save a file in that folder. Other times a bot will need to access a file in a pre-existing teams folder and update it.

We would like to do this without making a copy of the file or folder that then has to synchronize as we find that sometimes synchronization breaks. Seems like it would be better to somehow “reach out” to the folders in question from the server the BOT is running on so we can access the folders/files directly.

I am not an admin but a programmer and so am looking for the best practice in order to do this.

At other times users will store something in their one drive and we need to access it as above.

Any help would be greatly appreciated.

You may want to check on this package:


I have installed this. However, we want a BOT to access not only the BOT’s one drive but someone else’s one drive (and Teams). We have no problem with giving the BOT’s account access to someone’s one drive, but how can we configure an activity to look inside someone else’s one drive or Teams folders?

I’m not really sure in Teams/One Drive, but what we do in GSuite is that the google drive folders are shared on robot account. Have you check if it is possible sharing other account drives?


That is a good idea. I have given the service account that UIPath is using access to the Team that we are trying to access. But no success yet. We are getting an error when using the Teams Scope, and I do not understand why.

A roadblock I thought about is editing a file. Our use case is to update an Excel document in a Teams folder. If the BOT is running on a particular server and I want to open a file located in a Teams folder that I am accessing via MS Teams Scope, will that work?