Ingest your files into Unstructured from OneDrive.

The requirements are as follows.

  • A OneDrive account.

  • The User Principal Name (UPN) for the OneDrive account. This is typically the OneDrive account user’s email address.

  • The path to the target OneDrive folder, starting from the OneDrive account’s root folder, for example my-folder/my-subfolder.

  • The client ID, tenant ID, and client secret for the Microsoft Entra ID app registration that has access to the target OneDrive account and also has the correct set of Microsoft Graph authentication scopes. These scopes 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

See also:

To create or change a OneDrive source connector, see the following examples.

Replace the preceding placeholders as follows:

  • <name> (required) - A unique name for this connector.
  • <client-id> (required) - The application (client) ID of the Microsoft Entra ID app registration that has access to the OneDrive account.
  • <user-pname> (required) - The User Principal Name (UPN) for the OneDrive user account in Entra ID. This is typically the user’s email address.
  • <tenant> (required) - The directory (tenant) ID of the Entra ID app registration.
  • <authority-url> (required) - The authentication token provider URL for the Entra ID app registration. The default is https://login.microsoftonline.com.
  • <client-cred> (required) - The client secret for the Entra ID app registration.
  • <path> (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.
  • For recursive (source connector only), set to true to recursively access files from subfolders within the specified OneDrive <path>. The default is false if not otherwise specified.
  • <remote-url> (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.

To change a connector, replace <connector-id> with the source connector’s unique ID. To get this ID, see List source connectors.