Unify Integrations
Logo
Microsoft OneDrive

Microsoft OneDrive

Logo

3 mins READ

Microsoft OneDrive is a cloud storage service that allows users to store, sync, and share files across multiple devices with seamless integration into Microsoft Office applications. It provides secure backup, real-time collaboration features, and accessible file management through web browsers, desktop apps, and mobile devices.

Integrating your application with Microsoft OneDrive revolutionizes file management, facilitating seamless collaboration, version control, and secure cloud storage. 

Authentication

Before you begin, make sure you have the following information:

  • Connection Name: Select a descriptive name for your connection, like "MyAppOneDriveIntegration". This helps in easily identifying the connection within your application or integration settings.

  • Authentication Type: Microsoft OneDrive supports OAuth authentication for integrations.

OAuth based Authentication

  • Login into the Microsoft Azure Portal by clicking here.

  • In the search Bar, search for App Registration and then Click on New Registration.

  • Provide the Name and supported account types and register your app.

  • The Client ID refers to the Application(client) ID

  • Click on “Add a credential or scope” to generate the client secret.

    Frame 109 (1).png
    Frame 109 (1).png

    Permissions

Scope CodeDescription
offline_accessAllows the app to access user data even when the user is not actively using the application by maintaining refresh tokens.
Files.ReadGrants read-only access to files in the user's OneDrive and SharePoint sites that the user can access.
Files.Read.AllProvides read access to all files that the user can access, including files shared with them across the organization.
Files.ReadWriteAllows reading and writing files in the user's OneDrive and SharePoint sites that the user has access to.
Files.ReadWrite.AllGrants full read and write access to all files the user can access, including organization-wide shared files.
Sites.Read.AllProvides read-only access to all SharePoint sites and lists that the user can access within the organization.
Sites.ReadWrite.AllAllows full read and write access to all SharePoint sites, lists, and content that the user can access.
Team.ReadBasic.AllGrants read access to basic information about all Microsoft Teams that the user is a member of, including team names and descriptions.

Triggers

TriggerDescription
New FileTriggers when a new file is created in the selected folder in Microsoft OneDrive
New FolderTriggers when a new folder is created in the selected folder in Microsoft OneDrive
New/updated fileTriggers when a file is uploaded or updated in the selected folder in Microsoft OneDrive

Actions

ActionsDescription
Add permissionAdds permission to a file or folder in Microsoft OneDrive
Create folderCreates a folder in Microsoft OneDrive
Delete file or folderDeletes a file or folder in Microsoft OneDrive
Download fileDownloads the contents of a file in Microsoft OneDrive
Fetch permissionsFetches permissions for files and folders in Microsoft OneDrive
Fetch teams for a userFetches teams for a user by user ID
Get fileRetrieves a file in Microsoft OneDrive
Get file metadataRetrieves file metadata in Microsoft OneDrive
Get user details from emailFetches details of a user by their email
List files and foldersLists files and folders in Microsoft OneDrive
Remove permissionRemoves permission for a file or folder in Microsoft OneDrive
Search filesSearches files in Microsoft OneDrive
Search drive items Searches items in Microsoft OneDrive
Upload file from URLUploads a file from a URL to Microsoft OneDrive
Upload file via file contentUploads a file via file content to Microsoft OneDrive