Microsoft OneDrive

The Microsoft OneDrive connector is a Palantir-provided driver connector. The official documentation for this driver can be found here ↗.

Networking

If using an agent connection, the agent must be allowed to connect to the system you choose. This means that the agent must be able to reach the destination IP address, and the destination system must be configured to allow connections from the agent.

If using a direct connection, be sure to add the following egress policies to the connector:

DomainRequired
graph.microsoft.comIf AzureEnvironment=GLOBAL (default)
login.microsoftonline.comIf AuthScheme=AzureAD (default), AzureServicePrincipal, AzureServicePrincipalCert AND AzureEnvironment=GLOBAL
microsoftgraph.chinacloudapi.cnIf AzureEnvironment=CHINA
login.chinacloudapi.cnIf AuthScheme=AzureAD (default), AzureServicePrincipal , AzureServicePrincipalCert AND AzureEnvironment=CHINA
graph.microsoft.usIf AzureEnvironment=USGOVT
login.microsoftonline.usIf AuthScheme=AzureAD (default), AzureServicePrincipal, AzureServicePrincipalCert AND AzureEnvironment=USGOVT or USGOVTDOD
dod-graph.microsoft.usIf AzureEnvironment=USGOVTDOD

Extracting files

Files can be extracted from Microsoft OneDrive by executing the DownloadFile ↗ stored procedure.

To extract a file, add the following SQL query in the sync definition.

Copied!
1 EXECUTE DownloadFile ResourceId = '1234'

This will produce an output dataset with the file content stored in a Base64 encoded string column, which should be decoded to binary in a downstream data transformation.

Microsoft OneDriver syncextracting a file using a stored procedure.