A newer version of this page is available. Switch to the current version.

OneDrive File System Provider

  • 2 minutes to read

The OneDrive file system provider (OneDriveFileSystemProvider) allows you to connect the ASPxFileManager to OneDrive without user authentication.


Register your application with Azure Active Directory to get an access token that sets permissions for your application. This also allows your application to use OneDrive APIs to work with the App Folder.

Configure OneDrive Storage

Register your account in Azure and Office365 for Business to configure OneDrive Storage.

  1. Select Azure Active Directory/App registrations and click New application registration.

  1. Enter the application's name, type and sign-on URL and click Create.

  1. Click Endpoints to get the Token Endpoint and Authorization Endpoint.

  1. Click Settings to access your application's settings. Use the "Application ID" field value to specify the clientID parameter for the RegisterOneDrive(String, String, String) method.

  1. Click Reply URLs to specify URLs to which Azure Active Directory sends the authentication responses.

  1. Click Required permissions and then click Add to specify permissions for Microsoft Graph.

  1. Click Keys to create the clientSecret key and then use it as a parameter for the RegisterOneDrive(String, String, String) method.

Provider Settings

Set the ASPxFileManager.ProviderType property to FileManagerProviderType.OneDrive to allow the file manager to manage files and folders in OneDrive's App Folder.

The OneDriveFileSystemProvider class allows to access files' and folders' hierarchy and manipulate these files in the file manager.


Do the following to connect the ASPxFileManager to OneDrive:

The ASPxFileManager allows you to handle every request to OneDrive (the ASPxFileManager.CloudProviderRequest event).

Online Demo

File Manager - OneDrive Provider