OneDrive Connector
Documentation
Version: 9
Documentation
Endpoint

Get User Drives


Name

get_user_drives

Description

List all drives which are either shared with you (i.e. via shared files or folders) or you have full access to that drive. [API reference]

Related Tables

UserDrives

Parameters

Parameter Label Required Options Description
OrderBy Order By NO
Option Value
None
AscendingOrder SomeColumn asc
DescendingOrder SomeColumn desc
Order the specified column by ascending or descending order [API reference]
SearchCriteria Search Criteria NO
Option Value
None
Equal Search SomeColumn eq 'SomeValue'
Substring Search substringof(SomeField,'abc')
Starts With startswith(SomeField, 'abc')
Data filter (e.g. somecolumn -eq 'somevalue') [API reference]
PageSize Page Size NO The number of records to include in each page of results [API reference]

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
DriveId DT_WSTR nvarchar(255) 255 False
DriveName DT_WSTR nvarchar(255) 255 False
DriveType DT_WSTR nvarchar(255) 255 False
Description DT_WSTR nvarchar(500) 500 False
WebUrl DT_WSTR nvarchar(500) 500 False
CreatedDateTime DT_DBTIMESTAMP datetime False
LastModifiedDateTime DT_DBTIMESTAMP datetime False
CreatedByByDisplayName DT_WSTR nvarchar(500) 500 False
LastModifiedByDisplayName DT_WSTR nvarchar(500) 500 False
LastModifiedByEmail DT_WSTR nvarchar(500) 500 False
LastModifiedById DT_WSTR nvarchar(500) 500 False
QuotaDeleted DT_I8 bigint False
QuotaRemaining DT_I8 bigint False
QuotaTotal DT_I8 bigint False
QuotaUsed DT_I8 bigint False
QuotaState DT_WSTR nvarchar(50) 50 False
UserId DT_WSTR nvarchar(255) 255 False
UserDisplayName DT_WSTR nvarchar(500) 500 False
UserDescription DT_WSTR nvarchar(4000) 4000 False
UserBusinessPhones DT_WSTR nvarchar(4000) 4000 False
UserGivenName DT_WSTR nvarchar(80) 80 False
UserJobTitle DT_WSTR nvarchar(200) 200 False
UserMail DT_WSTR nvarchar(200) 200 False
UserMobilePhone DT_WSTR nvarchar(500) 500 False
UserOfficeLocation DT_WSTR nvarchar(500) 500 False
UserPreferredLanguage DT_WSTR nvarchar(100) 100 False
UserSurName DT_WSTR nvarchar(80) 80 False
UserPrincipalName DT_WSTR nvarchar(200) 200 False
UserCreatedDateTime DT_DBTIMESTAMP datetime False
UserDeletedDateTime DT_DBTIMESTAMP datetime False
If the column you are looking for is missing, consider customizing OneDrive Connector.

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime.

Examples

SSIS

Use OneDrive Connector in API Source component to read data or in API Destination component to read/write data:

Read from UserDrives table using API Destination

This Endpoint belongs to UserDrives table, therefore you cannot work with it directly. Use this table and table-operation pair instead:

OneDrive
UserDrives
Select
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

Get user drives

SELECT * FROM get_user_drives

get_user_drives endpoint belongs to UserDrives table(s), and can therefore be used via those table(s).

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

Get user drives

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM get_user_drives';

EXEC (@MyQuery) AT [LS_TO_ONEDRIVE_IN_GATEWAY];

get_user_drives endpoint belongs to UserDrives table(s), and can therefore be used via those table(s).