The OneDrive AirSync simplifies importing content from Microsoft OneDrive to DevRev, supporting both one-time historical imports and ongoing incremental syncs.
Data synchronization is one-way from OneDrive to DevRev.
The following table lists the OneDrive objects and their corresponding DevRev equivalents. Objects marked as Sync to DevRev are eligible for import from OneDrive to DevRev.
OneDrive Object | DevRev Object | Sync to DevRev |
|---|---|---|
File | Article | ✅ |
User | DevUser | ✅ |
Group | Group | ✅ |
Group Members | Object Members | ✅ |
OneDrive AirSync supports two connection types. Choose the connection type that best fits your organization's requirements.
In this flow, users create an OAuth connection by signing in with their Microsoft account.
Each user authenticates using their Microsoft account.
The connection accesses the OneDrive belonging to the authenticated user.
OneDrive AirSync imports files from the authenticated user's OneDrive.
Access to files follows the permissions of the authenticated Microsoft user.
Administrator consent is required for the Microsoft Graph permissions used by the connection.
Important: When using the User Flow, OneDrive AirSync imports files stored in the authenticated user's OneDrive. Files that have been shared with the authenticated user through Shared with me are not imported.
Microsoft Graph's API for retrieving items under Shared with me is deprecated and does not provide a reliable long-term mechanism for importing and incrementally synchronizing these files. Therefore, OneDrive AirSync does not currently support files that are shared with the authenticated user.
In this flow, a Microsoft Entra administrator configures an application that uses client credential authentication.
A Microsoft Entra administrator creates an application with the required Microsoft Graph permissions and grants admin consent.
The connection uses the application identity instead of an individual Microsoft user.
The connection can access OneDrive drives across the tenant.
Users, groups, and group memberships can be imported across the tenant.
This flow is recommended for organization-wide OneDrive imports.
To get started:
Go to Settings > Integrations > Snap-ins.
Under the All Snap-ins tab, search for OneDrive AirSync.
Open the snap-in.
Click Add.
Click Install Snap-in.
Depending on the connection type you choose, follow the corresponding setup process below.
Administrator consent is required for the Microsoft Graph permissions used by the OneDrive connection.
Consent can be granted in either of the following ways:
An administrator creates the connection first
A Microsoft Entra administrator starts the OneDrive connection setup.
During the Microsoft OAuth flow, the administrator reviews the requested permissions and grants consent.
Once consent has been granted for the organization, other users can create their own OneDrive connections without requiring the administrator to repeat the consent process.
A non-admin user requests administrator approval
A non-admin user starts creating a OneDrive connection and signs in through the Microsoft OAuth window.
If administrator consent has not already been granted for the required permissions, the user is prompted to request approval.
The request is sent to the Microsoft Entra administrator for the organization.
The administrator reviews and approves the requested permissions.
After approval is granted, the user can continue with the connection setup.
The connection requires permissions to access OneDrive content and the Microsoft Entra directory information required by the connector.
For directory access, the connector uses permissions including:
Scope | Resource |
|---|---|
| Microsoft Graph |
| Microsoft Graph |
| Microsoft Graph |
A user cannot complete the connection setup until the required administrator consent has been granted.
After the required administrator consent has been granted:
Go to Settings > Integrations > AirSyncs.
Click Start AirSync and select OneDrive.
Click Add connection.
Select either Admin Connection or Non-Admin Connection.
These tabs do not restrict which type of Microsoft user can create the connection.
Enter a name for the connection.
Click Next.
In the Connect Microsoft OneDrive step, click Authorize.
Sign in using the Microsoft account whose OneDrive content you want to import.
Complete the Microsoft OAuth flow.
DevRev discovers the OneDrive data set associated with the authenticated user.
Under What do you want to bring in?, select the discovered OneDrive data set.
Select the time frame for the data you want to import.
Review the objects and mappings.
Finish the setup and start the import.
OneDrive AirSync imports content from the authenticated user's OneDrive.
Shared with me limitation: OneDrive AirSync imports files stored in the authenticated user's OneDrive. Files that are shared with the user through Shared with me and are stored in another user's OneDrive are not imported.
The App Flow uses Microsoft Entra client credential authentication. It is intended for organization-wide OneDrive imports and does not depend on an individual Microsoft user's account.
All Microsoft Entra configuration steps must be performed by an administrator who has permission to create applications and grant tenant-wide admin consent.
Before configuring the connection, ensure that you have:
Access to the Microsoft Entra tenant containing the OneDrive data.
Permission to create an application registration.
Permission to grant administrator consent for Microsoft Graph Application permissions.
Access to the DevRev organization where OneDrive AirSync is installed.
You will need the following values when creating the OneDrive connection in DevRev:
Client ID — Application ID of the Microsoft Entra application.
Tenant ID — Directory ID of the Microsoft Entra tenant.
Client Secret — Secret created for the application.
Sign in to the Microsoft Entra admin center.
Navigate to Entra ID > App registrations.
Click New registration.
Enter an application name.
For example:
DevRev - OneDrive AirSync
Under Supported account types, select:
Accounts in this organizational directory only (Single tenant)
Leave the Redirect URI blank.
Click Register.
After the application is created, open its Overview page and note:
Application (client) ID — this is the Client ID.
Directory (tenant) ID — this is the Tenant ID.
Open API permissions.
Click Add a permission.
Select Microsoft Graph.
Select Application permissions.
Add:
Permission | Resource | Purpose |
|---|---|---|
| Microsoft Graph | Read files across users' OneDrive drives |
| Microsoft Graph | Read users for user import and identity mapping |
| Microsoft Graph | Read basic user profile information |
| Microsoft Graph | Read groups and group memberships |
| Microsoft Graph | Support file permission and sharing-change tracking |
Make sure each permission is listed with Application as its type.
After adding the required permissions:
Click Grant admin consent for <tenant>.
Confirm the operation.
Verify that consent has been granted for every permission.
Open Certificates & secrets.
Select Client secrets.
Click New client secret.
Enter a description, such as DevRev OneDrive AirSync.
Select the desired expiration period.
Click Add.
Copy the generated secret value immediately.
The client secret value is displayed only once. Store it securely before leaving the page.
When the client secret expires, the connection can no longer authenticate until it is updated with a valid secret.
Go to Settings > Integrations > AirSyncs.
Click Start AirSync.
Select OneDrive.
Click Add connection > Client Credentials Connection.
Enter a meaningful name for the connection.
Enter:
Client ID
Tenant ID
Client Secret
Click Next.
DevRev validates the credentials and establishes the connection.
After the connection is created:
Select the OneDrive data set presented by DevRev.
Select the time frame for the data you want to import.
Review the objects and field mappings.
Complete the remaining configuration.
Start the import.
After a successful import, the following options are available for the imported OneDrive data.
This option synchronizes modifications made in OneDrive with corresponding items previously imported into DevRev.
It also creates DevRev items for new content discovered in the imported OneDrive directories after the previous import or sync.
This option provides detailed information about the initial import and subsequent synchronization runs.
Use this option to remove an import and the content that was created by that import from DevRev.
Use this option to change the connection used for subsequent sync operations.
This can be useful if:
The original connection becomes inactive.
The user who created a User Flow connection is no longer available.
The client secret associated with an App Flow connection has expired or been replaced.
After successfully importing data from OneDrive, you can manually synchronize changes from OneDrive with DevRev.
To perform a one-time sync:
Go to Settings > Integrations > AirSyncs.
Locate the previously imported OneDrive sync unit.
Select ⋮ > From OneDrive to DevRev.
This imports changes to previously imported files and any new content discovered since the previous successful synchronization.
A one-time sync may overwrite fields on previously imported DevRev items, even if those fields were modified directly in DevRev.
To view currently running or previous OneDrive imports:
Go to Settings > Integrations > AirSyncs.
Select the import you want to inspect.
Open the context menu (⋮).
Select View Report.
The report contains information about the initial extraction and subsequent synchronization runs.
The duration of an initial historical import depends on the amount of OneDrive content being imported and can range from seconds to several hours or longer for large datasets.
After successfully importing OneDrive data into DevRev, you can enable periodic synchronization.
Periodic sync automatically checks OneDrive for changes and imports those changes into DevRev. By default, periodic synchronization runs once an hour.
To configure periodic sync:
Go to Settings > Integrations > AirSyncs.
Locate the previously imported OneDrive directory.
Select ⋮ > Set Periodic Sync.
Configure the desired synchronization settings.
The Enable automation for synced items option can also be enabled when configuring periodic sync.
When enabled, newly created or updated items trigger events that can initiate:
Webhooks
Notifications
Snap-ins
Other event-driven processes
as if the changes originated directly in DevRev.
If this option is disabled, synchronized updates do not trigger these event-driven processes.
This behavior applies only to periodic syncs. Events are not triggered during the initial import or a manual synchronization.
Changes made through Microsoft APIs may not always be immediately visible to the connector. Depending on Microsoft Graph propagation and processing, some changes may take additional time to appear in a subsequent sync.
An import and all content created by that import can be deleted from DevRev.
This can be useful when:
Running a proof of concept.
Changing the import configuration.
Recreating an import using a different connection.
Changing from User Flow to App Flow or vice versa.
To delete an import:
Go to Settings > Integrations > AirSyncs.
Locate the previously imported OneDrive directory.
Select ⋮ > Delete Import.
Caution: Deleting an import permanently deletes the content that was created by the import, including imported files, users, groups, and group memberships, even if those objects were subsequently modified in DevRev.
After deletion, the OneDrive data can be imported again by creating a new import.