Microsoft OneDrive Connection Details
Introduction
Connector Version
This documentation is based on version 25.0.9368 of the connector.
Get Started
Microsoft OneDrive Version Support
Microsoft OneDrive and OneDrive for Business accounts are supported via the Microsoft Graph API v1.0.
Establish a Connection
Connect to Microsoft OneDrive
Authenticate using Microsoft Entra service principal
Microsoft Entra service principal is a connection type that goes through OAuth. Set your AuthScheme to AzureServicePrincipal and see Using Microsoft Entra service principal authentication for an authentication guide.
Create an Entra ID (Microsoft Entra ID) Application
Create an Entra ID (Microsoft Entra ID) Application
Note
Microsoft has rebranded Microsoft Entra ID as Entra ID. In topics that require the user to interact with the Entra ID Admin site, we use the same names Microsoft does. However, there are still connection properties whose names or values reference Microsoft Entra ID.
Microsoft OneDrive supports OAuth-based authentication using Microsoft Entra ID. If you will connect via a web application and want to authenticate via Entra ID, you must first register a custom OAuth application in the Entra Admin Center, as described below.
If you will connect via a desktop application or headless machine, you can authenticate using Microsoft OneDrive's built-in embedded application credentials, which use branding. However, custom OAuth applications are also compatible with desktop and headless authentication flows, and may be preferable for production deployments or environments requiring strict policy control.
Register the Application
To register an OAuth application in Microsoft Entra ID, follow these steps:
-
Go to
https://portal.azure.com. -
In the left-hand navigation pane, select
Microsoft Entra ID > App registrations. -
Click
New registration. -
Enter a name for the application.
-
Specify the types of accounts this application should support:
- For private-use applications, select
Accounts in this organization directory only. - For distributed applications, select one of the multi-tenant options.
Note
If you select
Accounts in this organizational directory only, when you connect with Microsoft OneDrive connector, you must set AzureTenant to the tenant's ID (either GUID or verified domain). Otherwise, authentication will fail. - For private-use applications, select
-
Set the redirect URI to
http://localhost:33333(default), or use another URI appropriate for your deployment.When using a custom redirect URI set a
CallbackURLconnection property; in those cases, set it to match this URI exactly. -
Click
Register. The application management screen opens. Record these values for later use:Application (client) IDis used for OAuthClientIdDirectory (tenant) IDis used for AzureTenant
-
Go to
Certificates & Secrets. ClickNew Client Secret, set the desired expiration, and save the generated value. This value will only be shown once — record it to use with OAuthClientSecret. -
Select the Microsoft Graph API and then add the delegated permissions Files.ReadWrite.All or Files.Read.All. Hit the 'Grant admin consent' button afterwards for the new permissions to take effect.
-
To confirm, click
Add permissions.
Create a Service Principal App in Entra ID (Microsoft Entra ID)
Create a Service Principal App in Entra ID (Microsoft Entra ID)
Note
Microsoft has rebranded Microsoft Entra ID as Entra ID. In topics that require the user to interact with the Entra ID Admin site, we use the same names Microsoft does. However, there are still connection properties whose names or values reference Microsoft Entra ID.
Microsoft OneDrive supports Service Principal-based authentication, which is role-based. This means that the Service Principal's permissions are determined by the roles assigned to it. The roles specify what resources the Service Principal can access and which operations it can perform.
If you want to use a Service Principal to authenticate to Microsoft OneDrive, you must create a custom application in Microsoft Entra ID.
To enable Service Principal authentication:
- Confirm that you have permission to register applications and assign roles in your tenant.
- Register a new application and configure credentials and permissions in the Entra Admin Center.
Register the Application
- Go to
https://portal.azure.com. - In the left-hand navigation pane, select
Microsoft Entra ID > App registrations. - Click
New registration. - Enter a name for the application.
- Select the desired tenant setup. Since this custom application is for Service Principal use, choose
Any Microsoft Entra ID tenant – Multitenant. - Click
Register. The application management screen opens. Note the value inApplication (client) IDas the OAuthClientId and theDirectory (tenant) IDas the AzureTenant - Navigate to
Certificates & Secretsand define the application authentication type. Two types of authentication are available: certificate (recommended) or client secret- For creating a new client secret: In
Certificates & Secrets, selectNew Client Secretfor the application and specify its duration. After the client secret is saved, Microsoft OneDrive displays the key value. This value is displayed only once, so be sure to record it for future use. Use this value for the OAuthClientSecret
- For creating a new client secret: In
- Navigate to
Authenticationand select theAccess tokensoption. - Select the Microsoft Graph API and then add the delegated permissions Files.ReadWrite.All or Files.Read.All. Hit the 'Grant admin consent' button afterwards for the new permissions to take effect.
- Save your changes.
- If you specified permissions that require admin consent, you can grant them from the current tenant on the API Permissions page.
Grant Admin Consent
Some custom applications require administrative permissions to operate within a Microsoft Entra ID tenant. This is especially true for applications that use Application permissions, which allow the app to run without a signed-in user. Admin consent can be granted when creating a new application, by adding relevant permissions marked as "Admin Consent Required".
Admin consent is also required to use Client Credentials in the authentication flow.
These permissions must be granted by an admin. To grant admin consent:
- Log in to
https://portal.azure.comwith an administrator account. - Navigate to
Microsoft Entra ID > App registrationsand select your registered application. - Navigate to
API permissions. - Review the permissions listed under
Application permissions. Ensure the necessary API scopes are included for your use case. - Click
Grant admin consentto approve the requested permissions.
This gives your application permissions on the tenant under which it was created.
Fine-Tuning Data Access
Fine-tune Data Access
DirectoryRetrievalDepth: How many folders deep you want to get results for Folders, Files, SharedResources, and Permissions tables.DriveId: The ID of the Drive that you want to use when getting data for tables Files, Folders, SharedResources, and Permissions.ListGroupDrives: Indicates if you would like to list your group drives or not when querying the Drives table. Useful if you're using a OneDrive for Business account.
Important Notes
Configuration Files and Their Paths
- All references to adding configuration files and their paths refer to files and locations on the Jitterbit agent where the connector is installed. These paths are to be adjusted as appropriate depending on the agent and the operating system. If multiple agents are used in an agent group, identical files will be required on each agent.
Advanced Features
This section details a selection of advanced features of the Microsoft OneDrive connector.
User Defined Views
The connector supports the use of user defined views, virtual tables whose contents are decided by a pre-configured user defined query. These views are useful when you cannot directly control queries being issued to the drivers. For an overview of creating and configuring custom views, see User Defined Views.
SSL Configuration
Use SSL Configuration to adjust how connector handles TLS/SSL certificate negotiations. You can choose from various certificate formats. For further information, see the SSLServerCert property under "Connection String Options".
Proxy
To configure the connector using private agent proxy settings, select the Use Proxy Settings checkbox on the connection configuration screen.
Query Processing
The connector offloads as much of the SELECT statement processing as possible to Microsoft OneDrive and then processes the rest of the query in memory (client-side).
For further information, see Query Processing.
Log
For an overview of configuration settings that can be used to refine logging, see Logging. Only two connection properties are required for basic logging, but there are numerous features that support more refined logging, which enables you to use the LogModules connection property to specify subsets of information to be logged.
User Defined Views
The Microsoft OneDrive connector supports the use of user defined views: user-defined virtual tables whose contents are decided by a preconfigured query. User defined views are useful in situations where you cannot directly control the query being issued to the driver; for example, when using the driver from Jitterbit.
Use a user defined view to define predicates that are always applied. If you specify additional predicates in the query to the view, they are combined with the query already defined as part of the view.
There are two ways to create user defined views:
- Create a JSON-formatted configuration file defining the views you want.
- DDL statements.
Define Views Using a Configuration File
User defined views are defined in a JSON-formatted configuration file called UserDefinedViews.json. The connector automatically detects the views specified in this file.
You can also have multiple view definitions and control them using the UserDefinedViews connection property. When you use this property, only the specified views are seen by the connector.
This user defined view configuration file is formatted so that each root element defines the name of a view, and includes a child element, called query, which contains the custom SQL query for the view.
For example:
{
"MyView": {
"query": "SELECT * FROM Files WHERE MyColumn = 'value'"
},
"MyView2": {
"query": "SELECT * FROM MyTable WHERE Id IN (1,2,3)"
}
}
Use the UserDefinedViews connection property to specify the location of your JSON configuration file. For example:
"UserDefinedViews", "C:\Users\yourusername\Desktop\tmp\UserDefinedViews.json"
Define Views Using DDL Statements
The connector is also capable of creating and altering the schema via DDL Statements such as CREATE LOCAL VIEW, ALTER LOCAL VIEW, and DROP LOCAL VIEW.
Create a View
To create a new view using DDL statements, provide the view name and query as follows:
CREATE LOCAL VIEW [MyViewName] AS SELECT * FROM Customers LIMIT 20;
If no JSON file exists, the above code creates one. The view is then created in the JSON configuration file and is now discoverable. The JSON file location is specified by the UserDefinedViews connection property.
Alter a View
To alter an existing view, provide the name of an existing view alongside the new query you would like to use instead:
ALTER LOCAL VIEW [MyViewName] AS SELECT * FROM Customers WHERE TimeModified > '3/1/2020';
The view is then updated in the JSON configuration file.
Drop a View
To drop an existing view, provide the name of an existing schema alongside the new query you would like to use instead.
DROP LOCAL VIEW [MyViewName]
This removes the view from the JSON configuration file. It can no longer be queried.
Schema for User Defined Views
In order to avoid a view's name clashing with an actual entity in the data model, user defined views are exposed in the UserViews schema by default. To change the name of the schema used for UserViews, reset the UserViewsSchemaName property.
Work with User Defined Views
For example, a SQL statement with a user defined view called UserViews.RCustomers only lists customers in Raleigh:
SELECT * FROM Customers WHERE City = 'Raleigh';
An example of a query to the driver:
SELECT * FROM UserViews.RCustomers WHERE Status = 'Active';
Resulting in the effective query to the source:
SELECT * FROM Customers WHERE City = 'Raleigh' AND Status = 'Active';
That is a very simple example of a query to a user defined view that is effectively a combination of the view query and the view definition. It is possible to compose these queries in much more complex patterns. All SQL operations are allowed in both queries and are combined when appropriate.
SSL Configuration
Customize the SSL Configuration
By default, the connector attempts to negotiate TLS with the server. The server certificate is validated against the default system trusted certificate store. You can override how the certificate gets validated using the SSLServerCert connection property.
To specify another certificate, see the SSLServerCert connection property.
Data Model
The Microsoft OneDrive connector models Microsoft OneDrive objects as an easy-to-use SQL database, using views and stored procedures. These are defined in schema files, which are simple, easy-to-read text files that define the structure and organization of data. Because the table definitions are dynamically retrieved, any changes to the remote data are immediately reflected in your queries.
Views
The Views section, which lists read-only SQL tables, contains samples from an example OneDrive site. Your data model is obtained dynamically based on your user credentials and OneDrive site.
The sample site includes the following views:
| View | Description |
|---|---|
Drives |
Displays all OneDrive drives accessible to the current user, including personal and shared drives |
Files |
Provides detailed information about individual files stored in OneDrive drives, including name, size, and metadata. |
FileVersions |
Tracks the version history of each file in OneDrive, allowing review or rollback of previous file states. |
Folders |
Lists all folders within a OneDrive drive, useful for navigation and hierarchical organization analysis. |
GroupMembers |
Displays a list of users assigned to each group, helping manage team or access group memberships. |
Groups |
Shows all security and distribution groups within the connected Microsoft 365 tenant, enabling administrative oversight. |
Permissions |
Details sharing and access permissions for files and folders within a OneDrive drive, identifying owners and collaborators. |
SharedResources |
Identifies all files and folders that have been shared from OneDrive, along with recipients and access levels. |
SharedWithMeResources |
Lists files and folders that have been shared with the signed-in user by others, including metadata such as the owner, sharing permissions, and access details. |
Users |
Lists users with OneDrive accounts in the organization, including user identifiers and profile details. |
Stored Procedures
Stored Procedures are SQL scripts that extend beyond standard CRUD operations. They can be used to search, update, and modify information in OneDrive.
Views
Views are similar to tables in the way that data is represented; however, views are read-only.
Queries can be executed against a view as if it were a normal table.
Microsoft OneDrive Connector Views
| Name | Description |
|---|---|
Drives |
Displays all OneDrive drives accessible to the current user, including personal and shared drives. |
Files |
Provides detailed information about individual files stored in OneDrive drives, including name, size, and metadata. |
FileVersions |
Tracks the version history of each file in OneDrive, allowing review or rollback of previous file states. |
Folders |
Lists all folders within a OneDrive drive, useful for navigation and hierarchical organization analysis. |
GroupMembers |
Displays a list of users assigned to each group, helping manage team or access group memberships. |
Groups |
Shows all security and distribution groups within the connected Microsoft 365 tenant, enabling administrative oversight. |
Permissions |
Details sharing and access permissions for files and folders within a OneDrive drive, identifying owners and collaborators. |
SharedResources |
Identifies all files and folders that have been shared from OneDrive, along with recipients and access levels. |
SharedWithMeResources |
Lists files and folders that have been shared with the signed-in user by others, including metadata such as the owner, sharing permissions, and access details. |
Users |
Lists users with OneDrive accounts in the organization, including user identifiers and profile details. |
Drives
Displays all OneDrive drives accessible to the current user, including personal and shared drives.
Table Specific Information
Due to API limitations, all operators on this view are executed client-side.
Columns
| Name | Type | References | Description |
|---|---|---|---|
driveType |
String |
Specifies the classification of the OneDrive drive, such as personal, business, or documentLibrary. | |
owner_application_displayName |
String |
The human-readable name of the application that owns or created the drive. | |
owner_application_id |
String |
The unique ID assigned to the application that owns or manages the drive. | |
quota_deleted |
Long |
The total number of bytes used by deleted items that are still retained in the recycle bin or recovery folder. | |
quota_remaining |
Long |
The total number of bytes still available for use in the drive's allocated storage limit. | |
quota_state |
String |
The current status of the drive's storage capacity, such as normal, nearing, or exceeded. | |
quota_storagePlanInformation_upgradeAvailable |
Bool |
Specifies whether the user is eligible to upgrade their current storage plan based on available tiers. | |
quota_total |
Long |
The maximum number of bytes allocated to the drive under the user's current storage plan. | |
quota_used |
Long |
The total number of bytes currently used in the drive, including active and deleted content. | |
sharePointIds_listId |
String |
The identifier of the SharePoint list associated with the current item, if applicable. | |
sharePointIds_listItemId |
String |
The unique numeric identifier of a specific item within a SharePoint list. | |
sharePointIds_listItemUniqueId |
String |
The globally unique identifier assigned to the list item within the SharePoint environment. | |
sharePointIds_siteId |
String |
The identifier of the SharePoint site that contains the list or library associated with the current item. | |
sharePointIds_siteUrl |
String |
The full URL of the SharePoint site that hosts the associated list or document library. | |
sharePointIds_tenantId |
String |
The Microsoft 365 tenant identifier that owns the SharePoint site where the list or item is stored. | |
sharePointIds_webId |
String |
The identifier of the SharePoint web (subsite) that contains the associated list or item. | |
Linkedfollowing |
String |
A hyperlink to items or folders in OneDrive that the user is actively following for updates or collaboration. | |
Linkeditems |
String |
A hyperlink to the child items contained within a folder or parent item in OneDrive. | |
Linkedlist |
String |
A hyperlink that navigates to the SharePoint list which contains the current item. | |
Linkedroot |
String |
A hyperlink to the root directory of the drive, representing the top-level folder or entry point. | |
Linkedspecial |
String |
A hyperlink to system-defined special folders including Documents, Photos, Camera Roll, or similar. | |
ParentReference |
String |
A reference object containing metadata about the immediate parent item or folder of the current item. | |
Id [KEY] |
String |
A system-generated unique string that identifies the item within the drive. | |
Name |
String |
The file or folder name as it appears in OneDrive, including its original casing and formatting. | |
Description |
String |
A user-defined or system-generated description that provides context about the item's contents or purpose. | |
owner_user_id |
String |
The unique identifier of the OneDrive user who owns or created the drive instance. |
Files
Provides detailed information about individual files stored in OneDrive drives, including name, size, and metadata.
Table Specific Information
Projection is done server-side. Also, queries that include the primary key ID and IN are executed server-side, e.g.:
SELECT Id, Name, audio_album, audio_title FROM Files WHERE ID IN ('B1E6BJ084A9133KB1!101', 'APF9D2K6WFA524Y')
Include ParentReference_DriveId and ParentReference_Id in the where clause to get the result for a particular folder, e.g.:
SELECT * FROM Files WHERE ParentReference_DriveId = 'b!3Yqza-5FJ0usfhyH-2QafkQpf0OC0jlNh8LAETWPK6dNROPDScevTKbV-drnCFHV' And ParentReference_id = '01QFG2V52Z62HOXS5F6RHIHVT36T3Q5GKH'
File listing is done recursively via the DirectoryRetrievalDepth property. This property's default value is 5, which means it will get data only for the first 6 levels of the 'Drive' you've chosen (because the first level is located in DirectoryRetrievalDepth=0).
You can specify the value -1 to get all the files in the 'Drive' no matter the depth they're located in.
While files may be listed in this view, the contents of the files may be worked with by using stored procedures such as:
- CopyResource - Copy a file/folder from one directory in your drive to another.
- DeleteResource - Delete a file/folder from your drive.
- DownloadFile - Download an existing file from your drive.
- MoveResource - Move a file/folder from one directory in your drive to another.
- UploadFile - Upload a new file or update content to an existing file.
Columns
| Name | Type | References | Description |
|---|---|---|---|
id [KEY] |
String |
Unique identifier of the file item within the OneDrive drive. | |
Etag |
String |
Entity tag for tracking changes to the file; used for concurrency control. | |
createdBy_user_id |
String |
Identifier of the user who originally created the file. | |
createdBy_user_displayName |
String |
Display name of the user who created the file. | |
lastModifiedBy_user_id |
String |
Identifier of the user who last modified the file. | |
lastModifiedBy_user_displayName |
String |
Display name of the user who last modified the file. | |
ResourceType |
String |
Specifies the type of resource represented, such as file or folder. | |
createdBy_user_email |
String |
Email of the user who created the file. | |
lastModifiedBy_user_email |
String |
Email of the user who last modified the file. | |
createdBy_application_displayName |
String |
Name of the application that created the file. | |
createdBy_application_id |
String |
Unique ID of the application that created the file. | |
createdDateTime |
Datetime |
Timestamp when the file was initially created. | |
description |
String |
User-defined or system-generated description of the file's purpose or contents. | |
lastModifiedBy_application_displayName |
String |
Name of the application that last modified the file. | |
lastModifiedBy_application_id |
String |
Unique ID of the application that last modified the file. | |
lastModifiedDateTime |
Datetime |
Timestamp of the most recent modification to the file. | |
name |
String |
The file's name as it appears in OneDrive. | |
parentReference_driveId |
String |
ID of the parent drive containing the file. | |
parentReference_driveType |
String |
Type of the parent drive, such as personal or documentLibrary. | |
parentReference_id |
String |
Unique ID of the parent folder or item. | |
parentReference_name |
String |
Name of the parent folder or item. | |
parentReference_path |
String |
File system path of the parent item within OneDrive. | |
webUrl |
String |
Direct URL to access the file via a web browser. | |
audio_album |
String |
Name of the album the audio file belongs to. | |
audio_albumArtist |
String |
Name of the album artist associated with the audio file. | |
audio_artist |
String |
Primary artist of the audio file. | |
audio_bitrate |
Long |
Bitrate of the audio file in bits per second. | |
audio_composers |
String |
Comma-separated list of composers (for example, John Williams, Hans Zimmer, or Ennio Morricone). | |
audio_copyright |
String |
Copyright information associated with the audio file. | |
audio_disc |
Int |
Disc number the track is from, if part of a multi-disc album. | |
audio_discCount |
Int |
Total number of discs in the audio collection. | |
audio_duration |
Long |
Duration of the audio file in milliseconds. | |
audio_genre |
String |
Genre of the audio file content, such as Rock, Jazz, or Classical. | |
audio_hasDrm |
Bool |
Indicates whether the audio file is protected by digital rights management. | |
audio_isVariableBitrate |
Bool |
Specifies whether the audio file uses variable bitrate encoding. | |
audio_title |
String |
Title of the audio track. | |
audio_track |
Int |
Track number of the audio file on the disc. | |
audio_trackCount |
Int |
Total number of tracks in the audio collection or album. | |
audio_year |
Int |
Year the audio file was published or recorded. | |
cTag |
String |
Change tag used to detect updates to the file or folder. | |
file_hashes_crc32Hash |
String |
CRC32 checksum used for data validation of the file. | |
file_hashes_quickXorHash |
String |
QuickXor hash for efficient change detection in Office files. | |
file_hashes_sha1Hash |
String |
SHA-1 cryptographic hash of the file. | |
file_hashes_sha256Hash |
String |
SHA-256 cryptographic hash of the file. | |
file_mimeType |
String |
MIME type of the file. | |
fileSystemInfo_createdDateTime |
Datetime |
Filesystem timestamp indicating when the file was created. | |
fileSystemInfo_lastModifiedDateTime |
Datetime |
Filesystem timestamp of the last time the file was modified. | |
folder_childCount |
Int |
Number of items directly within the folder, if the item is a folder. | |
image_height |
Int |
Height of the image in pixels. | |
image_width |
Int |
Width of the image in pixels. | |
location_altitude |
Double |
Altitude at which the photo or file was captured, in meters. | |
location_latitude |
Double |
Latitude coordinate of where the photo or file was captured. | |
location_longitude |
Double |
Longitude coordinate of where the photo or file was captured. | |
photo_cameraMake |
String |
Manufacturer of the camera used to take the photo. | |
photo_cameraModel |
String |
Model of the camera used to capture the photo. | |
photo_exposureDenominator |
Double |
Denominator of the exposure time ratio used to capture the photo. | |
photo_exposureNumerator |
Double |
Numerator of the exposure time ratio used to capture the photo. | |
photo_fNumber |
Double |
Aperture setting (f-number) used when the photo was taken. | |
photo_focalLength |
Double |
Focal length of the lens in millimeters. | |
photo_iso |
Int |
ISO sensitivity setting used when the photo was taken. | |
photo_orientation |
Int |
Numeric value representing the photo's orientation (for example, 1 for normal, 3 for rotated 180). | |
photo_takenDateTime |
Datetime |
Date and time when the photo was captured. | |
publication_checkedOutBy_application_displayName |
String |
Display name of the user who checked out the file. | |
publication_checkedOutBy_application_id |
String |
Identifier of the user who checked out the file. | |
publication_level |
String |
The publication visibility level, such as checkout or published. | |
publication_versionId |
String |
Identifier for the published version of the file. | |
size |
Long |
Total size of the item in bytes, including metadata and content. | |
video_audioBitsPerSample |
Int |
Bits per audio sample in the video file. | |
video_audioChannels |
Int |
Number of audio channels in the video, typically 1 for mono or 2 for stereo. | |
video_audioFormat |
String |
Encoding format used for the audio stream in the video file. | |
video_audioSamplesPerSecond |
Int |
Sample rate for the video's audio stream, in hertz. | |
video_bitrate |
Int |
Total data rate of the video stream, measured in bits per second. | |
video_duration |
Long |
Playback duration of the video in milliseconds. | |
video_fourCC |
String |
Four-character code (FourCC) identifying the video codec (such as H264 or XVID). | |
video_frameRate |
Double |
Number of frames displayed per second in the video. | |
video_height |
Int |
Height of the video in pixels. | |
video_width |
Int |
Width of the video in pixels. |
FileVersions
Tracks the version history of each file in OneDrive, allowing review or rollback of previous file states.
Table Specific Information
SELECT
The connector will use the Microsoft OneDrive API to process WHERE clause conditions built with the following column and operator. The filter labeled 'createdBy_user_id' is required to execute the query successfully.
FileIdsupports the '='.DriveIdsupports the '='.UserIdsupports the '='.createdBy_user_idsupports the '='.
For example:
SELECT * FROM FileVersions WHERE FileId = '01CYQN2MFPR6NIWVZNMNFL3SL4E3KF7IHY' AND DriveId = 'b!GrEGWax2VE-ssnJNr1E8llqoLptvK-BGjFRpceFzFg5Nwp9Bw2xbR62J0NAouP6z' AND createdBy_user_id = '472df319-2978-49d4-9445-9e7019def16f'
SELECT * FROM FileVersions WHERE FileId = '01CYQN2MFPR6NIWVZNMNFL3SL4E3KF7IHY' AND createdBy_user_id = '472df319-2978-49d4-9445-9e7019def16f'
SELECT * FROM FileVersions WHERE createdBy_user_id = '472df319-2978-49d4-9445-9e7019def16f'
Columns
| Name | Type | References | Description |
|---|---|---|---|
FileId [KEY] |
String |
Identifier of the original file to which this version belongs. | |
lastModifiedBy_user_displayName |
String |
Display name of the user who made the most recent modification to this file version. | |
lastModifiedBy_user_id |
String |
Unique identifier of the user who last modified this file version. | |
lastModifiedDateTime |
Datetime |
Timestamp indicating when this file version was last modified. | |
size |
Long |
Size of the file version in bytes. | |
id |
String |
Unique identifier assigned to this specific version of the file. | |
lastModifiedBy_user_email |
String |
Email address of the user who last modified this file version. | |
DriveId |
String |
Identifier of the OneDrive or SharePoint drive where the file version is stored. | |
publication_level |
String |
The publication state of the version, such as draft or published. | |
createdBy_user_id |
String |
Unique identifier of the user who originally created this version of the file. |
Folders
Lists all folders within a OneDrive drive, useful for navigation and hierarchical organization analysis.
Table Specific Information
Note: See CreateFolder to create a folder.
Projection is done server-side. Also, queries that include the primary key ID and IN are executed server-side, e.g.:
SELECT Id, Name, Size, Description FROM Folders WHERE ID IN ('B1E6BJ084A9133KB1!122', 'APF9D2K6WFAAPX9')
Folder listing is done recursively via the DirectoryRetrievalDepth property. This property's default value is 5, which means it will get data only for the first 6 levels of the 'Drive' you've chosen (because the first level is located in DirectoryRetrievalDepth=0).
You can specify the value -1 to get all the folders in the 'Drive' no matter the depth they're located in.
While folders may be listed in this view, the contents of the folders may be worked with by using stored procedures such as:
- CopyResource - Copy a file/folder from one directory in your drive to another.
- DeleteResource - Delete a file/folder from your drive.
- MoveResource - Move a file/folder from one directory in your drive to another.
Columns
| Name | Type | References | Description |
|---|---|---|---|
id [KEY] |
String |
Unique identifier for the item. | |
Etag |
String |
Entity tag for the item used for concurrency control. | |
createdBy_user_id |
String |
ID of the user who created the item. | |
createdBy_user_displayName |
String |
Display name of the user who created the item. | |
lastModifiedBy_user_id |
String |
ID of the user who last modified the item. | |
lastModifiedBy_user_displayName |
String |
Display name of the user who last modified the item. | |
createdBy_application_displayName |
String |
Name of the application that created the item. | |
createdBy_application_id |
String |
ID of the application that created the item. | |
createdDateTime |
Datetime |
Timestamp when the item was created. | |
description |
String |
User-provided description of the item. | |
lastModifiedBy_application_displayName |
String |
Name of the application that last modified the item. | |
lastModifiedBy_application_id |
String |
ID of the application that last modified the item. | |
lastModifiedDateTime |
Datetime |
Timestamp of the last modification to the item. | |
name |
String |
Name of the item (file or folder). | |
parentReference_driveId |
String |
ID of the drive containing the parent item. | |
parentReference_driveType |
String |
Type of the drive (for example, personal, or business). | |
parentReference_id |
String |
ID of the parent item. | |
parentReference_name |
String |
Name of the parent item. | |
parentReference_path |
String |
Path to the parent item. | |
parentReference_shareId |
String |
Sharing ID associated with the parent item. | |
parentReference_sharepointIds_listId |
String |
SharePoint list ID associated with the parent item. | |
parentReference_sharepointIds_listItemId |
String |
SharePoint list item ID for the parent item. | |
parentReference_sharepointIds_listItemUniqueId |
String |
Unique SharePoint list item ID. | |
parentReference_sharepointIds_siteId |
String |
ID of the SharePoint site. | |
parentReference_sharepointIds_siteUrl |
String |
URL of the SharePoint site. | |
parentReference_sharepointIds_tenantId |
String |
Tenant ID for the SharePoint organization. | |
parentReference_sharepointIds_webId |
String |
Web ID of the SharePoint site. | |
parentReference_siteId |
String |
ID of the parent site (OneDrive/SharePoint). | |
webUrl |
String |
URL to access the item in a web browser. | |
LinkedcreatedByUser |
String |
Link to the user entity that created the item. | |
LinkedlastModifiedByUser |
String |
Link to the user entity that last modified the item. | |
audio_album |
String |
Album title of the audio file. | |
audio_albumArtist |
String |
Primary artist of the album. | |
audio_artist |
String |
Performer of the audio content. | |
audio_bitrate |
Long |
Bitrate of the audio in bits per second. | |
audio_composers |
String |
Composer(s) of the audio content. | |
audio_copyright |
String |
Copyright statement for the audio file. | |
audio_disc |
Int |
Disc number of the audio track. | |
audio_discCount |
Int |
Total number of discs in the album. | |
audio_duration |
Long |
Duration of the audio file in milliseconds. | |
audio_genre |
String |
Genre of the audio content. | |
audio_hasDrm |
Bool |
Indicates whether the audio file has digital rights management (DRM). | |
audio_isVariableBitrate |
Bool |
Indicates whether the audio uses variable bitrate encoding. | |
audio_title |
String |
Title of the audio track. | |
audio_track |
Int |
Track number on the album. | |
audio_trackCount |
Int |
Total number of tracks in the album. | |
audio_year |
Int |
Year the audio was released. | |
content |
String |
Base64 or encoded content of the item. | |
cTag |
String |
Change tag used for item versioning and sync detection. | |
deleted_state |
String |
The deletion status (for example, 'deleted', 'restored'). | |
file_hashes_crc32Hash |
String |
CRC32 hash of the file content. | |
file_hashes_quickXorHash |
String |
QuickXor hash of the file content used by OneDrive. | |
file_hashes_sha1Hash |
String |
SHA-1 hash of the file content. | |
file_hashes_sha256Hash |
String |
SHA-256 hash of the file content. | |
file_mimeType |
String |
MIME type of the file (for example, 'application/pdf'). | |
file_processingMetadata |
Bool |
Indicates whether the file has additional processing metadata (for example, indexing). | |
fileSystemInfo_createdDateTime |
Datetime |
Timestamp when the file was created in the file system. | |
fileSystemInfo_lastAccessedDateTime |
Datetime |
Timestamp of the last access to the file. | |
fileSystemInfo_lastModifiedDateTime |
Datetime |
Timestamp when the file was last modified. | |
folder_childCount |
Int |
Number of items (files/folders) in the folder. | |
folder_view_sortBy |
String |
Default sort field for viewing folder contents. | |
folder_view_sortOrder |
String |
Default sort order (ascending/descending) for folder contents. | |
folder_view_viewType |
String |
Type of view used to display the folder contents (for example, thumbnails). | |
image_height |
Int |
Height of the image in pixels. | |
image_width |
Int |
Width of the image in pixels. | |
location_altitude |
Double |
Altitude (in meters) where the file (typically a photo) was created. | |
location_latitude |
Double |
Latitude coordinate for the file's location. | |
location_longitude |
Double |
Longitude coordinate for the file's location. | |
package_type |
String |
Type of package (for example, OneNote, ZIP). | |
pendingOperations_pendingContentUpdate_queuedDateTime |
Datetime |
Timestamp when a pending update was queued. | |
photo_cameraMake |
String |
Camera manufacturer used to take the photo. | |
photo_cameraModel |
String |
Camera model used to take the photo. | |
photo_exposureDenominator |
Double |
Denominator of the exposure time (for example, 1/60s = 60). | |
photo_exposureNumerator |
Double |
Numerator of the exposure time. | |
photo_fNumber |
Double |
F-number (aperture) used to take the photo. | |
photo_focalLength |
Double |
Focal length of the lens used in millimeters. | |
photo_iso |
Int |
ISO sensitivity used when taking the photo. | |
photo_orientation |
Int |
Orientation of the photo (for example, 1 = normal, 3 = upside down). | |
photo_takenDateTime |
Datetime |
Timestamp when the photo was taken. | |
publication_level |
String |
The publication level for the folder, which can define sharing or access visibility. | |
publication_versionId |
String |
Identifier representing the specific publication version of the folder. | |
remoteItem_createdBy_application_displayName |
String |
Display name of the application that created the remote item. | |
remoteItem_createdBy_application_id |
String |
Unique identifier of the application that created the remote item. | |
remoteItem_createdDateTime |
Datetime |
Timestamp when the remote item was initially created. | |
remoteItem_file_hashes_crc32Hash |
String |
CRC32 checksum used for file integrity verification. | |
remoteItem_file_hashes_quickXorHash |
String |
QuickXor hash used by OneDrive to track file content changes. | |
remoteItem_file_hashes_sha1Hash |
String |
SHA-1 hash of the file used for content validation. | |
remoteItem_file_hashes_sha256Hash |
String |
SHA-256 hash of the file used for secure integrity checking. | |
remoteItem_file_mimeType |
String |
MIME type of the file, such as application/pdf or image/jpeg. | |
remoteItem_file_processingMetadata |
Bool |
Indicates whether the file contains processing metadata such as indexing or tagging. | |
remoteItem_fileSystemInfo_createdDateTime |
Datetime |
Date and time when the file was created in the filesystem. | |
remoteItem_fileSystemInfo_lastAccessedDateTime |
Datetime |
Date and time the file was last accessed in the filesystem. | |
remoteItem_fileSystemInfo_lastModifiedDateTime |
Datetime |
Last modification timestamp of the file within the filesystem. | |
remoteItem_folder_childCount |
Int |
Number of child items contained in the folder. | |
remoteItem_folder_view_sortBy |
String |
Default attribute used to sort items in the folder view. | |
remoteItem_folder_view_sortOrder |
String |
Sorting order (ascending or descending) used in the folder view. | |
remoteItem_folder_view_viewType |
String |
Type of view used for displaying the folder, such as list or thumbnails. | |
remoteItem_id |
String |
Unique identifier of the remote item. | |
remoteItem_image_height |
Int |
Height of the image in pixels. | |
remoteItem_image_width |
Int |
Width of the image in pixels. | |
remoteItem_lastModifiedDateTime |
Datetime |
Timestamp of the last change made to the remote item. | |
remoteItem_name |
String |
Name of the remote item (file or folder). | |
remoteItem_package_type |
String |
Type of package the item belongs to, such as OneNote or ZIP. | |
remoteItem_parentReference_driveId |
String |
Drive ID of the item's parent directory. | |
remoteItem_parentReference_driveType |
String |
Type of drive hosting the item, such as personal or business. | |
remoteItem_parentReference_id |
String |
Identifier of the parent folder or item. | |
remoteItem_parentReference_name |
String |
Name of the parent folder or item. | |
remoteItem_parentReference_path |
String |
Full path to the parent item in the drive. | |
remoteItem_parentReference_shareId |
String |
ID associated with shared access to the parent item. | |
remoteItem_parentReference_sharepointIds_listId |
String |
SharePoint list ID related to the parent item. | |
remoteItem_parentReference_sharepointIds_listItemId |
String |
Item ID within a SharePoint list. | |
remoteItem_parentReference_sharepointIds_listItemUniqueId |
String |
Globally unique identifier (GUID) for the SharePoint list item. | |
remoteItem_parentReference_sharepointIds_siteId |
String |
SharePoint site ID where the item is located. | |
remoteItem_parentReference_sharepointIds_siteUrl |
String |
URL of the SharePoint site hosting the item. | |
remoteItem_parentReference_sharepointIds_tenantId |
String |
Tenant ID of the SharePoint organization. | |
remoteItem_parentReference_sharepointIds_webId |
String |
Web ID for the SharePoint subsite. | |
remoteItem_parentReference_siteId |
String |
Site ID associated with the parent folder or item. | |
remoteItem_shared_scope |
String |
The scope of the shared item, such as organization or anonymous. | |
remoteItem_shared_sharedDateTime |
Datetime |
Date and time when the item was shared. | |
remoteItem_size |
Long |
Size of the item in bytes. | |
remoteItem_specialFolder_name |
String |
Indicates whether the folder is special, such as Documents or Photos. | |
remoteItem_video_audioBitsPerSample |
Int |
Number of audio bits per sample in the video file. | |
remoteItem_video_audioChannels |
Int |
Number of audio channels (for example, mono, stereo) in the video. | |
remoteItem_video_audioFormat |
String |
Format of the audio encoding in the video. | |
remoteItem_video_audioSamplesPerSecond |
Int |
Sample rate of audio in the video, measured in Hz. | |
remoteItem_video_bitrate |
Int |
Bitrate of the video file in bits per second. | |
remoteItem_video_duration |
Long |
Duration of the video in milliseconds. | |
remoteItem_video_fourCC |
String |
Four-character code (FourCC) identifying the video codec. | |
remoteItem_video_frameRate |
Double |
Frame rate of the video in frames per second. | |
remoteItem_video_height |
Int |
Video height in pixels. | |
remoteItem_video_width |
Int |
Video width in pixels. | |
remoteItem_webDavUrl |
String |
WebDAV-compliant URL to access the remote item programmatically. | |
remoteItem_webUrl |
String |
Web URL to view the remote item in a browser. | |
searchResult_onClickTelemetryUrl |
String |
URL used for telemetry tracking when a search result is clicked. | |
shared_owner_application_displayName |
String |
Display name of the application that owns the shared item. | |
shared_owner_application_id |
String |
ID of the application that owns the shared item. | |
shared_scope |
String |
Scope of sharing for the item, such as users, organization, or anonymous. | |
shared_sharedDateTime |
Datetime |
Date and time when the item was shared by the owner. | |
sharepointIds_listId |
String |
Identifier for the SharePoint list. | |
sharepointIds_listItemId |
String |
Item ID in the associated SharePoint list. | |
sharepointIds_listItemUniqueId |
String |
GUID for the SharePoint list item. | |
sharepointIds_siteId |
String |
SharePoint site ID where the item resides. | |
sharepointIds_siteUrl |
String |
URL of the SharePoint site. | |
sharepointIds_tenantId |
String |
ID of the SharePoint tenant. | |
sharepointIds_webId |
String |
Identifier of the SharePoint web object. | |
size |
Long |
Size of the item in bytes. | |
specialFolder_name |
String |
Type of special folder, such as Documents, Music, or Photos. | |
video_audioBitsPerSample |
Int |
Audio depth per sample in the video file. | |
video_audioChannels |
Int |
Number of audio channels in the video (for example, 2 for stereo). | |
video_audioFormat |
String |
Audio codec format used in the video. | |
video_audioSamplesPerSecond |
Int |
Audio sample rate in Hz. | |
video_bitrate |
Int |
Total bitrate of the video file. | |
video_duration |
Long |
Length of the video in milliseconds. | |
video_fourCC |
String |
Codec identifier (FourCC) used for the video stream. | |
video_frameRate |
Double |
Video frame rate in frames per second. | |
video_height |
Int |
Height resolution of the video. | |
video_width |
Int |
Width resolution of the video. | |
webDavUrl |
String |
WebDAV URL for accessing the item via file system protocols. | |
Linkedanalytics |
String |
Link to analytics data related to the folder or item. | |
Linkedchildren |
String |
Link to the child items contained within the folder. | |
LinkedlistItem |
String |
Link to the associated SharePoint list item. | |
Linkedpermissions |
String |
Link to the permissions set on the item. | |
Linkedsubscriptions |
String |
Link to any active subscriptions (for example, webhooks) on the item. | |
Linkedthumbnails |
String |
Link to thumbnail previews for the item. | |
Linkedversions |
String |
Link to version history for the file. | |
Linkedworkbook |
String |
Link to the Excel workbook interface if the file is an Excel document. |
GroupMembers
Displays a list of users assigned to each group, helping manage team or access group memberships.
Columns
| Name | Type | References | Description |
|---|---|---|---|
GroupId [KEY] |
String |
Groups.Id | Unique identifier for the group to which the member belongs. |
MemberId [KEY] |
String |
Users.Id | Unique identifier for the user or entity that is a member of the group. |
DisplayName |
String |
Full name or display name of the group member, as shown in the directory. | |
UserPrincipalName |
String |
User principal name (UPN) of the member, typically in the format user@domain.com, used for sign-in and identification. |
Groups
Shows all security and distribution groups within the connected Microsoft 365 tenant, enabling administrative oversight.
Columns
| Name | Type | References | Description |
|---|---|---|---|
Id [KEY] |
String |
Unique identifier for the group object within the directory. | |
assignedLabels |
String |
List of sensitivity labels assigned to the group, used for compliance or classification. | |
assignedLicenses |
String |
Details of licenses that have been assigned to the group members, including service plans. | |
classification |
String |
Custom string used to classify the group, such as Confidential or Internal. | |
createdDateTime |
Datetime |
Date and time when the group was created in the directory. | |
description |
String |
Free-form description of the group, typically used for administrative context. | |
displayName |
String |
Display name of the group as it appears in the address book or directory listings. | |
expirationDateTime |
Datetime |
The date and time when the group is scheduled to expire, if applicable. | |
groupTypes |
String |
List of types associated with the group, such as Unified or DynamicMembership. | |
hasMembersWithLicenseErrors |
Bool |
Indicates whether any group members have license assignment errors. | |
isAssignableToRole |
Bool |
Specifies if the group can be assigned to Microsoft Entra ID roles for role-based access control. | |
isManagementRestricted |
Bool |
Indicates whether group management is restricted to designated owners or admins. | |
licenseProcessingState_state |
String |
Current state of license processing for the group (for example, 'Enabled', 'Error'). | |
mail |
String |
Email address of the group if mail-enabled, used for communication or notifications. | |
mailEnabled |
Bool |
Indicates whether the group is enabled to send or receive email messages. | |
mailNickname |
String |
Mail alias (nickname) for the group, used in email addresses and directory services. | |
membershipRule |
String |
Rule used to dynamically assign members to the group based on directory attributes. | |
membershipRuleProcessingState |
String |
Current processing state of the dynamic membership rule (for example, 'InProgress', 'UpdateComplete'). | |
onPremisesDomainName |
String |
Domain name from the on-premises directory if synced from Active Directory. | |
onPremisesLastSyncDateTime |
Datetime |
Last date and time the group was synced from the on-premises directory. | |
onPremisesNetBiosName |
String |
NetBIOS name of the domain from which the group was synced. | |
onPremisesProvisioningErrors |
String |
List of any provisioning errors that occurred during on-premises sync. | |
onPremisesSamAccountName |
String |
Security Accounts Manager (SAM) account name for the group, if synced from on-premises. | |
onPremisesSecurityIdentifier |
String |
Security identifier (SID) for the group, used in access control for Windows systems. | |
onPremisesSyncEnabled |
Bool |
Indicates whether directory sync is enabled for the group from the on-premises environment. | |
preferredDataLocation |
String |
Preferred geographic location for storing data related to the group, such as 'North America'. | |
preferredLanguage |
String |
Preferred language for the group interface, emails, and other localized experiences. | |
proxyAddresses |
String |
List of email addresses associated with the group, including primary and aliases. Each address is separated by a comma and can include smtp, SMTP, or x500. | |
renewedDateTime |
Datetime |
The last time the group was renewed or updated in the directory. | |
securityEnabled |
Bool |
Indicates whether the group is security-enabled and can be used for access control. | |
securityIdentifier |
String |
SID for the group, used for security and identity operations. | |
serviceProvisioningErrors |
String |
Any errors encountered while provisioning services for the group, such as SharePoint or Teams. | |
theme |
String |
Custom UI theme assigned to the group for services like Microsoft Teams. | |
uniqueName |
String |
Globally unique name for the group, used for internal referencing and identification. | |
unseenCount |
Int |
Number of unseen items or notifications associated with the group (for example, in Teams or Outlook). | |
visibility |
String |
Defines group visibility level, such as Public, Private, or HiddenMembership. |
Permissions
Details sharing and access permissions for files and folders within a OneDrive drive, identifying owners and collaborators.
Table Specific Information
Due to API limitations, all operators on this view are executed client-side.
Columns
| Name | Type | References | Description |
|---|---|---|---|
id [KEY] |
String |
Unique identifier for the permission record. | |
Etag |
String |
Entity tag used for concurrency control to track updates to the permission. | |
ResourceId [KEY] |
String |
Identifier of the resource (file or folder) the permission applies to. | |
grantedTo_user_displayName |
String |
Display name of the user who has been granted access to the resource. | |
grantedTo_user_email |
String |
Email address of the user who has been granted access. | |
grantedTo_user_id |
String |
Unique identifier of the user granted access. | |
expirationDateTime |
Datetime |
Timestamp indicating when the permission will expire, if set. | |
grantedTo_application_displayName |
String |
Name of the application granted access to the resource. | |
grantedTo_application_id |
String |
Unique identifier of the application granted access. | |
grantedToIdentities |
String |
List of user or group identities that the permission has been granted to, separated by commas. | |
hasPassword |
Bool |
Indicates whether the shared link is protected by a password. | |
inheritedFrom_driveId |
String |
ID of the drive where the original permission was inherited from. | |
inheritedFrom_driveType |
String |
Type of the originating drive, such as personal or business. | |
inheritedFrom_id |
String |
ID of the resource from which the permission is inherited. | |
inheritedFrom_name |
String |
Name of the resource from which the permission is inherited. | |
inheritedFrom_path |
String |
Path to the source resource from which the permission is inherited. | |
inheritedFrom_shareId |
String |
ID of the sharing link associated with the inherited permission. | |
inheritedFrom_sharepointIds_listId |
String |
SharePoint list ID from which the permission is inherited. | |
inheritedFrom_sharepointIds_listItemId |
String |
ID of the SharePoint list item the permission is derived from. | |
inheritedFrom_sharepointIds_listItemUniqueId |
String |
Globally unique identifier (GUID) of the SharePoint list item. | |
inheritedFrom_sharepointIds_siteId |
String |
SharePoint site ID from which the permission originates. | |
inheritedFrom_sharepointIds_siteUrl |
String |
URL of the SharePoint site associated with the inherited permission. | |
inheritedFrom_sharepointIds_tenantId |
String |
Tenant ID associated with the originating SharePoint environment. | |
inheritedFrom_sharepointIds_webId |
String |
Web ID for the SharePoint subsite containing the original resource. | |
inheritedFrom_siteId |
String |
Site ID of the location from which the permission is inherited. | |
invitation_email |
String |
Email address of the person invited to access the resource. | |
invitation_invitedBy_application_displayName |
String |
Display name of the application that sent the sharing invitation. | |
invitation_invitedBy_application_id |
String |
ID of the application that issued the sharing invitation. | |
invitation_redeemedBy |
String |
Email or identifier of the person who accepted and redeemed the sharing invitation. | |
invitation_signInRequired |
Bool |
Indicates whether the recipient must sign in to access the resource. | |
link_application_displayName |
String |
Display name of the application that created the sharing link. | |
link_application_id |
String |
Unique identifier of the application that created the sharing link. | |
link_preventsDownload |
Bool |
Indicates whether downloading the shared content is restricted for viewers. | |
link_scope |
String |
Defines the access scope of the sharing link, such as anonymous, organization, or specific people. | |
link_type |
String |
Type of sharing link created (for example, view, edit, embed). | |
link_webHtml |
String |
HTML-formatted snippet that renders the sharing link for embedding in web pages. | |
link_webUrl |
String |
Direct web URL to access the shared item. | |
roles |
String |
Comma-separated list of roles granted by the permission, such as read, write, owner. | |
shareId |
String |
Unique identifier for the sharing instance, used to reference and manage shared access. |
SharedResources
Identifies all files and folders that have been shared from OneDrive, along with recipients and access levels.
Table Specific Information
Projection is done server-side. Also, queries that include the primary key ID and IN are executed server-side, e.g.:
SELECT Id, Name, Size, Shared_Scope FROM SharedResources WHERE ID IN ('B1E6BJ084A9133KB1!122', 'APF9D2K6WFAAPX9')
SharedResources listing is done recursively via the DirectoryRetrievalDepth property. This property's default value is 5, which means it will get data only for the first 6 levels of the 'Drive' you've chosen (because the first level is located in DirectoryRetrievalDepth=0).
You can specify the value -1 to get all the shared resources in the 'Drive' no matter the depth they're located in.
Columns
| Name | Type | References | Description |
|---|---|---|---|
id [KEY] |
String |
Unique identifier for the item in the system. | |
Etag |
String |
Entity tag used for version control and detecting changes to the item. | |
createdBy_user_id |
String |
Identifier of the user who originally created the item. | |
createdBy_user_displayName |
String |
Display name of the user who created the item. | |
lastModifiedBy_user_id |
String |
Identifier of the user who most recently modified the item. | |
lastModifiedBy_user_displayName |
String |
Display name of the user who last modified the item. | |
createdBy_application_displayName |
String |
Display name of the application that created the item. | |
createdBy_application_id |
String |
Unique ID of the application that created the item. | |
createdDateTime |
Datetime |
Timestamp indicating when the item was created. | |
description |
String |
User-defined description or notes about the item. | |
lastModifiedBy_application_displayName |
String |
Display name of the application that last modified the item. | |
lastModifiedBy_application_id |
String |
Unique ID of the application that last modified the item. | |
lastModifiedDateTime |
Datetime |
Timestamp of the most recent modification to the item. | |
name |
String |
Name of the item (file or folder). | |
parentReference_driveId |
String |
ID of the drive where the item's parent is located. | |
parentReference_driveType |
String |
Type of drive hosting the item, such as personal or business. | |
parentReference_id |
String |
ID of the parent folder or item. | |
parentReference_name |
String |
Name of the parent folder or item. | |
parentReference_path |
String |
Full path to the parent folder or item. | |
parentReference_shareId |
String |
Sharing ID associated with the parent item for link-based sharing. | |
parentReference_sharepointIds_listId |
String |
SharePoint list ID where the item resides. | |
parentReference_sharepointIds_listItemId |
String |
Item ID in the SharePoint list for the parent item. | |
parentReference_sharepointIds_listItemUniqueId |
String |
Globally unique ID for the SharePoint list item. | |
parentReference_sharepointIds_siteId |
String |
SharePoint site ID that contains the parent item. | |
parentReference_sharepointIds_siteUrl |
String |
URL of the SharePoint site hosting the item. | |
parentReference_sharepointIds_tenantId |
String |
Tenant ID of the SharePoint organization. | |
parentReference_sharepointIds_webId |
String |
Web ID of the SharePoint subsite containing the item. | |
parentReference_siteId |
String |
ID of the parent site where the item is located. | |
webUrl |
String |
Web-accessible URL to view or access the item. | |
LinkedcreatedByUser |
String |
Link to metadata about the user who created the item. | |
LinkedlastModifiedByUser |
String |
Link to metadata about the user who last modified the item. | |
audio_album |
String |
Album title associated with the audio file. | |
audio_albumArtist |
String |
Primary artist of the album. | |
audio_artist |
String |
Performer or artist of the audio content. | |
audio_bitrate |
Long |
Bitrate of the audio file in bits per second. | |
audio_composers |
String |
Name of the composers for the audio content. | |
audio_copyright |
String |
Copyright information associated with the audio file. | |
audio_disc |
Int |
Disc number if the audio file is part of a multi-disc album. | |
audio_discCount |
Int |
Total number of discs in the audio album. | |
audio_duration |
Long |
Duration of the audio in milliseconds. | |
audio_genre |
String |
Genre or category of the audio content. | |
audio_hasDrm |
Bool |
Indicates whether the audio file is protected by DRM. | |
audio_isVariableBitrate |
Bool |
Indicates whether the audio file uses variable bitrate encoding. | |
audio_title |
String |
Title of the track within the audio file. | |
audio_track |
Int |
Track number in the album or playlist. | |
audio_trackCount |
Int |
Total number of tracks in the album. | |
audio_year |
Int |
Year the audio content was released or created. | |
content |
String |
Raw content of the item, usually encoded. | |
cTag |
String |
Change tag used for sync operations to detect item changes. | |
deleted_state |
String |
Status indicating if the item has been deleted (for example, deleted, notDeleted). | |
file_hashes_crc32Hash |
String |
CRC32 hash for integrity verification of the file content. | |
file_hashes_quickXorHash |
String |
QuickXor hash used by Microsoft to detect file content changes. | |
file_hashes_sha1Hash |
String |
SHA-1 hash for validating file integrity. | |
file_hashes_sha256Hash |
String |
SHA-256 hash for strong integrity verification of the file. | |
file_mimeType |
String |
MIME type of the file. | |
file_processingMetadata |
Bool |
Indicates whether additional processing metadata is present (such as for indexing). | |
fileSystemInfo_createdDateTime |
Datetime |
Timestamp when the file was created in the file system. | |
fileSystemInfo_lastAccessedDateTime |
Datetime |
Timestamp of the last time the file was accessed. | |
fileSystemInfo_lastModifiedDateTime |
Datetime |
Timestamp when the file was last modified in the file system. | |
folder_childCount |
Int |
Number of items contained in the folder. | |
folder_view_sortBy |
String |
Default attribute used to sort items in the folder view. | |
folder_view_sortOrder |
String |
Default sort order (ascending or descending) for the folder view. | |
folder_view_viewType |
String |
Type of view for the folder, such as list, grid, or thumbnails. | |
image_height |
Int |
Height of the image in pixels. | |
image_width |
Int |
Width of the image in pixels. | |
location_altitude |
Double |
Altitude, in meters, where the item was created (for media files). | |
location_latitude |
Double |
Latitude coordinate where the item was created. | |
location_longitude |
Double |
Longitude coordinate where the item was created. | |
package_type |
String |
Type of package or container, such as OneNote or ZIP. | |
pendingOperations_pendingContentUpdate_queuedDateTime |
Datetime |
Timestamp indicating when a pending update was queued for processing. | |
photo_cameraMake |
String |
Manufacturer of the camera used to take the photo. | |
photo_cameraModel |
String |
Model name or number of the camera used. | |
photo_exposureDenominator |
Double |
Denominator of the exposure time (for example, 1/125 → 125). | |
photo_exposureNumerator |
Double |
Numerator of the exposure time. | |
photo_fNumber |
Double |
Aperture value (f-number) used to take the photo. | |
photo_focalLength |
Double |
Focal length of the lens, in millimeters. | |
photo_iso |
Int |
ISO sensitivity setting used when the photo was taken. | |
photo_orientation |
Int |
Orientation of the photo (for example, upright, rotated). | |
photo_takenDateTime |
Datetime |
Date and time when the photo was taken, from metadata. | |
publication_level |
String |
Level of publication assigned to the shared resource, used to define distribution or access tier. | |
publication_versionId |
String |
Identifier representing the version of the published shared resource. | |
remoteItem_createdBy_application_displayName |
String |
Display name of the application that created the shared remote item. | |
remoteItem_createdBy_application_id |
String |
Application ID of the app that created the shared remote item. | |
remoteItem_createdDateTime |
Datetime |
Timestamp indicating when the remote item was created. | |
remoteItem_file_hashes_crc32Hash |
String |
CRC32 hash value of the file content, used for integrity checks. | |
remoteItem_file_hashes_quickXorHash |
String |
QuickXor hash used by Microsoft services to detect changes in file content. | |
remoteItem_file_hashes_sha1Hash |
String |
SHA-1 hash of the file for verifying content integrity. | |
remoteItem_file_hashes_sha256Hash |
String |
SHA-256 hash of the file for secure content validation. | |
remoteItem_file_mimeType |
String |
MIME type of the file, such as application/pdf, image/png, text/plain. | |
remoteItem_file_processingMetadata |
Bool |
Indicates whether the file includes metadata for processing tasks such as indexing. | |
remoteItem_fileSystemInfo_createdDateTime |
Datetime |
Filesystem timestamp showing when the file was initially created. | |
remoteItem_fileSystemInfo_lastAccessedDateTime |
Datetime |
Timestamp showing the last time the file was accessed. | |
remoteItem_fileSystemInfo_lastModifiedDateTime |
Datetime |
Timestamp showing the last modification to the file in the filesystem. | |
remoteItem_folder_childCount |
Int |
Total number of child items contained within the shared folder. | |
remoteItem_folder_view_sortBy |
String |
Default field used to sort items in the folder view, such as name or dateModified. | |
remoteItem_folder_view_sortOrder |
String |
Sort direction used in the folder view, such as ascending or descending. | |
remoteItem_folder_view_viewType |
String |
Type of folder view, such as list, grid, or thumbnails. | |
remoteItem_id |
String |
Unique identifier of the shared remote item. | |
remoteItem_image_height |
Int |
Image height in pixels for the shared item, if it is an image file. | |
remoteItem_image_width |
Int |
Image width in pixels for the shared item, if it is an image file. | |
remoteItem_lastModifiedDateTime |
Datetime |
Timestamp indicating the last time the remote item was modified. | |
remoteItem_name |
String |
Name of the remote item that has been shared. | |
remoteItem_package_type |
String |
Type of package, such as OneNote or ZIP, associated with the shared item. | |
remoteItem_parentReference_driveId |
String |
Drive ID where the parent folder or item resides. | |
remoteItem_parentReference_driveType |
String |
Drive type where the parent is located, such as personal, business, or documentLibrary. | |
remoteItem_parentReference_id |
String |
ID of the parent item from which the remote item inherits. | |
remoteItem_parentReference_name |
String |
Name of the parent item containing the remote item. | |
remoteItem_parentReference_path |
String |
Path to the parent folder or item in the OneDrive hierarchy. | |
remoteItem_parentReference_shareId |
String |
Sharing ID used to identify the parent folder in shared contexts. | |
remoteItem_parentReference_sharepointIds_listId |
String |
ID of the SharePoint list containing the parent item. | |
remoteItem_parentReference_sharepointIds_listItemId |
String |
ID of the SharePoint list item corresponding to the parent item. | |
remoteItem_parentReference_sharepointIds_listItemUniqueId |
String |
Globally unique ID of the SharePoint list item for the parent. | |
remoteItem_parentReference_sharepointIds_siteId |
String |
Site ID in SharePoint where the parent item is located. | |
remoteItem_parentReference_sharepointIds_siteUrl |
String |
URL of the SharePoint site containing the parent item. | |
remoteItem_parentReference_sharepointIds_tenantId |
String |
Tenant ID associated with the SharePoint site. | |
remoteItem_parentReference_sharepointIds_webId |
String |
Web ID of the SharePoint site or subsite where the item exists. | |
remoteItem_parentReference_siteId |
String |
Site ID of the location where the shared resource resides. | |
remoteItem_shared_scope |
String |
Defines the access scope of the shared item, such as anonymous, organization, or users. | |
remoteItem_shared_sharedDateTime |
Datetime |
Timestamp indicating when the item was shared. | |
remoteItem_size |
Long |
Size of the shared resource in bytes. | |
remoteItem_specialFolder_name |
String |
Indicates whether the folder is a special system folder, such as Documents or Photos. | |
remoteItem_video_audioBitsPerSample |
Int |
Bit depth per audio sample in the video file. | |
remoteItem_video_audioChannels |
Int |
Number of audio channels in the video, such as 1 for mono or 2 for stereo. | |
remoteItem_video_audioFormat |
String |
Format or codec used for the audio track in the video. | |
remoteItem_video_audioSamplesPerSecond |
Int |
Audio sampling rate in Hertz for the video file. | |
remoteItem_video_bitrate |
Int |
Total bitrate of the video in bits per second. | |
remoteItem_video_duration |
Long |
Total duration of the video in milliseconds. | |
remoteItem_video_fourCC |
String |
Four-character code (FourCC) that identifies the video codec. | |
remoteItem_video_frameRate |
Double |
Frame rate of the video, expressed as frames per second. | |
remoteItem_video_height |
Int |
Height of the video frame in pixels. | |
remoteItem_video_width |
Int |
Width of the video frame in pixels. | |
remoteItem_webDavUrl |
String |
WebDAV-compatible URL for programmatic access to the remote item. | |
remoteItem_webUrl |
String |
Public-facing web URL for accessing the shared item. | |
searchResult_onClickTelemetryUrl |
String |
URL used for collecting telemetry when a shared item is clicked in search results. | |
shared_owner_application_displayName |
String |
Name of the application that owns the shared item. | |
shared_owner_application_id |
String |
Application ID of the application that owns the shared item. | |
shared_scope |
String |
Scope of sharing defined for the resource, such as anonymous, organization, or specific users. | |
shared_sharedDateTime |
Datetime |
Timestamp indicating when the sharing action took place. | |
sharepointIds_listId |
String |
Identifier for the SharePoint list containing the shared item. | |
sharepointIds_listItemId |
String |
Item ID within the SharePoint list. | |
sharepointIds_listItemUniqueId |
String |
Globally unique identifier for the SharePoint list item. | |
sharepointIds_siteId |
String |
ID of the SharePoint site hosting the shared resource. | |
sharepointIds_siteUrl |
String |
URL of the SharePoint site where the item resides. | |
sharepointIds_tenantId |
String |
Identifier of the Microsoft 365 tenant for the SharePoint environment. | |
sharepointIds_webId |
String |
ID of the web component in the SharePoint site structure. | |
size |
Long |
Size of the shared resource in bytes. | |
specialFolder_name |
String |
Name of the special folder if applicable, such as Music, Photos, or Videos. | |
video_audioBitsPerSample |
Int |
Bit depth for audio samples in standalone video metadata. | |
video_audioChannels |
Int |
Audio channel count in the video (standalone representation). | |
video_audioFormat |
String |
Audio codec or format used in standalone video metadata. | |
video_audioSamplesPerSecond |
Int |
Sampling rate of audio in standalone video metadata. | |
video_bitrate |
Int |
Bitrate of the standalone video in bits per second. | |
video_duration |
Long |
Duration of the standalone video in milliseconds. | |
video_fourCC |
String |
FourCC used in standalone video metadata to represent the codec. | |
video_frameRate |
Double |
Frame rate of the standalone video in frames per second. | |
video_height |
Int |
Video height in pixels (standalone metadata). | |
video_width |
Int |
Video width in pixels (standalone metadata). | |
webDavUrl |
String |
WebDAV endpoint URL for accessing the shared item using WebDAV clients. | |
Linkedanalytics |
String |
Link to analytics data related to the shared item, such as views or edits. | |
Linkedchildren |
String |
Link to the list of child items within a shared folder. | |
LinkedlistItem |
String |
Link to the corresponding SharePoint list item for the shared content. | |
Linkedpermissions |
String |
Link to permission settings associated with the shared resource. | |
Linkedsubscriptions |
String |
Link to any active subscriptions (such as webhooks) related to the shared item. | |
Linkedthumbnails |
String |
Link to thumbnail images associated with the shared item. | |
Linkedversions |
String |
Link to the version history of the shared item. | |
Linkedworkbook |
String |
Link to the Excel workbook interface if the shared item is an Excel file. |
SharedWithMeResources
Lists files and folders that have been shared with the signed-in user by others, including metadata such as the owner, sharing permissions, and access details.
Table Specific Information
Due to API limitations, all operators on this view are executed client-side.
SharedWithMeResources listing is done recursively via the DirectoryRetrievalDepth property. This property's default value is 5, which means it will get data only for the first 6 levels of the 'Drive' you've chosen (because the first level is located in DirectoryRetrievalDepth=0).
You can specify the value -1 to get all the shared resources in the 'Drive' no matter the depth they're located in.
Columns
| Name | Type | References | Description |
|---|---|---|---|
id [KEY] |
String |
Unique identifier of the shared file or folder. | |
Etag |
String |
Entity tag used to detect changes to the shared item. | |
createdBy_user_id |
String |
ID of the user who originally created the shared item. | |
createdBy_user_displayName |
String |
Display name of the user who created the shared item. | |
lastModifiedBy_user_id |
String |
ID of the user who last modified the item. | |
lastModifiedBy_user_displayName |
String |
Display name of the user who last modified the item. | |
createdBy_application_displayName |
String |
Display name of the user who created the shared item. | |
createdBy_application_id |
String |
ID of the application that created the item. | |
createdDateTime |
Datetime |
Date and time when the item was created. | |
description |
String |
Optional description provided by the item owner. | |
lastModifiedBy_application_displayName |
String |
Name of the application that last modified the item. | |
lastModifiedBy_application_id |
String |
ID of the application that last modified the item. | |
lastModifiedDateTime |
Datetime |
Date and time of the last modification. | |
name |
String |
Name of the shared file or folder. | |
parentReference_driveId |
String |
ID of the drive where the shared item resides. | |
parentReference_driveType |
String |
Type of drive the item is shared from (for example, business or personal). | |
parentReference_id |
String |
ID of the parent folder that contains the shared item. | |
parentReference_name |
String |
Name of the parent folder containing the item. | |
parentReference_path |
String |
Path of the shared item within its source drive. | |
parentReference_shareId |
String |
Identifier used to access the shared resource. | |
parentReference_sharepointIds_listId |
String |
SharePoint list ID if the item is part of a list. | |
parentReference_sharepointIds_listItemId |
String |
SharePoint list item ID for the shared item. | |
parentReference_sharepointIds_listItemUniqueId |
String |
Unique SharePoint list item ID across the site. | |
parentReference_sharepointIds_siteId |
String |
ID of the SharePoint site that owns the item. | |
parentReference_sharepointIds_siteUrl |
String |
URL of the SharePoint site where the item is hosted. | |
parentReference_sharepointIds_tenantId |
String |
Tenant ID of the organization that shared the item. | |
parentReference_sharepointIds_webId |
String |
Web ID of the SharePoint subsite. | |
parentReference_siteId |
String |
ID of the overall site the item was shared from. | |
webUrl |
String |
Direct link to open the shared item in OneDrive. | |
LinkedcreatedByUser |
String |
Indicates whether the item is linked to its original creator. | |
LinkedlastModifiedByUser |
String |
Indicates whether the item is linked to the user who last modified it. | |
audio_album |
String |
Title of the album the audio file belongs to. | |
audio_albumArtist |
String |
Name of the album's primary artist. | |
audio_artist |
String |
Artist credited with the audio track. | |
audio_bitrate |
Long |
Bitrate of the audio file, measured in kilobits per second. | |
audio_composers |
String |
List of composers credited for the track. | |
audio_copyright |
String |
Copyright notice associated with the audio file. | |
audio_disc |
Int |
Disc number of the audio album, if part of a multi-disc set. | |
audio_discCount |
Int |
Total number of discs in the audio album. | |
audio_duration |
Long |
Duration of the audio file in milliseconds. | |
audio_genre |
String |
Genre classification of the audio content. | |
audio_hasDrm |
Bool |
Indicates whether the audio file is protected by Digital Rights Management (DRM). | |
audio_isVariableBitrate |
Bool |
Indicates whether the audio file uses variable bitrate encoding. | |
audio_title |
String |
Title of the audio track. | |
audio_track |
Int |
Track number of the audio file within its album. | |
audio_trackCount |
Int |
Total number of tracks in the album. | |
audio_year |
Int |
Year the audio track was released. | |
bundle_album_coverImageItemId |
String |
ID of the item used as the album's cover image. | |
bundle_childCount |
Int |
Number of child items (files or folders) in a bundled collection. | |
content |
String |
Binary content stream of the shared file. This field cannot be updated directly. | |
cTag |
String |
Tag used to represent the current state of the item's content. | |
deleted_state |
String |
Indicates whether the item is in a deleted or recycled state. | |
file_hashes_crc32Hash |
String |
CRC32 checksum of the file for basic integrity verification. | |
file_hashes_quickXorHash |
String |
QuickXor hash used for efficient file integrity checks. | |
file_hashes_sha1Hash |
String |
SHA-1 hash of the file used for content validation. | |
file_hashes_sha256Hash |
String |
SHA-256 hash of the file for secure content validation. | |
file_mimeType |
String |
MIME type describing the format of the file. | |
file_processingMetadata |
Bool |
Indicates whether the file includes metadata related to processing. | |
fileSystemInfo_createdDateTime |
Datetime |
Timestamp when the file was originally created. | |
fileSystemInfo_lastAccessedDateTime |
Datetime |
Timestamp of the most recent access to the file. | |
fileSystemInfo_lastModifiedDateTime |
Datetime |
Timestamp of the last modification to the file. | |
folder_childCount |
Int |
Number of items (files and subfolders) in the folder. | |
folder_view_sortBy |
String |
Field used to sort the folder's contents. | |
folder_view_sortOrder |
String |
Sort direction used (ascending or descending). | |
folder_view_viewType |
String |
Preferred display layout for the folder (for example, thumbnails or list). | |
image_height |
Int |
Height of the image in pixels. | |
image_width |
Int |
Width of the image in pixels. | |
location_altitude |
Double |
Altitude where the item, (such as a photo) was captured. | |
location_latitude |
Double |
Latitude where the item was captured. | |
location_longitude |
Double |
Longitude where the item was captured. | |
malware_description |
String |
Description of any malware detected in the file. | |
package_type |
String |
Type of package represented by the item (for example, notebook or folder). | |
pendingOperations_pendingContentUpdate_queuedDateTime |
Datetime |
Timestamp when a pending content update was queued. | |
photo_cameraMake |
String |
Camera manufacturer used to capture the photo. | |
photo_cameraModel |
String |
Camera model used to capture the photo. | |
photo_exposureDenominator |
Double |
Denominator of the exposure setting used (for example, 60 for 1/60 sec). | |
photo_exposureNumerator |
Double |
Numerator of the exposure setting used. | |
photo_fNumber |
Double |
F-number (aperture value) used to capture the photo. | |
photo_focalLength |
Double |
Focal length of the camera lens in millimeters. | |
photo_iso |
Int |
ISO sensitivity setting used when the photo was taken. | |
photo_orientation |
Int |
Orientation flag indicating how the image should be rotated or displayed. | |
photo_takenDateTime |
Datetime |
Timestamp when the photo was taken. | |
publication_checkedOutBy_application_displayName |
String |
Display name of the application that checked out the item. | |
publication_checkedOutBy_application_id |
String |
ID of the application that checked out the item. | |
publication_level |
String |
Publication level of the item (for example, draft or published). | |
publication_versionId |
String |
Version identifier of the published item. | |
remoteItem_createdBy_application_displayName |
String |
Name of the app that created the original file on a different drive. | |
remoteItem_createdBy_application_id |
String |
ID of the app that created the original file on a different drive. | |
remoteItem_createdDateTime |
Datetime |
Timestamp when the remote item was created. | |
remoteItem_file_hashes_crc32Hash |
String |
CRC32 checksum of the remote file for integrity validation. | |
remoteItem_file_hashes_quickXorHash |
String |
QuickXor hash used for fast integrity checks on the remote file. | |
remoteItem_file_hashes_sha1Hash |
String |
SHA-1 hash of the remote file content for validation. | |
remoteItem_file_hashes_sha256Hash |
String |
SHA-256 hash of the remote file content for secure verification. | |
remoteItem_file_mimeType |
String |
MIME type indicating the content format of the remote file. | |
remoteItem_file_processingMetadata |
Bool |
Indicates whether the remote file includes metadata used during processing. | |
remoteItem_fileSystemInfo_createdDateTime |
Datetime |
Timestamp indicating when the remote file was originally created. | |
remoteItem_fileSystemInfo_lastAccessedDateTime |
Datetime |
Timestamp of the most recent access to the remote file. | |
remoteItem_fileSystemInfo_lastModifiedDateTime |
Datetime |
Timestamp of the last modification made to the remote file. | |
remoteItem_folder_childCount |
Int |
Number of child items (files or subfolders) contained in the remote folder | |
remoteItem_folder_view_sortBy |
String |
Field used to sort the remote folder's contents (for example, name or date). | |
remoteItem_folder_view_sortOrder |
String |
Direction in which the remote folder’s contents are sorted (ascending or descending). | |
remoteItem_folder_view_viewType |
String |
Preferred display layout for viewing the contents of the remote folder (for example, list or thumbnails). | |
remoteItem_id |
String |
Unique identifier of the remote item that was shared. | |
remoteItem_image_height |
Int |
Height of the remote image file in pixels. | |
remoteItem_image_width |
Int |
Width of the remote image file in pixels. | |
remoteItem_lastModifiedDateTime |
Datetime |
Timestamp when the remote item was last modified. | |
remoteItem_name |
String |
Name of the remote file or folder. | |
remoteItem_package_type |
String |
Type of package the item represents (for example, notebook or folder). | |
remoteItem_parentReference_driveId |
String |
ID of the drive that hosts the shared remote item. | |
remoteItem_parentReference_driveType |
String |
Type of drive the remote item resides in (for example, personal or business). | |
remoteItem_parentReference_id |
String |
ID of the parent item or folder containing the remote item. | |
remoteItem_parentReference_name |
String |
Name of the parent item or folder. | |
remoteItem_parentReference_path |
String |
Full path to the remote item within the drive. | |
remoteItem_parentReference_shareId |
String |
Share ID that identifies the shared reference for the remote item. | |
remoteItem_parentReference_sharepointIds_listId |
String |
SharePoint list ID associated with the remote item. | |
remoteItem_parentReference_sharepointIds_listItemId |
String |
ID of the item within a SharePoint list. | |
remoteItem_parentReference_sharepointIds_listItemUniqueId |
String |
Globally Unique ID (GUID) of the SharePoint list item. | |
remoteItem_parentReference_sharepointIds_siteId |
String |
ID of the SharePoint site that contains the item. | |
remoteItem_parentReference_sharepointIds_siteUrl |
String |
URL of the SharePoint site hosting the remote item. | |
remoteItem_parentReference_sharepointIds_tenantId |
String |
ID of the Microsoft 365 tenant that owns the SharePoint content. | |
remoteItem_parentReference_sharepointIds_webId |
String |
Web ID of the SharePoint site collection. | |
remoteItem_parentReference_siteId |
String |
ID of the overall site associated with the remote item. | |
remoteItem_shared_scope |
String |
Scope of the remote item's sharing (for example, organization or users). | |
remoteItem_shared_sharedDateTime |
Datetime |
Timestamp of when the remote item was shared. | |
remoteItem_size |
Long |
Size of the remote item in bytes. | |
remoteItem_specialFolder_name |
String |
Name of the special folder type (for example, Documents or Photos) the remote item belongs to. | |
remoteItem_video_audioBitsPerSample |
Int |
Bit depth of the audio track, indicating the number of bits used to represent each audio sample. | |
remoteItem_video_audioChannels |
Int |
Number of audio channels in the video file, such as 2 for stereo or 6 for surround sound. | |
remoteItem_video_audioFormat |
String |
Format of the audio track in the video. For example, AAC or MP3. | |
remoteItem_video_audioSamplesPerSecond |
Int |
Audio sample rate, showing how many audio samples are captured per second (measured in hertz). | |
remoteItem_video_bitrate |
Int |
Bitrate of the video file, representing how much data is processed per second. | |
remoteItem_video_duration |
Long |
Length of the video in milliseconds. | |
remoteItem_video_fourCC |
String |
Four-character code (FourCC) identifying the video codec used. | |
remoteItem_video_frameRate |
Double |
Frame rate of the video, indicating how many frames are displayed per second. | |
remoteItem_video_height |
Int |
Height of the video resolution in pixels. | |
remoteItem_video_width |
Int |
Width of the video resolution in pixels. | |
remoteItem_webDavUrl |
String |
URL used to access the remote item via Web Distributed Authoring and Versioning (WebDAV). | |
remoteItem_webUrl |
String |
Web link to view the remote item in a browser. | |
searchResult_onClickTelemetryUrl |
String |
URL used for tracking clicks on search results, primarily for telemetry purposes. | |
shared_owner_application_displayName |
String |
Display name of the application that originally shared the item. | |
shared_owner_application_id |
String |
Unique ID of the application that originally shared the item. | |
shared_scope |
String |
Scope of sharing, such as whether the item is shared with specific users or more broadly across an organization. | |
shared_sharedDateTime |
Datetime |
Date and time the item was shared with the signed-in user. | |
sharepointIds_listId |
String |
ID of the SharePoint list containing the item. | |
sharepointIds_listItemId |
String |
ID of the specific item within the SharePoint list. | |
sharepointIds_listItemUniqueId |
String |
GUID for the list item across the SharePoint environment. | |
sharepointIds_siteId |
String |
ID of the SharePoint site that owns the item. | |
sharepointIds_siteUrl |
String |
URL of the SharePoint site where the item resides. | |
sharepointIds_tenantId |
String |
ID of the Microsoft 365 tenant associated with the SharePoint content. | |
sharepointIds_webId |
String |
ID of the web within the SharePoint site collection. | |
size |
Long |
Size of the shared item in bytes. | |
specialFolder_name |
String |
Name of the special folder category the item belongs to, such as Documents or Photos. | |
video_audioBitsPerSample |
Int |
Bit depth of the video's audio track. | |
video_audioChannels |
Int |
Number of audio channels in the video (for example, mono or stereo). | |
video_audioFormat |
String |
Audio codec used in the video file. | |
video_audioSamplesPerSecond |
Int |
Audio sampling rate of the video, measured in hertz. | |
video_bitrate |
Int |
Total bitrate of the video file. | |
video_duration |
Long |
Total duration of the video in milliseconds. | |
video_fourCC |
String |
FourCC identifying the video codec. | |
video_frameRate |
Double |
Number of frames per second in the video. | |
video_height |
Int |
Height of the video resolution in pixels. | |
video_width |
Int |
Width of the video resolution in pixels. | |
webDavUrl |
String |
WebDAV URL for accessing the item. | |
Linkedanalytics |
String |
Provides access to usage analytics for the shared item, such as views and interactions. | |
Linkedchildren |
String |
Lists child items contained within a folder. | |
LinkedlistItem |
String |
References the list item associated with the file if it is part of a SharePoint list. | |
Linkedpermissions |
String |
Lists the permissions granted on the shared item. | |
LinkedretentionLabel |
String |
Provides information about the retention label applied to the item for compliance. | |
Linkedsubscriptions |
String |
References any subscriptions related to the item, such as webhook notifications. | |
Linkedthumbnails |
String |
Provides access to image thumbnails associated with the item. | |
Linkedversions |
String |
Lists previous versions of the file for version history tracking. | |
Linkedworkbook |
String |
Reference to the Excel workbook object if the file is an Excel document. |
Users
Lists users with OneDrive accounts in the organization, including user identifiers and profile details.
Users Information
Projection is done server-side. Basic select query is supported e.g.:
SELECT * FROM Users
Using this view an admin user can list all other users details.
Columns
| Name | Type | References | Description |
|---|---|---|---|
id [KEY] |
String |
Unique identifier for the user object in the directory. | |
deletedDateTime |
Datetime |
Timestamp indicating when the user was deleted, if applicable. | |
accountEnabled |
Bool |
Indicates whether the user's account is currently active and can sign in. | |
businessPhones |
String |
List of business phone numbers associated with the user, separated by commas. | |
city |
String |
City specified in the user's business or work address. | |
companyName |
String |
Name of the user's employer or organization. | |
country |
String |
Country or region specified in the user's address. | |
createdDateTime |
Datetime |
Timestamp when the user account was created in the directory. | |
department |
String |
Department the user belongs to within the organization. | |
displayName |
String |
Full display name of the user, shown in directories and address books. | |
employeeHireDate |
Datetime |
Date the user was hired, used in HR and compliance contexts. | |
employeeId |
String |
Internal employee identifier assigned by the organization. | |
employeeOrgData_costCenter |
String |
Cost center to which the user is assigned for accounting or budgeting purposes. | |
employeeOrgData_division |
String |
Organizational division the user belongs to, such as Engineering or Sales. | |
employeeType |
String |
Type of employment, such as FullTime, Contractor, or Temporary. | |
givenName |
String |
User's first name or given name. | |
identities |
String |
List of sign-in identities (such as email, user ID) associated with the user. | |
imAddresses |
String |
List of instant messaging addresses (such as Skype or Teams), separated by commas. | |
isResourceAccount |
Bool |
Indicates whether the account is used as a resource, such as a conference room or shared mailbox. | |
jobTitle |
String |
Job title or role of the user in the organization. | |
lastPasswordChangeDateTime |
Datetime |
Date and time the user last changed their password. | |
mail |
String |
Primary email address of the user. | |
mailNickname |
String |
Alias or mail nickname used in email routing and internal references. | |
mobilePhone |
String |
User's mobile or cell phone number. | |
officeLocation |
String |
User's office room number or location description. | |
onPremisesDistinguishedName |
String |
Distinguished Name (DN) of the user in the on-premises Active Directory. | |
onPremisesDomainName |
String |
Domain name of the on-premises environment where the user is managed. | |
onPremisesExtensionAttributes_extensionAttribute1 |
String |
Custom extension attribute 1 from on-premises Active Directory. | |
onPremisesExtensionAttributes_extensionAttribute10 |
String |
Custom extension attribute 10 from on-premises Active Directory. | |
onPremisesExtensionAttributes_extensionAttribute11 |
String |
Custom extension attribute 11 from on-premises Active Directory. | |
onPremisesExtensionAttributes_extensionAttribute12 |
String |
Custom extension attribute 12 from on-premises Active Directory. | |
onPremisesExtensionAttributes_extensionAttribute13 |
String |
Custom extension attribute 13 from on-premises Active Directory. | |
onPremisesExtensionAttributes_extensionAttribute14 |
String |
Custom extension attribute 14 from on-premises Active Directory. | |
onPremisesExtensionAttributes_extensionAttribute15 |
String |
Custom extension attribute 15 from on-premises Active Directory. | |
onPremisesExtensionAttributes_extensionAttribute2 |
String |
Custom extension attribute 2 from on-premises Active Directory. | |
onPremisesExtensionAttributes_extensionAttribute3 |
String |
Custom extension attribute 3 from on-premises Active Directory. | |
onPremisesExtensionAttributes_extensionAttribute4 |
String |
Custom extension attribute 4 from on-premises Active Directory. | |
onPremisesExtensionAttributes_extensionAttribute5 |
String |
Custom extension attribute 5 from on-premises Active Directory. | |
onPremisesExtensionAttributes_extensionAttribute6 |
String |
Custom extension attribute 6 from on-premises Active Directory. | |
onPremisesExtensionAttributes_extensionAttribute7 |
String |
Custom extension attribute 7 from on-premises Active Directory. | |
onPremisesExtensionAttributes_extensionAttribute8 |
String |
Custom extension attribute 8 from on-premises Active Directory. | |
onPremisesExtensionAttributes_extensionAttribute9 |
String |
Custom extension attribute 9 from on-premises Active Directory. | |
onPremisesImmutableId |
String |
Unique ID used to map the cloud user to the on-premises AD user object. | |
onPremisesLastSyncDateTime |
Datetime |
Timestamp of the last sync operation from on-premises Active Directory. | |
onPremisesProvisioningErrors |
String |
List of errors that occurred during provisioning or sync from on-premises AD. | |
onPremisesSamAccountName |
String |
Security Account Manager (SAM) name used in Windows logon scenarios. | |
onPremisesSecurityIdentifier |
String |
Security identifier (SID) for the user in the on-premises AD environment. | |
onPremisesSyncEnabled |
Bool |
Indicates whether the user object is synchronized from on-premises Active Directory. | |
onPremisesUserPrincipalName |
String |
User principal name (UPN) used in the on-premises environment. | |
otherMails |
String |
List of additional email addresses associated with the user, separated by commas. | |
postalCode |
String |
Postal or ZIP code of the user's business address. | |
preferredLanguage |
String |
Preferred language for communications and system interfaces. | |
state |
String |
State or province listed in the user's address. | |
streetAddress |
String |
Street portion of the user's business address. | |
surname |
String |
User's last name or family name. | |
userPrincipalName |
String |
UPN used to log in, typically in the format user@domain.com. | |
userType |
String |
Type of user account, such as Member, Guest, or External. |
Stored Procedures
Stored procedures are function-like interfaces that extend the functionality of the connector beyond simple SELECT operations with Microsoft OneDrive.
Stored procedures accept a list of parameters, perform their intended function, and then return any relevant response data from Microsoft OneDrive, along with an indication of whether the procedure succeeded or failed.
Microsoft OneDrive Connector Stored Procedures
| Name | Description |
|---|---|
CopyResource |
Copies a specified file or folder from one location in OneDrive to another, preserving content and structure. |
CreateFolder |
Creates a new folder at a specified path within OneDrive to organize content. |
CreateSubscription |
Registers a webhook subscription to receive notifications for changes to OneDrive content (for example, file updates). |
DeleteResource |
Permanently deletes a specified file or folder from OneDrive, removing it from all views and history. |
DeleteSubscription |
Removes an existing webhook subscription to stop receiving change notifications from OneDrive. |
DownloadFile |
Retrieves and downloads a specified file from OneDrive storage to the local or application context. |
FetchAdditionalUserFields |
Retrieves tiered metadata fields (T1, T2, T3) for a specific user, typically for profiling or auditing. |
GetAdminConsentURL |
Generates a URL that an admin must visit to grant tenant-wide OAuth permissions to your app; used when setting up enterprise integrations. |
GetOAuthAccessToken |
Gets an authentication token from OneDrive. |
GetOAuthAuthorizationURL |
Gets the authorization URL that must be opened separately by the user to grant access to your application. Only needed when developing Web apps. You will request the auth token from this URL. |
ModifySubscription |
Creates or updates a webhook subscription to listen for changes in OneDrive files, folders, or other resources. |
MoveResource |
Relocates a file or folder within the OneDrive directory structure, maintaining metadata and permissions. |
RefreshOAuthAccessToken |
Refreshes the OAuth access token used for authentication with various Office 365 services. |
RenameResource |
Changes the name of a specified file or folder in OneDrive without affecting its contents or location. |
UploadFile |
Uploads a new file or overwrites an existing one in OneDrive, supporting binary content updates. |
CopyResource
Copies a specified file or folder from one location in OneDrive to another, preserving content and structure.
Input
| Name | Type | Required | Description |
|---|---|---|---|
ParentID |
String |
True | ID of the destination folder where the resource should be copied. Required if the resource is being moved to a different location. |
NewName |
String |
False | Optional new name for the copied resource. If not provided, the resource retains its original name and can be copied to its current location regardless of ParentID. |
ResourcePath |
String |
False | Path to the resource being copied. Either ResourcePath or ResourceId must be provided to identify the source file or folder. |
ResourceId |
String |
False | Unique ID of the resource to be copied. Either ResourceId or ResourcePath must be provided. |
SourceDriveId |
String |
False | ID of the source drive where the resource currently resides. Only required when the resource is in a different drive than the user's default. |
DestinationDriveId |
String |
False | ID of the target drive where the resource should be copied. Needed when the destination is in a different drive than the source. |
Result Set Columns
| Name | Type | Description |
|---|---|---|
Success |
String |
Indicates whether the copy operation was successful. Returns success status or error details. |
CreateFolder
Creates a new folder at a specified path within OneDrive to organize content.
Input
| Name | Type | Required | Description |
|---|---|---|---|
FolderName |
String |
True | Name to assign to the new folder being created. |
RenameIfExists |
String |
False | Set to 'true' to automatically rename the new folder if a folder with the same name already exists in the target location. |
ParentId |
String |
False | ID of the parent folder where the new folder should be created. |
DriveId |
String |
False | ID of the target drive where the new folder will be created. Use this when creating the folder in a drive other than the user's default drive. |
Result Set Columns
| Name | Type | Description |
|---|---|---|
Id |
String |
Unique identifier assigned to the newly created folder. |
CreateSubscription
Registers a webhook subscription to receive notifications for changes to OneDrive content (for example, file updates).
Input
| Name | Type | Required | Description |
|---|---|---|---|
ChangeType |
String |
True | Specifies the types of changes to monitor for the resource. Supported values are: created, updated, deleted. Multiple values can be provided as a comma-separated list, with a space after each comma. |
NotificationUrl |
String |
True | HTTPS endpoint URL that will receive change notifications when the specified resource changes. |
Resource |
String |
True | Path to the resource to monitor for changes. The path should not include the base URL such as https://graph.microsoft.com/v1.0/. |
ExpirationDateTime |
String |
True | UTC timestamp indicating when the subscription should expire. The maximum allowed duration depends on the resource type being monitored. |
ClientState |
String |
False | Custom string value, up to 128 characters, sent back with each notification to help validate that the notification came from the expected source. |
Result Set Columns
| Name | Type | Description |
|---|---|---|
Id |
String |
Unique identifier assigned to the newly created subscription. |
DeleteResource
Permanently deletes a specified file or folder from OneDrive, removing it from all views and history.
Input
| Name | Type | Required | Description |
|---|---|---|---|
ResourcePath |
String |
False | Path to the resource that should be deleted. Either ResourcePath or ResourceId must be provided to identify the item. |
ResourceId |
String |
False | Unique ID of the resource to be deleted. Either ResourceId or ResourcePath must be provided. |
DriveId |
String |
False | ID of the drive that contains the resource. Specify this only if the resource is in a drive other than the current user's default drive. |
Permanently |
Boolean |
False | Set to 'true' to permanently delete the resource. If not specified or set to 'false', the resource is moved to the recycle bin instead. The default value is false. |
Result Set Columns
| Name | Type | Description |
|---|---|---|
Success |
String |
Indicates whether the delete operation was successful. Returns success status or error information. |
DeleteSubscription
Removes an existing webhook subscription to stop receiving change notifications from OneDrive.
Input
| Name | Type | Required | Description |
|---|---|---|---|
Id |
String |
True | Unique identifier of the subscription to be deleted. |
Result Set Columns
| Name | Type | Description |
|---|---|---|
Success |
String |
Indicates the result of the delete operation. Returns success status or error details if the subscription could not be removed. |
DownloadFile
Retrieves and downloads a specified file from OneDrive storage to the local or application context.
Stored Procedure Specific Information
Microsoft OneDrive allows only a small subset of columns to be used in the Exec query. Either ResourcePath or ResourceId is required to download the file. Typically, these columns can only be used with the = comparison.
If the file is present in the root folder of a OneDrive account, mention the file name directly for the value of ResourcePath. For example:
EXECUTE DownloadFile ResourcePath = 'Book.xlsx', LocalFile = 'D:\Desktop\Book.xlsx'
If the file is present inside a child folder of a OneDrive account, you need to specify the path of the file, starting from the child folder name, for the value of ResourcePath. For example:
EXECUTE DownloadFile ResourcePath = 'Notebooks/test.png', LocalFile = 'D:\Desktop\test.png'
You can also download the file by providing the file's ResourceId. For example:
EXECUTE DownloadFile ResourceId = '01CYQN2MFPR6NIWVZNMNFL3SL4E3KF7IHY', LocalFile = 'D:\Desktop\test.png'
Input
| Name | Type | Required | Description |
|---|---|---|---|
ResourcePath |
String |
False | Path to the file resource to be downloaded. Either ResourcePath or ResourceId must be provided to locate the file. |
ResourceId |
String |
False | Unique identifier of the file to download. Either ResourceId or ResourcePath must be provided. |
DriveId |
String |
False | ID of the drive containing the resource. Required only if the resource is in a drive other than the current user's default drive. |
LocalFile |
String |
False | Local file system path, including the file name, where the downloaded file should be saved. Leave empty to return the file content in memory instead. |
Encoding |
String |
False | Specifies the encoding format for the downloaded file content if returned in memory. Applies only when LocalFile is left empty. The allowed values are NONE, BASE64. The default value is BASE64. |
Overwrite |
String |
False | Set to 'true' to overwrite an existing file at the specified LocalFile path. If 'false', the download fails if the file already exists. |
Version |
String |
False | Specifies a particular version of the file to download. Leave blank to download the latest version. |
UserId |
String |
False | ID of the user who created the file version. Required only when downloading a specific version. |
Result Set Columns
| Name | Type | Description |
|---|---|---|
FileData |
String |
Returns the file content as a byte stream or encoded string if LocalFile is empty. Format depends on the specified Encoding input. |
Success |
String |
Indicates whether the file was downloaded successfully. Returns success status or error details. |
FetchAdditionalUserFields
Retrieves tiered metadata fields (T1, T2, T3) for a specific user, typically for profiling or auditing.
Input
| Name | Type | Required | Description |
|---|---|---|---|
UserId |
String |
True | Unique identifier of the user whose additional fields are being retrieved. |
IncludeFields |
String |
False | Comma-separated list of specific user fields to include in the results. Add 1 space after each comma in the list. |
ExcludeFields |
String |
False | Comma-separated list of specific user fields to exclude from the results. Add 1 space after each comma in the list. |
Result Set Columns
| Name | Type | Description |
|---|---|---|
\* |
String |
Returns all user fields available in the schema, including any requested additional fields and excluding any specified in ExcludeFields. |
GetAdminConsentURL
Generates a URL that an admin must visit to grant tenant-wide OAuth permissions to your app; used when setting up enterprise integrations.
Input
| Name | Type | Required | Description |
|---|---|---|---|
CallbackUrl |
String |
False | The URL to which the user is redirected after authorizing the application. This must exactly match the reply URL configured in the Microsoft Entra ID application settings. |
State |
String |
False | Space-separated list of permissions the application is requesting from the administrator. Each scope defines a level of access. |
Scope |
String |
False | Space-separated list of permissions the application is requesting from the administrator. Each scope defines a level of access. The default value is https://graph.microsoft.com/files.readwrite.all. |
Result Set Columns
| Name | Type | Description |
|---|---|---|
URL |
String |
The full authorization URL that should be opened in a web browser to prompt the admin for consent and return an authorization code. |
GetOAuthAccessToken
Gets an authentication token from OneDrive.
Input
| Name | Type | Required | Description |
|---|---|---|---|
AuthMode |
String |
False | The type of authentication mode to use. Select App for getting authentication tokens via a desktop app. Select Web for getting authentication tokens via a Web app. The allowed values are APP, WEB. The default value is APP. |
CallbackUrl |
String |
False | The URL the user will be redirected to after authorizing your application. This value must match the Reply URL you have specified in the Microsoft Entra ID app settings. |
Verifier |
String |
False | The verifier returned from Microsoft Entra ID after the user has authorized your app to have access to their data. This value will be returned as a parameter to the callback URL. |
Scope |
String |
False | A space-separated list of scopes to request from the user when OAuthGrantType='CODE'. When OAuthGrantType='CLIENT', a scope of 'https://graph.microsoft.com/.default' is used. '/.default' picks up whatever permissions your app already has. |
State |
String |
False | An arbitrary string of your choosing that is returned to your app; a successful roundtrip of this string helps ensure that your app initiated the request. |
Prompt |
String |
False | Defaults to 'select_account' which prompts the user to select account while authenticating. Set to 'None', for no prompt, 'login' to force user to enter their credentials or 'consent' to trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app. |
Result Set Columns
| Name | Type | Description |
|---|---|---|
OAuthAccessToken |
String |
The access token used for communication with OneDrive. |
ExpiresIn |
String |
The remaining lifetime on the access token. A -1 denotes that it will not expire. |
OAuthRefreshToken |
String |
Refresh token to renew the access token. |
GetOAuthAuthorizationURL
Gets the authorization URL that must be opened separately by the user to grant access to your application. Only needed when developing Web apps. You will request the auth token from this URL.
Input
| Name | Type | Required | Description |
|---|---|---|---|
CallbackUrl |
String |
False | The URL the user will be redirected to after authorizing your application. This value must match the Reply URL in the Microsoft Entra ID app settings. |
State |
String |
False | The same value for state that you sent when you requested the authorization code. |
Scope |
String |
False | A space-separated list of scopes to request from the user when OAuthGrantType='CODE'. When OAuthGrantType='CLIENT', a scope of 'https://graph.microsoft.com/.default' is used. '/.default' picks up whatever permissions your app already has. The default value is offline_access https://graph.microsoft.com/.default. |
Prompt |
String |
False | Defaults to 'select_account' which prompts the user to select account while authenticating. Set to 'None', for no prompt, 'login' to force user to enter their credentials or 'consent' to trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app. |
Result Set Columns
| Name | Type | Description |
|---|---|---|
URL |
String |
The authorization URL, entered into a Web browser to obtain the verifier token and authorize your app. |
ModifySubscription
Creates or updates a webhook subscription to listen for changes in OneDrive files, folders, or other resources.
Input
| Name | Type | Required | Description |
|---|---|---|---|
ExpirationDateTime |
String |
True | UTC timestamp indicating the new expiration time for the subscription. |
Id |
String |
True | Unique identifier of the subscription to be modified. |
Result Set Columns
| Name | Type | Description |
|---|---|---|
Id |
String |
Unique identifier of the updated subscription. |
ChangeType |
String |
Type of change that triggers the subscription. Possible values include created, updated, deleted. |
NotificationUrl |
String |
Webhook URL that receives notifications when the subscribed resource changes. |
Resource |
String |
Relative path of the resource the subscription applies to. Does not include the base Microsoft Graph URL. |
ExpirationDateTime |
String |
Updated UTC expiration timestamp of the subscription. |
ClientState |
String |
Custom string provided at subscription creation, returned in each change notification to verify source authenticity. |
MoveResource
Relocates a file or folder within the OneDrive directory structure, maintaining metadata and permissions.
Stored Procedure Specific Information
Microsoft OneDrive allows only a small subset of columns to be used in the Exec query. DestinationID and either of ResourcePath or ResourceId is required to move the resource. These columns can typically be used with only = comparison.
If file is present in the root folder of a OneDrive account, then mention the file name directly for the value of ResourcePath. For example:
EXECUTE MoveResource ResourcePath = 'Book.xlsx', DestinationID = '01JSGDQ3MFCITWE4PQKFAY6KH5LHJKPYU5'
If file is present inside a child folder of a OneDrive account, then you need to specify the path of the file starting from child folder name for the value of ResourcePath. For example:
EXECUTE MoveResource ResourcePath = 'Notebooks/test.png', DestinationID = '01JSGDQ3MFCITWE4PQKFAY6KH5LHJKPYU5'
You can also move the resource by providing the ResourceId and DestinationID as well. For example:
EXECUTE MoveResource ResourceId = '01CYQN2MFPR6NIWVZNMNFL3SL4E3KF7IHY', DestinationID = '01JSGDQ3MFCITWE4PQKFAY6KH5LHJKPYU5'
Input
| Name | Type | Required | Description |
|---|---|---|---|
DestinationID |
String |
True | ID of the destination folder where the resource should be moved. |
ResourcePath |
String |
False | Path to the resource to be moved. Either ResourcePath or ResourceId must be provided to identify the item. |
ResourceId |
String |
False | Unique identifier of the resource to move. Either ResourceId or ResourcePath must be provided. |
DriveId |
String |
False | ID of the drive containing the resource. Required only if the resource is located in a drive different from the user's default drive. |
Result Set Columns
| Name | Type | Description |
|---|---|---|
Success |
String |
Indicates whether the move operation was successful. Returns success status or error details. |
RefreshOAuthAccessToken
Refreshes the OAuth access token used for authentication with various Office 365 services.
Input
| Name | Type | Required | Description |
|---|---|---|---|
OAuthRefreshToken |
String |
True | The refresh token returned from the original authorization code exchange. |
Result Set Columns
| Name | Type | Description |
|---|---|---|
OAuthAccessToken |
String |
The authentication token returned from Microsoft Entra ID. This can be used in subsequent calls to other operations for this particular service. |
OAuthRefreshToken |
String |
A token that may be used to obtain a new access token. |
ExpiresIn |
String |
The remaining lifetime on the access token. |
RenameResource
Changes the name of a specified file or folder in OneDrive without affecting its contents or location.
Input
| Name | Type | Required | Description |
|---|---|---|---|
ResourceId |
String |
True | Unique identifier of the resource to be renamed. |
Name |
String |
True | New name to assign to the resource. |
DriveId |
String |
False | ID of the drive where the resource is located. Specify this only if the resource is not in the current user's default drive. |
Result Set Columns
| Name | Type | Description |
|---|---|---|
Success |
String |
Indicates whether the rename operation was successful. Returns success status or error details. |
UploadFile
Uploads a new file or overwrites an existing one in OneDrive, supporting binary content updates.
Input
| Name | Type | Required | Description |
|---|---|---|---|
ParentId |
String |
True | ID of the destination folder where the file should be uploaded. |
DriveId |
String |
False | ID of the drive where the file should be uploaded. Use this if uploading to a drive different from the current user's default drive. |
FileName |
String |
True | Name to assign to the uploaded file. |
Content |
String |
False | Raw content of the file to upload, typically used for small files.. |
LocalFile |
String |
False | Path to a local file whose contents should be uploaded. |
Result Set Columns
| Name | Type | Description |
|---|---|---|
Success |
String |
Indicates whether the file was uploaded successfully. Returns success status or error details. |
System Tables
You can query the system tables described in this section to access schema information, information on data source functionality, and batch operation statistics.
Schema Tables
The following tables return database metadata for Microsoft OneDrive:
- sys_catalogs: Lists the available databases.
- sys_schemas: Lists the available schemas.
- sys_tables: Lists the available tables and views.
- sys_tablecolumns: Describes the columns of the available tables and views.
- sys_procedures: Describes the available stored procedures.
- sys_procedureparameters: Describes stored procedure parameters.
- sys_keycolumns: Describes the primary and foreign keys.
- sys_indexes: Describes the available indexes.
Data Source Tables
The following tables return information about how to connect to and query the data source:
- sys_connection_props: Returns information on the available connection properties.
- sys_sqlinfo: Describes the SELECT queries that the connector can offload to the data source.
Query Information Tables
The following table returns query statistics for data modification queries:
- sys_identity: Returns information about batch operations or single updates.
sys_catalogs
Lists the available databases.
The following query retrieves all databases determined by the connection string:
SELECT * FROM sys_catalogs
Columns
| Name | Type | Description |
|---|---|---|
CatalogName |
String |
The database name. |
sys_schemas
Lists the available schemas.
The following query retrieves all available schemas:
SELECT * FROM sys_schemas
Columns
| Name | Type | Description |
|---|---|---|
CatalogName |
String |
The database name. |
SchemaName |
String |
The schema name. |
sys_tables
Lists the available tables.
The following query retrieves the available tables and views:
SELECT * FROM sys_tables
Columns
| Name | Type | Description |
|---|---|---|
CatalogName |
String |
The database containing the table or view. |
SchemaName |
String |
The schema containing the table or view. |
TableName |
String |
The name of the table or view. |
TableType |
String |
The table type (table or view). |
Description |
String |
A description of the table or view. |
IsUpdateable |
Boolean |
Whether the table can be updated. |
sys_tablecolumns
Describes the columns of the available tables and views.
The following query returns the columns and data types for the Files table:
SELECT ColumnName, DataTypeName FROM sys_tablecolumns WHERE TableName='Files'
Columns
| Name | Type | Description |
|---|---|---|
CatalogName |
String |
The name of the database containing the table or view. |
SchemaName |
String |
The schema containing the table or view. |
TableName |
String |
The name of the table or view containing the column. |
ColumnName |
String |
The column name. |
DataTypeName |
String |
The data type name. |
DataType |
Int32 |
An integer indicating the data type. This value is determined at run time based on the environment. |
Length |
Int32 |
The storage size of the column. |
DisplaySize |
Int32 |
The designated column's normal maximum width in characters. |
NumericPrecision |
Int32 |
The maximum number of digits in numeric data. The column length in characters for character and date-time data. |
NumericScale |
Int32 |
The column scale or number of digits to the right of the decimal point. |
IsNullable |
Boolean |
Whether the column can contain null. |
Description |
String |
A brief description of the column. |
Ordinal |
Int32 |
The sequence number of the column. |
IsAutoIncrement |
String |
Whether the column value is assigned in fixed increments. |
IsGeneratedColumn |
String |
Whether the column is generated. |
IsHidden |
Boolean |
Whether the column is hidden. |
IsArray |
Boolean |
Whether the column is an array. |
IsReadOnly |
Boolean |
Whether the column is read-only. |
IsKey |
Boolean |
Indicates whether a field returned from sys_tablecolumns is the primary key of the table. |
ColumnType |
String |
The role or classification of the column in the schema. Possible values include SYSTEM, LINKEDCOLUMN, NAVIGATIONKEY, REFERENCECOLUMN, and NAVIGATIONPARENTCOLUMN. |
sys_procedures
Lists the available stored procedures.
The following query retrieves the available stored procedures:
SELECT * FROM sys_procedures
Columns
| Name | Type | Description |
|---|---|---|
CatalogName |
String |
The database containing the stored procedure. |
SchemaName |
String |
The schema containing the stored procedure. |
ProcedureName |
String |
The name of the stored procedure. |
Description |
String |
A description of the stored procedure. |
ProcedureType |
String |
The type of the procedure, such as PROCEDURE or FUNCTION. |
sys_procedureparameters
Describes stored procedure parameters.
The following query returns information about all of the input parameters for the DownloadResource stored procedure:
SELECT * FROM sys_procedureparameters WHERE ProcedureName = 'DownloadResource' AND Direction = 1 OR Direction = 2
To include result set columns in addition to the parameters, set the IncludeResultColumns pseudo column to True:
SELECT * FROM sys_procedureparameters WHERE ProcedureName = 'DownloadResource' AND IncludeResultColumns='True'
Columns
| Name | Type | Description |
|---|---|---|
CatalogName |
String |
The name of the database containing the stored procedure. |
SchemaName |
String |
The name of the schema containing the stored procedure. |
ProcedureName |
String |
The name of the stored procedure containing the parameter. |
ColumnName |
String |
The name of the stored procedure parameter. |
Direction |
Int32 |
An integer corresponding to the type of the parameter: input (1), input/output (2), or output(4). input/output type parameters can be both input and output parameters. |
DataType |
Int32 |
An integer indicating the data type. This value is determined at run time based on the environment. |
DataTypeName |
String |
The name of the data type. |
NumericPrecision |
Int32 |
The maximum precision for numeric data. The column length in characters for character and date-time data. |
Length |
Int32 |
The number of characters allowed for character data. The number of digits allowed for numeric data. |
NumericScale |
Int32 |
The number of digits to the right of the decimal point in numeric data. |
IsNullable |
Boolean |
Whether the parameter can contain null. |
IsRequired |
Boolean |
Whether the parameter is required for execution of the procedure. |
IsArray |
Boolean |
Whether the parameter is an array. |
Description |
String |
The description of the parameter. |
Ordinal |
Int32 |
The index of the parameter. |
Values |
String |
The values you can set in this parameter are limited to those shown in this column. Possible values are comma-separated. |
SupportsStreams |
Boolean |
Whether the parameter represents a file that you can pass as either a file path or a stream. |
IsPath |
Boolean |
Whether the parameter is a target path for a schema creation operation. |
Default |
String |
The value used for this parameter when no value is specified. |
SpecificName |
String |
A label that, when multiple stored procedures have the same name, uniquely identifies each identically-named stored procedure. If there's only one procedure with a given name, its name is simply reflected here. |
IsProvided |
Boolean |
Whether the procedure is added/implemented by , as opposed to being a native Microsoft OneDrive procedure. |
Pseudo-Columns
| Name | Type | Description |
|---|---|---|
IncludeResultColumns |
Boolean |
Whether the output should include columns from the result set in addition to parameters. Defaults to False. |
sys_keycolumns
Describes the primary and foreign keys.
The following query retrieves the primary key for the Files table:
SELECT * FROM sys_keycolumns WHERE IsKey='True' AND TableName='Files'
Columns
| Name | Type | Description |
|---|---|---|
CatalogName |
String |
The name of the database containing the key. |
SchemaName |
String |
The name of the schema containing the key. |
TableName |
String |
The name of the table containing the key. |
ColumnName |
String |
The name of the key column. |
IsKey |
Boolean |
Whether the column is a primary key in the table referenced in the TableName field. |
IsForeignKey |
Boolean |
Whether the column is a foreign key referenced in the TableName field. |
PrimaryKeyName |
String |
The name of the primary key. |
ForeignKeyName |
String |
The name of the foreign key. |
ReferencedCatalogName |
String |
The database containing the primary key. |
ReferencedSchemaName |
String |
The schema containing the primary key. |
ReferencedTableName |
String |
The table containing the primary key. |
ReferencedColumnName |
String |
The column name of the primary key. |
sys_foreignkeys
Describes the foreign keys.
The following query retrieves all foreign keys which refer to other tables:
SELECT * FROM sys_foreignkeys WHERE ForeignKeyType = 'FOREIGNKEY_TYPE_IMPORT'
Columns
| Name | Type | Description |
|---|---|---|
CatalogName |
String |
The name of the database containing the key. |
SchemaName |
String |
The name of the schema containing the key. |
TableName |
String |
The name of the table containing the key. |
ColumnName |
String |
The name of the key column. |
PrimaryKeyName |
String |
The name of the primary key. |
ForeignKeyName |
String |
The name of the foreign key. |
ReferencedCatalogName |
String |
The database containing the primary key. |
ReferencedSchemaName |
String |
The schema containing the primary key. |
ReferencedTableName |
String |
The table containing the primary key. |
ReferencedColumnName |
String |
The column name of the primary key. |
ForeignKeyType |
String |
Designates whether the foreign key is an import (points to other tables) or export (referenced from other tables) key. |
sys_primarykeys
Describes the primary keys.
The following query retrieves the primary keys from all tables and views:
SELECT * FROM sys_primarykeys
Columns
| Name | Type | Description |
|---|---|---|
CatalogName |
String |
The name of the database containing the key. |
SchemaName |
String |
The name of the schema containing the key. |
TableName |
String |
The name of the table containing the key. |
ColumnName |
String |
The name of the key column. |
KeySeq |
String |
The sequence number of the primary key. |
KeyName |
String |
The name of the primary key. |
sys_indexes
Describes the available indexes. By filtering on indexes, you can write more selective queries with faster query response times.
The following query retrieves all indexes that are not primary keys:
SELECT * FROM sys_indexes WHERE IsPrimary='false'
Columns
| Name | Type | Description |
|---|---|---|
CatalogName |
String |
The name of the database containing the index. |
SchemaName |
String |
The name of the schema containing the index. |
TableName |
String |
The name of the table containing the index. |
IndexName |
String |
The index name. |
ColumnName |
String |
The name of the column associated with the index. |
IsUnique |
Boolean |
True if the index is unique. False otherwise. |
IsPrimary |
Boolean |
True if the index is a primary key. False otherwise. |
Type |
Int16 |
An integer value corresponding to the index type: statistic (0), clustered (1), hashed (2), or other (3). |
SortOrder |
String |
The sort order: A for ascending or D for descending. |
OrdinalPosition |
Int16 |
The sequence number of the column in the index. |
sys_connection_props
Returns information on the available connection properties and those set in the connection string.
The following query retrieves all connection properties that have been set in the connection string or set through a default value:
SELECT * FROM sys_connection_props WHERE Value <> ''
Columns
| Name | Type | Description |
|---|---|---|
Name |
String |
The name of the connection property. |
ShortDescription |
String |
A brief description. |
Type |
String |
The data type of the connection property. |
Default |
String |
The default value if one is not explicitly set. |
Values |
String |
A comma-separated list of possible values. A validation error is thrown if another value is specified. |
Value |
String |
The value you set or a preconfigured default. |
Required |
Boolean |
Whether the property is required to connect. |
Category |
String |
The category of the connection property. |
IsSessionProperty |
String |
Whether the property is a session property, used to save information about the current connection. |
Sensitivity |
String |
The sensitivity level of the property. This informs whether the property is obfuscated in logging and authentication forms. |
PropertyName |
String |
A camel-cased truncated form of the connection property name. |
Ordinal |
Int32 |
The index of the parameter. |
CatOrdinal |
Int32 |
The index of the parameter category. |
Hierarchy |
String |
Shows dependent properties associated that need to be set alongside this one. |
Visible |
Boolean |
Informs whether the property is visible in the connection UI. |
ETC |
String |
Various miscellaneous information about the property. |
sys_sqlinfo
Describes the SELECT query processing that the connector can offload to the data source.
Discovering the Data Source's SELECT Capabilities
Below is an example data set of SQL capabilities. Some aspects of SELECT functionality are returned in a comma-separated list if supported; otherwise, the column contains NO.
| Name | Description | Possible Values |
|---|---|---|
AGGREGATE_FUNCTIONS |
Supported aggregation functions. | AVG, COUNT, MAX, MIN, SUM, DISTINCT |
COUNT |
Whether COUNT function is supported. | YES, NO |
IDENTIFIER_QUOTE_OPEN_CHAR |
The opening character used to escape an identifier. | [ |
IDENTIFIER_QUOTE_CLOSE_CHAR |
The closing character used to escape an identifier. | ] |
SUPPORTED_OPERATORS |
A list of supported SQL operators. | =, >, <, >=, <=, <>, !=, LIKE, NOT LIKE, IN, NOT IN, IS NULL, IS NOT NULL, AND, OR |
GROUP_BY |
Whether GROUP BY is supported, and, if so, the degree of support. | NO, NO_RELATION, EQUALS_SELECT, SQL_GB_COLLATE |
STRING_FUNCTIONS |
Supported string functions. | LENGTH, CHAR, LOCATE, REPLACE, SUBSTRING, RTRIM, LTRIM, RIGHT, LEFT, UCASE, SPACE, SOUNDEX, LCASE, CONCAT, ASCII, REPEAT, OCTET, BIT, POSITION, INSERT, TRIM, UPPER, REGEXP, LOWER, DIFFERENCE, CHARACTER, SUBSTR, STR, REVERSE, PLAN, UUIDTOSTR, TRANSLATE, TRAILING, TO, STUFF, STRTOUUID, STRING, SPLIT, SORTKEY, SIMILAR, REPLICATE, PATINDEX, LPAD, LEN, LEADING, KEY, INSTR, INSERTSTR, HTML, GRAPHICAL, CONVERT, COLLATION, CHARINDEX, BYTE |
NUMERIC_FUNCTIONS |
Supported numeric functions. | ABS, ACOS, ASIN, ATAN, ATAN2, CEILING, COS, COT, EXP, FLOOR, LOG, MOD, SIGN, SIN, SQRT, TAN, PI, RAND, DEGREES, LOG10, POWER, RADIANS, ROUND, TRUNCATE |
TIMEDATE_FUNCTIONS |
Supported date/time functions. | NOW, CURDATE, DAYOFMONTH, DAYOFWEEK, DAYOFYEAR, MONTH, QUARTER, WEEK, YEAR, CURTIME, HOUR, MINUTE, SECOND, TIMESTAMPADD, TIMESTAMPDIFF, DAYNAME, MONTHNAME, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, EXTRACT |
REPLICATION_SKIP_TABLES |
Indicates tables skipped during replication. | |
REPLICATION_TIMECHECK_COLUMNS |
A string array containing a list of columns which will be used to check for (in the given order) to use as a modified column during replication. | |
IDENTIFIER_PATTERN |
String value indicating what string is valid for an identifier. | |
SUPPORT_TRANSACTION |
Indicates if the provider supports transactions such as commit and rollback. | YES, NO |
DIALECT |
Indicates the SQL dialect to use. | |
KEY_PROPERTIES |
Indicates the properties which identify the uniform database. | |
SUPPORTS_MULTIPLE_SCHEMAS |
Indicates if multiple schemas may exist for the provider. | YES, NO |
SUPPORTS_MULTIPLE_CATALOGS |
Indicates if multiple catalogs may exist for the provider. | YES, NO |
DATASYNCVERSION |
The Data Sync version needed to access this driver. | Standard, Starter, Professional, Enterprise |
DATASYNCCATEGORY |
The Data Sync category of this driver. | Source, Destination, Cloud Destination |
SUPPORTSENHANCEDSQL |
Whether enhanced SQL functionality beyond what is offered by the API is supported. | TRUE, FALSE |
SUPPORTS_BATCH_OPERATIONS |
Whether batch operations are supported. | YES, NO |
SQL_CAP |
All supported SQL capabilities for this driver. | SELECT, INSERT, DELETE, UPDATE, TRANSACTIONS, ORDERBY, OAUTH, ASSIGNEDID, LIMIT, LIKE, BULKINSERT, COUNT, BULKDELETE, BULKUPDATE, GROUPBY, HAVING, AGGS, OFFSET, REPLICATE, COUNTDISTINCT, JOINS, DROP, CREATE, DISTINCT, INNERJOINS, SUBQUERIES, ALTER, MULTIPLESCHEMAS, GROUPBYNORELATION, OUTERJOINS, UNIONALL, UNION, UPSERT, GETDELETED, CROSSJOINS, GROUPBYCOLLATE, MULTIPLECATS, FULLOUTERJOIN, MERGE, JSONEXTRACT, BULKUPSERT, SUM, SUBQUERIESFULL, MIN, MAX, JOINSFULL, XMLEXTRACT, AVG, MULTISTATEMENTS, FOREIGNKEYS, CASE, LEFTJOINS, COMMAJOINS, WITH, LITERALS, RENAME, NESTEDTABLES, EXECUTE, BATCH, BASIC, INDEX |
PREFERRED_CACHE_OPTIONS |
A string value specifies the preferred cacheOptions. | |
ENABLE_EF_ADVANCED_QUERY |
Indicates if the driver directly supports advanced queries coming from Entity Framework. If not, queries will be handled client side. | YES, NO |
PSEUDO_COLUMNS |
A string array indicating the available pseudo columns. | |
MERGE_ALWAYS |
If the value is true, The Merge Mode is forcibly executed in Data Sync. | TRUE, FALSE |
REPLICATION_MIN_DATE_QUERY |
A select query to return the replicate start datetime. | |
REPLICATION_MIN_FUNCTION |
Allows a provider to specify the formula name to use for executing a server side min. | |
REPLICATION_START_DATE |
Allows a provider to specify a replicate startdate. | |
REPLICATION_MAX_DATE_QUERY |
A select query to return the replicate end datetime. | |
REPLICATION_MAX_FUNCTION |
Allows a provider to specify the formula name to use for executing a server side max. | |
IGNORE_INTERVALS_ON_INITIAL_REPLICATE |
A list of tables which will skip dividing the replicate into chunks on the initial replicate. | |
CHECKCACHE_USE_PARENTID |
Indicates whether the CheckCache statement should be done against the parent key column. | TRUE, FALSE |
CREATE_SCHEMA_PROCEDURES |
Indicates stored procedures that can be used for generating schema files. |
The following query retrieves the operators that can be used in the WHERE clause:
SELECT * FROM sys_sqlinfo WHERE Name = 'SUPPORTED_OPERATORS'
Note that individual tables may have different limitations or requirements on the WHERE clause; refer to the Data Model section for more information.
Columns
| Name | Type | Description |
|---|---|---|
NAME |
String |
A component of SQL syntax, or a capability that can be processed on the server. |
VALUE |
String |
Detail on the supported SQL or SQL syntax. |
sys_identity
Returns information about attempted modifications.
The following query retrieves the Ids of the modified rows in a batch operation:
SELECT * FROM sys_identity
Columns
| Name | Type | Description |
|---|---|---|
Id |
String |
The database-generated ID returned from a data modification operation. |
Batch |
String |
An identifier for the batch. 1 for a single operation. |
Operation |
String |
The result of the operation in the batch: INSERTED, UPDATED, or DELETED. |
Message |
String |
SUCCESS or an error message if the update in the batch failed. |
sys_information
Describes the available system information.
The following query retrieves all columns:
SELECT * FROM sys_information
Columns
| Name | Type | Description |
|---|---|---|
Product |
String |
The name of the product. |
Version |
String |
The version number of the product. |
Datasource |
String |
The name of the datasource the product connects to. |
NodeId |
String |
The unique identifier of the machine where the product is installed. |
HelpURL |
String |
The URL to the product's help documentation. |
License |
String |
The license information for the product. (If this information is not available, the field may be left blank or marked as 'N/A'.) |
Location |
String |
The file path location where the product's library is stored. |
Environment |
String |
The version of the environment or rumtine the product is currently running under. |
DataSyncVersion |
String |
The tier of Sync required to use this connector. |
DataSyncCategory |
String |
The category of Sync functionality (e.g., Source, Destination). |
Data Type Mapping
Data Type Mappings
The connector maps types from the data source to the corresponding data type available in the schema. The table below documents these mappings.
| Microsoft OneDrive (OData V4) | Schema |
|---|---|
Edm.Binary |
binary |
Edm.Boolean |
bool |
Edm.Date |
datetime |
Edm.DateTimeOffset |
datetime |
Edm.Decimal |
decimal |
Edm.Double |
double |
Edm.Guid |
guid |
Edm.Int32 |
int |
Edm.String |
string |
Edm.TimeOfDay |
time |
Advanced Configurations Properties
The advanced configurations properties are the various options that can be used to establish a connection. This section provides a complete list of the options you can configure. Click the links for further details.
| Property | Description |
|---|---|
AuthScheme |
The type of authentication to use when connecting to Microsoft OneDrive. |
| Property | Description |
|---|---|
AzureTenant |
The Microsoft Online tenant being used to access data. If not specified, your default tentant will be used. |
AzureEnvironment |
The Azure Environment to use when establishing a connection. |
| Property | Description |
|---|---|
InitiateOAuth |
Set this property to initiate the process to obtain or refresh the OAuth access token when you connect. |
OAuthClientId |
The client ID assigned when you register your application with an OAuth authorization server. |
OAuthClientSecret |
The client secret assigned when you register your application with an OAuth authorization server. |
OAuthGrantType |
The grant type for the OAuth flow. |
| Property | Description |
|---|---|
SSLServerCert |
The certificate to be accepted from the server when connecting using TLS/SSL. |
| Property | Description |
|---|---|
Location |
A path to the directory that contains the schema files defining tables, views, and stored procedures. |
BrowsableSchemas |
This property restricts the schemas reported to a subset of the available schemas. For example, BrowsableSchemas=SchemaA, SchemaB, SchemaC. |
Tables |
This property restricts the tables reported to a subset of the available tables. For example, Tables=TableA, TableB, TableC. |
Views |
Restricts the views reported to a subset of the available tables. For example, Views=ViewA, ViewB, ViewC. |
| Property | Description |
|---|---|
DirectoryRetrievalDepth |
Specify how many folders deep you want to get results for Folders, Files, SharedResources, and Permissions tables. The resources directly in the root are located at depth 0. The resources one folder deeper are located at depth 1 and so on. You can specify a value of -1 to get all data in a drive no matter the depth they're in. |
DriveId |
The ID of the Drive that you want to use. |
ListGroupDrives |
Choose whether to list your group drives or not when querying Drives table. |
MaxRows |
Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time. |
Other |
These hidden properties are used only in specific use cases. |
PseudoColumns |
This property indicates whether or not to include pseudo columns as columns to the table. |
Timeout |
The value in seconds until the timeout error is thrown, canceling the operation. |
Authentication
This section provides a complete list of authentication properties you can configure.
| Property | Description |
|---|---|
AuthScheme |
Specifies the type of authentication to use when connecting to Microsoft OneDrive. If this property is left blank, the default authentication is used. |
AuthScheme
The type of authentication to use when connecting to Microsoft OneDrive. Currently, only AzureServicePrincipal is supported
Possible Values
AzureServicePrincipal
Data Type
string
Default Value
AzureServicePrincipal
Remarks
- AzureServicePrincipal: Set this to authenticate as a Microsoft Entra service principal.
Azure Authentication
This section provides a complete list of Azure authentication properties you can configure.
| Property | Description |
|---|---|
AzureTenant |
Identifies the Microsoft OneDrive tenant being used to access data. Accepts either the tenant's domain name (for example, contoso.onmicrosoft.com) or its directory (tenant) ID. |
AzureEnvironment |
Specifies the Azure network environment to which you will connect. Must be the same network to which your Azure account was added. |
AzureTenant
The Microsoft Online tenant being used to access data. If not specified, your default tentant will be used.
Data Type
string
Default Value
""
Remarks
The Microsoft Online tenant being used to access data. For instance, "example.onmicrosoft.com". Alternatively, specify the tenant ID. This value is the directory ID in the Azure Portal > Microsoft Entra ID > Properties.
Typically it is not necessary to specify the tenant. This can be automatically determined by Microsoft when using the OAuthGrantType set to CODE (default). However, it may fail in the case that the user belongs to multiple tenants. For instance, if an admin of domain A invites a user of domain B to be a guest user. The user will now belong to both tenants. It is a good practice to specify the tenant, although in general things should normally work without having to specify it.
The AzureTenant is required when setting OAuthGrantType to CLIENT. When using client credentials, there is no user context. The credentials are taken from the context of the app itself. While Microsoft still allows client credentials to be obtained without specifying which tenant, it has a much lower probability of picking the specific tenant you want to work with. For this reason, we require AzureTenant to be explicitly stated for all client credentials connections to ensure you get credentials that are applicable for the domain you intend to connect to.
AzureEnvironment
Specifies the Azure network environment to which you will connect. Must be the same network to which your Azure account was added.
Possible Values
GLOBAL, CHINA, USGOVT, USGOVTDOD
Data Type
string
Default Value
GLOBAL
Remarks
Required if your Azure account is part of a different network than the Global network, such as China, USGOVT, or USGOVTDOD.
OAuth
This section provides a complete list of OAuth properties you can configure.
| Property | Description |
|---|---|
InitiateOAuth |
Set this property to initiate the process to obtain or refresh the OAuth access token when you connect. |
OAuthClientId |
The client ID assigned when you register your application with an OAuth authorization server. |
OAuthClientSecret |
The client secret assigned when you register your application with an OAuth authorization server. |
OAuthGrantType |
The grant type for the OAuth flow. |
InitiateOAuth
Set this property to initiate the process to obtain or refresh the OAuth access token when you connect.
Possible Values
GETANDREFRESH
Data Type
string
Default Value
GETANDREFRESH
Remarks
The following option is supported:
GETANDREFRESH: Indicates that the entire OAuth Flow will be handled by the connector. If no token currently exists, it will be obtained. If a token exists, it will be refreshed when applicable.
OAuthClientId
The client ID assigned when you register your application with an OAuth authorization server.
Data Type
string
Default Value
""
Remarks
As part of registering an OAuth application, you will receive the OAuthClientId value, sometimes also called a consumer key, and a client secret, the OAuthClientSecret.
OAuthClientSecret
The client secret assigned when you register your application with an OAuth authorization server.
Data Type
string
Default Value
""
Remarks
As part of registering an OAuth application, you will receive the client secret, also called a consumer secret. Set the client secret as the OAuthClientSecret property.
You will also receive an OAuthClientId, also called a consumer key.
OAuthAccessToken
Specifies the OAuth access token used to authenticate requests to the data source. This token is issued by the authorization server after a successful OAuth exchange.
Data Type
string
Default Value
""
Remarks
The OAuthAccessToken is a temporary credential that authorizes access to protected resources. It is typically returned by the identity provider after the user or client application completes an OAuth authentication flow. This property is most commonly used in automated workflows or custom OAuth implementations where you want to manage token handling outside of the driver.
The OAuth access token has a server-dependent timeout, limiting user access. This is set using the OAuthExpiresIn property. However, it can be reissued between requests to keep access alive as long as the user keeps working.
If InitiateOAuth is set to REFRESH, we recommend that you also set both OAuthExpiresIn and OAuthTokenTimestamp. The connector uses these properties to determine when the token expires so it can refresh most efficiently. If OAuthExpiresIn and OAuthTokenTimestamp are not specified, the connector refreshes the token immediately.
Access tokens should be treated as sensitive credentials and stored securely. Avoid exposing them in logs, scripts, or configuration files that are not access-controlled.
OAuthSettingsLocation
The location of the settings file where OAuth values are saved when InitiateOAuth is set to GETANDREFRESH or REFRESH. Alternatively, you can hold this location in memory by specifying a value starting with 'memory://'.
Data Type
string
Default Value
%APPDATA%\CData\Acumatica Data Provider\OAuthSettings.txt
Remarks
When InitiateOAuth is set to GETANDREFRESH or REFRESH, the driver saves OAuth values to avoid requiring the user to manually enter OAuth connection properties and to allow the credentials to be shared across connections or processes.
Instead of specifying a file path, you can use memory storage. Memory locations are specified by using a value starting with 'memory://' followed by a unique identifier for that set of credentials (for example, memory://user1). The identifier can be anything you choose but should be unique to the user. Unlike file-based storage, where credentials persist across connections, memory storage loads the credentials into static memory, and the credentials are shared between connections using the same identifier for the life of the process. To persist credentials outside the current process, you must manually store the credentials prior to closing the connection. This enables you to set them in the connection when the process is started again. You can retrieve OAuth property values with a query to the sys_connection_props system table. If there are multiple connections using the same credentials, the properties are read from the previously closed connection.
The default location is "%APPDATA%\CData\Acumatica Data Provider\OAuthSettings.txt" with %APPDATA% set to the user's configuration directory. The default values are
- Windows: "
register://%DSN" - Unix: "%AppData%..."
where DSN is the name of the current DSN used in the open connection.
The following table lists the value of %APPDATA% by OS:
| Platform | %APPDATA% |
|---|---|
Windows |
The value of the APPDATA environment variable |
Linux |
~/.config |
CallbackURL
Identifies the URL users return to after authenticating to Microsoft OneDrive via OAuth. (Custom OAuth applications only.).
Data Type
string
Default Value
""
Remarks
If you created a custom OAuth application, the OAuth authorization server redirects the user to this URL during the authentication process. This value must match the callback URL you specified when you Configured the custom OAuth application.
Scope
Specifies the scope of the authenticating user's access to the application. Generally specified at the time the custom OAuth application is created (if necessary), so that the authenticating user can obtain the the level of access appropriate to their credentials.
Data Type
string
Default Value
""
Remarks
Scopes are set to define what kind of access the authenticating user will have; for example, read, read and write, restricted access to sensitive information. System administrators can use scopes to selectively enable access by functionality or security clearance.
When InitiateOAuth is set to GETANDREFRESH, you must use this property if you want to change which scopes are requested. When InitiateOAuth is set to either REFRESH or OFF, you can use either this property or the Scope input to change which scopes are requested.
OAuthVerifier
Specifies a verifier code returned from the OAuthAuthorizationURL. Used when authenticating to OAuth on a headless server, where a browser can't be launched. Requires both OAuthSettingsLocation and OAuthVerifier to be set.
Data Type
string
Default Value
""
OAuthRefreshToken
Specifies the OAuth refresh token used to request a new access token after the original has expired.
Data Type
string
Default Value
""
Remarks
The refresh token is used to obtain a new access token when the current one expires. It enables seamless authentication for long-running or automated workflows without requiring the user to log in again. This property is especially important in headless, CI/CD, or server-based environments where interactive authentication is not possible.
The refresh token is typically obtained during the initial OAuth exchange by calling the GetOAuthAccessToken stored procedure. After that, it can be set using this property to enable automatic token refresh, or passed to the RefreshOAuthAccessToken stored procedure if you prefer to manage the refresh manually.
When InitiateOAuth is set to REFRESH, the driver uses this token to retrieve a new access token automatically. After the first refresh, the driver saves updated tokens in the location defined by OAuthSettingsLocation, and uses those values for subsequent connections.
The OAuthRefreshToken should be handled securely and stored in a trusted location. Like access tokens, refresh tokens can expire or be revoked depending on the identity provider’s policies.
OAuthExpiresIn
Specifies the duration in seconds, of an OAuth Access Token's lifetime. The token can be reissued to keep access alive as long as the user keeps working.
Data Type
string
Default Value
""
Remarks
The OAuth Access Token is assigned to an authenticated user, granting that user access to the network for a specified period of time. The access token is used in place of the user's login ID and password, which stay on the server.
An access token created by the server is only valid for a limited time. OAuthExpiresIn is the number of seconds the token is valid from when it was created. For example, a token generated at 2024-01-29 20:00:00 UTC that expires at 2024-01-29 21:00:00 UTC (an hour later) would have an OAuthExpiresIn value of 3600, no matter what the current time is.
To determine how long the user has before the Access Token will expire, use OAuthTokenTimestamp.
OAuthTokenTimestamp
Displays a Unix epoch timestamp in milliseconds that shows how long ago the current Access Token was created.
Data Type
string
Default Value
""
Remarks
The OAuth Access Token is assigned to an authenticated user, granting that user access to the network for a specified period of time. The access token is used in place of the user's login ID and password, which stay on the server.
An access token created by the server is only valid for a limited time. OAuthTokenTimestamp is the Unix timestamp when the server created the token. For example, OAuthTokenTimestamp=1706558400 indicates the OAuthAccessToken was generated by the server at 2024-01-29 20:00:00 UTC.
JWT OAuth
This section provides a complete list of JWT OAuth properties you can configure.
| Property | Description |
|---|---|
OAuthJWTCert |
Supplies the name of the client certificate's JWT Certificate store. |
OAuthJWTCertType |
Identifies the type of key store containing the JWT Certificate. |
OAuthJWTCertPassword |
Provides the password for the OAuth JWT certificate used to access a password-protected certificate store. If the certificate store does not require a password, leave this property blank. |
OAuthJWTCertSubject |
Identifies the subject of the OAuth JWT certificate used to locate a matching certificate in the store. Supports partial matches and the wildcard '*' to select the first certificate. |
OAuthJWTCert
Supplies the name of the client certificate's JWT Certificate store.
Data Type
string
Default Value
""
Remarks
The OAuthJWTCertType field specifies the type of the certificate store specified in OAuthJWTCert. If the store is password-protected, use OAuthJWTCertPassword to supply the password..
OAuthJWTCert is used in conjunction with the OAuthJWTCertSubject field in order to specify client certificates.
If OAuthJWTCert has a value, and OAuthJWTCertSubject is set, the Microsoft OneDrive connector initiates a search for a certificate. For further information, see OAuthJWTCertSubject.
Designations of certificate stores are platform-dependent.
Notes
-
The most common User and Machine certificate stores in Windows include:
-
MY: A certificate store holding personal certificates with their
associated private keys.
-
CA: Certifying authority certificates.
-
ROOT: Root certificates.
-
SPC: Software publisher certificates.
- In Java, the certificate store normally is a file containing certificates and optional private keys.
- When the certificate store type is PFXFile, this property must be set to the name of the file.
- When the type is PFXBlob, the property must be set to the binary contents of a PFX file (i.e. PKCS12 certificate store).
-
OAuthJWTCertType
Identifies the type of key store containing the JWT Certificate.
Possible Values
USER, MACHINE, PFXFILE, PFXBLOB, JKSFILE, JKSBLOB, PEMKEY_FILE, PEMKEY_BLOB, PUBLIC_KEY_FILE, PUBLIC_KEY_BLOB, SSHPUBLIC_KEY_FILE, SSHPUBLIC_KEY_BLOB, P7BFILE, PPKFILE, XMLFILE, XMLBLOB, BCFKSFILE, BCFKSBLOB
Data Type
string
Default Value
USER
Remarks
| Value | Description | Notes |
|---|---|---|
| USER | A certificate store owned by the current user. | Only available in Windows. |
| MACHINE | A machine store. | Not available in Java or other non-Windows environments. |
| PFXFILE | A PFX (PKCS12) file containing certificates. | |
| PFXBLOB | A string (base-64-encoded) representing a certificate store in PFX (PKCS12) format. | |
| JKSFILE | A Java key store (JKS) file containing certificates. | Only available in Java. |
| JKSBLOB | A string (base-64-encoded) representing a certificate store in Java key store (JKS) format. | Only available in Java. |
| PEMKEY_FILE | A PEM-encoded file that contains a private key and an optional certificate. | |
| PEMKEY_BLOB | A string (base64-encoded) that contains a private key and an optional certificate. | |
| PUBLIC_KEY_FILE | A file that contains a PEM- or DER-encoded public key certificate. | |
| PUBLIC_KEY_BLOB | A string (base-64-encoded) that contains a PEM- or DER-encoded public key certificate. | |
| SSHPUBLIC_KEY_FILE | A file that contains an SSH-style public key. | |
| SSHPUBLIC_KEY_BLOB | A string (base-64-encoded) that contains an SSH-style public key. | |
| P7BFILE | A PKCS7 file containing certificates. | |
| PPKFILE | A file that contains a PPK (PuTTY Private Key). | |
| XMLFILE | A file that contains a certificate in XML format. | |
| XMLBLOB | Astring that contains a certificate in XML format. | |
| BCFKSFILE | A file that contains an Bouncy Castle keystore. | |
| BCFKSBLOB | A string (base-64-encoded) that contains a Bouncy Castle keystore. |
OAuthJWTCertPassword
Provides the password for the OAuth JWT certificate used to access a password-protected certificate store. If the certificate store does not require a password, leave this property blank.
Data Type
string
Default Value
""
Remarks
This property specifies the password needed to open a password-protected certificate store. To determine if a password is necessary, refer to the documentation or configuration for your specific certificate store.
OAuthJWTCertSubject
Identifies the subject of the OAuth JWT certificate used to locate a matching certificate in the store. Supports partial matches and the wildcard '*' to select the first certificate.
Data Type
string
Default Value
*
Remarks
The value of this property is used to locate a matching certificate in the store. The search process works as follows:
- If an exact match for the subject is found, the corresponding certificate is selected.
- If no exact match is found, the store is searched for certificates whose subjects contain the property value.
- If no match is found, no certificate is selected.
You can set the value to '*' to automatically select the first certificate in the store. The certificate subject is a comma-separated list of distinguished name fields and values. For example: CN=www.server.com, OU=test, C=US, E=example@jbexample.com. Common fields include:
| Field | Meaning |
|---|---|
CN |
Common Name. This is commonly a host name like www.server.com. |
O |
Organization |
OU |
Organizational Unit |
L |
Locality |
S |
State |
C |
Country |
E |
Email Address |
If a field value contains a comma, enclose it in quotes. For example: "O=ACME, Inc.".
SSL
This section provides a complete list of SSL properties you can configure.
| Property | Description |
|---|---|
SSLServerCert |
Specifies the certificate to be accepted from the server when connecting using TLS/SSL. |
SSLServerCert
Specifies the certificate to be accepted from the server when connecting using TLS/SSL.
Data Type
string
Default Value
""
Remarks
If using a TLS/SSL connection, this property can be used to specify the TLS/SSL certificate to be accepted from the server. Any other certificate that is not trusted by the machine is rejected.
This property can take the following forms:
| Description | Example |
|---|---|
| A full PEM Certificate (example shortened for brevity) | -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE----- |
| A path to a local file containing the certificate | C:\\cert.cer |
| The public key (example shortened for brevity) | -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY----- |
| The MD5 Thumbprint (hex values can also be either space or colon separated) | ecadbdda5a1529c58a1e9e09828d70e4 |
| The SHA1 Thumbprint (hex values can also be either space or colon separated) | 34a929226ae0819f2ec14b4a3d904f801cbb150d |
If not specified, any certificate trusted by the machine is accepted.
Certificates are validated as trusted by the machine based on the System's trust store. The trust store used is the 'javax.net.ssl.trustStore' value specified for the system. If no value is specified for this property, Java's default trust store is used (for example, JAVA_HOME\lib\security\cacerts).
Use '*' to signify to accept all certificates. Note that this is not recommended due to security concerns.
Schema
This section provides a complete list of schema properties you can configure.
| Property | Description |
|---|---|
Location |
Specifies the location of a directory containing schema files that define tables, views, and stored procedures. Depending on your service's requirements, this may be expressed as either an absolute path or a relative path. |
BrowsableSchemas |
Optional setting that restricts the schemas reported to a subset of all available schemas. For example, BrowsableSchemas=SchemaA, SchemaB, SchemaC. |
Tables |
Optional setting that restricts the tables reported to a subset of all available tables. For example, Tables=TableA, TableB, TableC. |
Views |
Optional setting that restricts the views reported to a subset of the available tables. For example, Views=ViewA, ViewB, ViewC. |
Location
Specifies the location of a directory containing schema files that define tables, views, and stored procedures. Depending on your service's requirements, this may be expressed as either an absolute path or a relative path.
Data Type
string
Default Value
%APPDATA%\OneDrive Data Provider\Schema
Remarks
The Location property is only needed if you want to either customize definitions (for example, change a column name, ignore a column, etc.) or extend the data model with new tables, views, or stored procedures.
If left unspecified, the default location is %APPDATA%\OneDrive Data Provider\Schema, where %APPDATA% is set to the user's configuration directory:
| Platform | %APPDATA% |
|---|---|
Windows |
The value of the APPDATA environment variable |
Mac |
~/Library/Application Support |
Linux |
~/.config |
BrowsableSchemas
Optional setting that restricts the schemas reported to a subset of all available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC.
Data Type
string
Default Value
""
Remarks
Listing all available database schemas can take extra time, thus degrading performance. Providing a list of schemas in the connection string saves time and improves performance.
Tables
Optional setting that restricts the tables reported to a subset of all available tables. For example, Tables=TableA,TableB,TableC.
Data Type
string
Default Value
""
Remarks
Listing all available tables from some databases can take extra time, thus degrading performance. Providing a list of tables in the connection string saves time and improves performance.
If there are lots of tables available and you already know which ones you want to work with, you can use this property to restrict your viewing to only those tables. To do this, specify the tables you want in a comma-separated list. Each table should be a valid SQL identifier with any special characters escaped using square brackets, double-quotes or backticks. For example, Tables=TableA,[TableB/WithSlash],WithCatalog.WithSchema.`TableC With Space`.
Note
If you are connecting to a data source with multiple schemas or catalogs, you must specify each table you want to view by its fully qualified name. This avoids ambiguity between tables that may exist in multiple catalogs or schemas.
Views
Optional setting that restricts the views reported to a subset of the available tables. For example, Views=ViewA,ViewB,ViewC.
Data Type
string
Default Value
""
Remarks
Listing all available views from some databases can take extra time, thus degrading performance. Providing a list of views in the connection string saves time and improves performance.
If there are lots of views available and you already know which ones you want to work with, you can use this property to restrict your viewing to only those views. To do this, specify the views you want in a comma-separated list. Each view should be a valid SQL identifier with any special characters escaped using square brackets, double-quotes or backticks. For example, Views=ViewA,[ViewB/WithSlash],WithCatalog.WithSchema.`ViewC With Space`.
Note
If you are connecting to a data source with multiple schemas or catalogs, you must specify each view you want to examine by its fully qualified name. This avoids ambiguity between views that may exist in multiple catalogs or schemas.
Miscellaneous
This section provides a complete list of miscellaneous properties you can configure.
| Property | Description |
|---|---|
DirectoryRetrievalDepth |
This property specifies how many folder levels deep to retrieve results for the Folders, Files, SharedResources, and Permissions tables. |
DriveId |
Specifies the unique identifier (Id) of the Microsoft OneDrive drive to query or interact with. Use this property to target a specific drive when multiple drives are available for the authenticated user. |
IncludeFoldersWithFiles |
Specifies whether folders should be included in the results when retrieving files. |
ListGroupDrives |
Specifies whether to include group (shared) drives when querying the Drives table. |
MaxRows |
Specifies the maximum rows returned for queries without aggregation or GROUP BY. |
Other |
Specifies additional hidden properties for specific use cases. These are not required for typical provider functionality. Use a semicolon-separated list to define multiple properties. |
Pagesize |
The maximum number of results to return per page from Microsoft OneDrive. |
PseudoColumns |
Specifies the pseudocolumns to expose as table columns. Use the format 'TableName=ColumnName;TableName=ColumnName'. The default is an empty string, which disables this property. |
Timeout |
Specifies the maximum time, in seconds, that the provider waits for a server response before throwing a timeout error. The default is 60 seconds. Set to 0 to disable the timeout. |
UserDefinedViews |
Specifies a filepath to a JSON configuration file defining custom views. The provider automatically detects and uses the views specified in this file. |
DirectoryRetrievalDepth
Specify how many folders deep you want to get results for Folders, Files, SharedResources, and Permissions tables. The resources directly in the root are located at depth 0. The resources one folder deeper are located at depth 1 and so on. You can specify a value of -1 to get all data in a drive no matter the depth they're in.
Data Type
string
Default Value
5
Remarks
This property must be set in the connection string or the driver will use a default of DirectoryRetrievalDepth=5.
DriveId
Specifies the unique identifier (Id) of the Microsoft OneDrive drive to query or interact with. Use this property to target a specific drive when multiple drives are available for the authenticated user.
Data Type
string
Default Value
""
Remarks
By default, the provider uses the main drive of the logged-in user.
To list all available Drive Ids, query the Drives table.
IncludeFoldersWithFiles
Specifies whether folders should be included in the results when retrieving files.
Data Type
bool
Default Value
false
Remarks
By default, folders are not included in the files view.
Set this property to True to include folders along with files. Use the ResourceType column to distinguish between files and folders.
ListGroupDrives
Specifies whether to include group (shared) drives when querying the Drives table.
Data Type
bool
Default Value
false
Remarks
By default, Microsoft OneDrive will only include the user's drives.
If set to True, Microsoft OneDrive will include group drives in the results.
MaxRows
Specifies the maximum rows returned for queries without aggregation or GROUP BY.
Data Type
int
Default Value
-1
Remarks
This property sets an upper limit on the number of rows the connector returns for queries that do not include aggregation or GROUP BY clauses. This limit ensures that queries do not return excessively large result sets by default.
When a query includes a LIMIT clause, the value specified in the query takes precedence over the MaxRows setting. If MaxRows is set to "-1", no row limit is enforced unless a LIMIT clause is explicitly included in the query.
This property is useful for optimizing performance and preventing excessive resource consumption when executing queries that could otherwise return very large datasets.
Other
Specifies additional hidden properties for specific use cases. These are not required for typical provider functionality. Use a semicolon-separated list to define multiple properties.
Data Type
string
Default Value
""
Remarks
This property allows advanced users to configure hidden properties for specialized scenarios. These settings are not required for normal use cases but can address unique requirements or provide additional functionality. Multiple properties can be defined in a semicolon-separated list.
Note
It is strongly recommended to set these properties only when advised by the support team to address specific scenarios or issues.
Specify multiple properties in a semicolon-separated list.
Integration and Formatting
| Property | Description |
|---|---|
DefaultColumnSize |
Sets the default length of string fields when the data source does not provide column length in the metadata. The default value is 2000. |
ConvertDateTimeToGMT=True |
Converts date-time values to GMT, instead of the local time of the machine. The default value is False (use local time). |
RecordToFile=filename |
Records the underlying socket data transfer to the specified file. |
Pagesize
The maximum number of results to return per page from Microsoft OneDrive.
Data Type
int
Default Value
1000
Remarks
The Pagesize property affects the maximum number of results to return per page from Microsoft OneDrive. While the data source optimizes the default page size for most use cases, you may need to adjust this value depending on the specific object or service endpoint you are querying. Increasing the page size may improve performance, but it could also result in higher memory consumption per page.
The maximum allowed value for pagesize for Users, Groups and GroupMembers views is 999. For others it is 5000.
PseudoColumns
Specifies the pseudocolumns to expose as table columns. Use the format 'TableName=ColumnName;TableName=ColumnName'. The default is an empty string, which disables this property.
Data Type
string
Default Value
""
Remarks
This property allows you to define which pseudocolumns the connector exposes as table columns.
To specify individual pseudocolumns, use the following format: "Table1=Column1;Table1=Column2;Table2=Column3"
To include all pseudocolumns for all tables use: "*=*"
Timeout
Specifies the maximum time, in seconds, that the provider waits for a server response before throwing a timeout error. The default is 60 seconds. Set to 0 to disable the timeout.
Data Type
int
Default Value
60
Remarks
This property controls the maximum time, in seconds, that the connector waits for an operation to complete before canceling it. If the timeout period expires before the operation finishes, the connector cancels the operation and throws an exception.
The timeout applies to each individual communication with the server rather than the entire query or operation. For example, a query could continue running beyond the timeout value if each paging call completes within the timeout limit.
Setting this property to 0 disables the timeout, allowing operations to run indefinitely until they succeed or fail due to other conditions such as server-side timeouts, network interruptions, or resource limits on the server. Use this property cautiously to avoid long-running operations that could degrade performance or result in unresponsive behavior.
UserDefinedViews
Specifies a filepath to a JSON configuration file defining custom views. The provider automatically detects and uses the views specified in this file.
Data Type
string
Default Value
""
Remarks
This property allows you to define and manage custom views through a JSON-formatted configuration file called UserDefinedViews.json. These views are automatically recognized by the connector and enable you to execute custom SQL queries as if they were standard database views. The JSON file defines each view as a root element with a child element called "query", which contains the SQL query for the view. For example:
{
"MyView": {
"query": "SELECT * FROM Files WHERE MyColumn = 'value'"
},
"MyView2": {
"query": "SELECT * FROM MyTable WHERE Id IN (1,2,3)"
}
}
You can define multiple views in a single file and specify the filepath using this property. For example: UserDefinedViews=C:\Path\To\UserDefinedViews.json. When you use this property, only the specified views are seen by the connector.
Refer to User Defined Views for more information.