Skip to main content
First time creating a connector? Read this first.
Send processed data from Unstructured to OneDrive.

Requirements

You will need:

Account

  • A OneDrive for business plan, or a Microsoft 365 or Office 365 Business or enterprise plan that includes OneDrive. Learn more. Shop for business plans. Shop for enterprise plans. OneDrive personal accounts, and Microsoft 365 Free, Basic, Personal, and Family plans are not supported.
  • A SharePoint Online plan, or a Microsoft 365 or Office 365 Business or enterprise plan that includes SharePoint Online. (Even if you only plan to use OneDrive, you still need a plan that includes SharePoint Online, because OneDrive is built on SharePoint technology.) Learn more. Shop for business plans. Shop for enterprise plans.
  • The OneDrive and SharePoint Online plans must share the same Microsoft Entra ID tenant. Learn more.

Resources

  • The path to the target OneDrive folder, starting from the OneDrive account’s root folder, for example my-folder/my-subfolder. The following video shows how to get a path:

Authentication and permissions

  • Two types of authentication are supported: client credentials, and a username and password. Both authentication types require a Microsoft Entra ID app registration.
    The OneDrive connector does not support any other authentication methods, such as multifactor (MFA) or passwordless authentication.
    You will need to provide the Application (client) ID, Directory (tenant) ID, and Client secret for the Entra ID app registration that has access to the target OneDrive account, and the app registration must have the correct set of Microsoft Graph access permissions. These permissions include:
    • Files.ReadWrite.All (if both reading and writing are needed)
    • Sites.ReadWrite.All (if both reading and writing are needed)
    • User.Read.All
    • Directory.Read.All
    1. Create an Entra ID app registration.
    2. Add Graph access permissions to an app registration.
    3. Grant consent for the added Graph permissions.
    The following video shows how to create an Entra ID app registration:
    The following video shows how to add the correct set of Graph access permissions to the Entra ID app registration:
  • Both authentication types also require the User Principal Name (UPN) for the OneDrive account. This is typically the OneDrive account user’s email address. To find a UPN:
    1. Depending on your plan, sign in to your Microsoft 365 admin center (typically https://admin.microsoft.com) using your administrator credentials, or sign in to your Office 365 portal (typically https://portal.office.com) using your credentials.
    2. In the Users section, click Active users.
    3. Locate the user account in the list of active users.
    4. The UPN is displayed in the Username column.
    The following video shows how to get a UPN:
  • For username and password authentication, you will also need the password for the target UPN.

Examples

To create a OneDrive destination connector, see the following examples. For more information on working with destination connectors using the Unstructured API, see Destination endpoints.

Configuration settings

Replace the preceding placeholders as follows:
string
required
A unique name for this connector.
string
required
The application (client) ID of the Microsoft Entra ID app registration that has access to the OneDrive account.
string
required
The User Principal Name (UPN) for the OneDrive user account in Entra ID. This is typically the user’s email address.
string
Required for username and password authentication. The password for the target UPN.
string
required
The directory (tenant) ID of the Entra ID app registration.
string
default:"https://login.microsoftonline.com"
required
The authentication token provider URL for the Entra ID app registration.
string
required
The client secret for the Entra ID app registration.
string
Source connector only. The path to the target folder in the OneDrive account, starting with the account’s root folder, for example my-folder/my-subfolder.
boolean
default:"false"
Source connector only. Set to true to recursively access files from subfolders within the specified OneDrive path.
string
Destination connector only. onedrive://, followed by the path to the target folder in the OneDrive account, starting with the account’s root folder, for example onedrive://my-folder/my-subfolder.
string
Provides authentication for Unstructured Foundation. Unstructured Foundation enables you to processes your files once, maintain a persistent enrichment index, and gives every AI tool your team uses persistent access to your organization’s knowledge without file uploads.Not supported for the Unstructured Pipeline API.
string
Provides authentication for Unstructured Foundation. Unstructured Foundation enables you to processes your files once, maintain a persistent enrichment index, and gives every AI tool your team uses persistent access to your organization’s knowledge without file uploads.Not supported for the Unstructured Pipeline API.