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:
Domain
Required
graph.microsoft.com
If AzureEnvironment=GLOBAL (default)
login.microsoftonline.com
If AuthScheme=AzureAD (default), AzureServicePrincipal, AzureServicePrincipalCert AND AzureEnvironment=GLOBAL
microsoftgraph.chinacloudapi.cn
If AzureEnvironment=CHINA
login.chinacloudapi.cn
If AuthScheme=AzureAD (default), AzureServicePrincipal , AzureServicePrincipalCert AND AzureEnvironment=CHINA
graph.microsoft.us
If AzureEnvironment=USGOVT
login.microsoftonline.us
If AuthScheme=AzureAD (default), AzureServicePrincipal, AzureServicePrincipalCert AND AzureEnvironment=USGOVT or USGOVTDOD
dod-graph.microsoft.us
If 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.