Skip to main content

Microsoft OneDrive Connector

Microsoft OneDrive Interact with files and drives inside your Microsoft OneDrive tenant

Connections

OAuth 2.0

OAuth 2.0 Connectivity for Microsoft One Drive

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
Authorize URLThe OAuth 2.0 Authorization URL for Microsoft One Drivehttps://login.microsoftonline.com/common/oauth2/v2.0/authorize
Token URLThe OAuth 2.0 Token URL for Microsoft One Drivehttps://login.microsoftonline.com/common/oauth2/v2.0/token
Client IDGenerate this value when you create your Active Directory App
Client SecretGenerate this value when you create your Active Directory App

Triggers

Webhook

Receive and validate webhook requests from OneDrive for webhooks you configure.

Actions

Create a Subscription

Create a Subscription to notify you of changes to a resource

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
Change TypeThe type of changes that should generate notifications for this subscription. OneDrive only supports updated.updated
Notification URLThe URL that notifications should be delivered to, if required for the specified notificationType.
ResourceThe relative path of the subscription within the drive. Read-only.
Expiration Date TimeThe date and time when the subscription will expire if not updated or renewed.
Client StateAn optional string value that is passed back in the notification message for this subscription.
Allow DuplicatesEnable to allow more than one subscription per endpointfalse

Delete all Instanced Subscriptions

Delete all existing subscriptions for this instance

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive

Delete a Subscription

Delete a Subscription by ID

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
Subscription IdThe Id the subscription to delete

Delete File

Delete the information and metadata of a file by path

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
DriveProvide an identifier for the drive. This value should be an Id.
Item IdProvide an Id for for the item.

Download File

Download a file from the current user's drive

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
File LocationProvide a leading slash followed by the location of your file within the current user's drive.
TimeoutThe amount of time the client will await a response.

Get Drive

Get the information and metadata of a drive

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
DriveProvide an identifier for the drive. This value should be an Id.

Get Item

Returns the information and metadata of an existing item

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
DriveProvide an identifier for the drive. This value should be an Id.
Item IdProvide an Id for for the item.

Get Item by Path

Get the information and metadata of an item with your path in Sharepoint

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
File LocationProvide a leading slash, followed by the location and name of your file.

Get Site

Get the information and metadata of a given Site

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
SiteProvide an Id for the site.

List Changes

Track changes in a driveItem and its children over time.

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
URL to fetch for deltaThe URL to track changes in a driveItem and its children over time. You can also paste here the @odata.nextLink or @odata.deltaLink from a previous response to resume tracking changes./drives/{drive-id}/root/delta
$select ParameterFilters properties (columns). https://learn.microsoft.com/en-us/graph/query-parameters?tabs=http#select-parameter
$expand ParameterRetrieves related resources. https://learn.microsoft.com/en-us/graph/query-parameters?tabs=http#expand-parameter
$top ParameterSets the page size of results. https://learn.microsoft.com/en-us/graph/query-parameters?tabs=http#top-parameter

List Children

Returns all child elements on a given drive item

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
DriveProvide an identifier for the drive. This value should be an Id.
Item IdProvide an Id for for the item.
Page LimitEnter a number amount for the page size.
Page TokenEnter the token for the desired page.

List Drives By Group

Returns a list of all drives available to the given group

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
GroupProvide an Id for the group.
Page LimitEnter a number amount for the page size.
Page TokenEnter the token for the desired page.

List Drives By Site

Returns a list of all drives available to the given site

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
SiteProvide an Id for the site.
Page LimitEnter a number amount for the page size.
Page TokenEnter the token for the desired page.

List Drives By User

Returns a list of all drives available to the given user

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
UserProvide a user id.
Page LimitEnter a number amount for the page size.
Page TokenEnter the token for the desired page.

List Files Shared With Me

Returns all files shared with your account

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
Page LimitEnter a number amount for the page size.
Page TokenEnter the token for the desired page.

List Groups

Returns a list of all groups the user has access to

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
Page TokenEnter the token for the desired page.
Page LimitEnter a number amount for the page size.

List Items In Directory

Returns a list of all items in the given directory

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
DirectoryProvide the directory of the file. If you want to access the root, just supply a forward slash.
Page LimitEnter a number amount for the page size.
Page TokenEnter the token for the desired page.

List My Drives

Returns a list of all drives available to the current user

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
Page LimitEnter a number amount for the page size.
Page TokenEnter the token for the desired page.

List Shared

List shared items in SharePoint or OneDrive

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive

List Sites

Returns a list of all sites available to the current user

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
Page LimitEnter a number amount for the page size.
Page TokenEnter the token for the desired page.

List Subscriptions

List all available Subscriptions

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
Show Instance SubscriptionsShow only subscriptions for this Instance's Subscriptionstrue

Move File

Move the given file to a new location

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
Current LocationProvide a leading slash, followed by the location and name of the file
New LocationProvide a leading slash, followed by the new location of the file.
New File NameProvide a new name for the given file.

Raw Request

Send raw HTTP request to Microsoft Onedrive

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
URLInput the path only (/me/drive), The base URL is already included (https://graph.microsoft.com/v1.0). For example, to connect to https://graph.microsoft.com/v1.0/me/drive, only /me/drive is entered in this field.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Debug RequestEnabling this flag will log out the current request.false
Retry Delay (ms)The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.false
Max Retry CountThe maximum number of retries to attempt. Specify 0 for no retries.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.false

Search Drive

Search the current drive for a string of text

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
SearchProvide a text to search the current drive with.

Search Users

Find the information and metadata of an existing user

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
UserProvide a user id.

Update File

Update the information and metadata of a given file

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
File LocationProvide a leading slash, followed by the location and name of the file.
New File NameProvide a new name for the given file.
New File PathEnter a path to the desired sharepoint resource. You do not need to include the root directory.
Optional ValuesProvide optional key-value pairs to be used in the request body.

Upload File

Upload a file to the user's connected drive

InputCommentsDefault
ConnectionSupply the desired connection for Microsoft One Drive
File LocationProvide a leading slash, followed by the location and name of the new file.
File DataProvide a value for the file.
TimeoutThe amount of time the client will await a response.