> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft OneDrive

> How to set up the Microsoft OneDrive connector, plus the actions that are available.

![Microsoft OneDrive](https://stackone-logos.com/api/onedrive/filled/svg)

v2.0.0[See changelog](https://docs.stackone.com/connectors/microsoftonedrive/changelog.md)

[46 actions](#actions) · 2 auth methods

Storage
Documents
IAM

## Getting Started

**1. Create or Select a Project**

Set up a new project or select an existing one. See [Organizations & Projects](https://docs.stackone.com/gateway/concepts/organizations-and-projects.md).

**2. Configure the Connector**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

> [card] [OAuth 2.0 · Connector Profile](https://docs.stackone.com/connectors/microsoftonedrive/guides/connector-profile/oauth-2-0.md)
>
> Authenticate with your Microsoft Entra ID account to connect Microsoft OneDrive. You'll need to register an Azure applic...

> [card] [OAuth 2.0 (Client Credentials) · Connector Profile](https://docs.stackone.com/connectors/microsoftonedrive/guides/connector-profile/oauth-2-0-client-credentials.md)
>
> App-only access to every OneDrive and SharePoint document library in the tenant, without a signed-in user. Actions that...

**3. Link an Account**

Link an account [from the dashboard](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md#link-from-the-dashboard) (or via [StackOne Hub](https://docs.stackone.com/embed/account-linking/overview)).

See the guide for the authentication type chosen in the Connector Profile:

> [card] [OAuth 2.0 · Link Account](https://docs.stackone.com/connectors/microsoftonedrive/guides/link-account/oauth-2-0.md)

> [card] [OAuth 2.0 (Client Credentials) · Link Account](https://docs.stackone.com/connectors/microsoftonedrive/guides/link-account/oauth-2-0-client-credentials.md)

**4. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Actions

Authentication type

Select all
|
Clear

OAuth 2.0

OAuth 2.0 (Client Credentials)

No auth methods found

Scopes

Select all
|
Clear

Files.Read

Files.Read.All

Files.ReadWrite

Files.ReadWrite.All

User.Read

User.Read.All

User.ReadBasic.All

User.ReadWrite.All

No scopes found

46 actions

ActionDescriptionRequired scopes

List Unified Files`microsoftonedrive_unified_list_files`

List unified files in Microsoft OneDrive with StackOne unified filters

`Files.Read`

Get Unified File`microsoftonedrive_unified_get_file`

Get a unified file by ID from Microsoft OneDrive with metadata mapped to the StackOne unified schema

`Files.Read`

Download Unified File`microsoftonedrive_unified_download_file`

Download the content of a unified file from Microsoft OneDrive

`Files.Read`

Upload Unified File`microsoftonedrive_unified_upload_file`

Upload a new file to Microsoft OneDrive using the StackOne unified upload schema

`Files.ReadWrite`

List Unified Folders`microsoftonedrive_unified_list_folders`

List unified folders from the root of the authenticated user's OneDrive

`Files.Read`

Get Unified Folder`microsoftonedrive_unified_get_folder`

Get a unified folder by ID from Microsoft OneDrive

`Files.Read`

List Unified Drives`microsoftonedrive_unified_list_drives`

List unified drives available to the authenticated user in Microsoft OneDrive

`Files.Read`

Get Unified Drive`microsoftonedrive_unified_get_drive`

Get a unified drive by ID from Microsoft OneDrive

`Files.Read`

List Current User's Drives`microsoftonedrive_list_drives`

Retrieve the list of drive resources available for the authenticated user

`Files.Read`

List User's Drives`microsoftonedrive_list_user_drives`

Retrieve the list of drive resources available for a specific user

`Files.Read``Files.Read.All`

Get Drive`microsoftonedrive_get_drive`

Get metadata about a specific drive

`Files.Read``Files.Read.All`

Get Default Drive`microsoftonedrive_get_default_drive`

Get the user's default OneDrive

`Files.Read`

Get Drive Root Folder`microsoftonedrive_get_drive_root`

Get the root folder of a drive

`Files.Read``Files.Read.All`

List Drive Root Children`microsoftonedrive_list_drive_children`

List children of the root folder of a drive

`Files.Read``Files.Read.All`

Search Drive Items`microsoftonedrive_search_drive`

Search for items in a drive

`Files.Read``Files.Read.All`

List Followed Items`microsoftonedrive_list_followed_items`

List items the user is following

`Files.Read`

Get Special Folder`microsoftonedrive_get_special_folder`

Access a special folder by its canonical name

`Files.Read``Files.Read.All`

Search Drive Items`microsoftonedrive_search_drive_items`

Search for items in a drive

`Files.Read``Files.Read.All`

List Drive Item Children`microsoftonedrive_list_drive_item_children`

List children of a driveItem

`Files.Read``Files.Read.All`

Get Drive Item`microsoftonedrive_get_drive_item`

Retrieve metadata for a driveItem in a drive

`Files.Read``Files.Read.All`

Get Drive Item By Path`microsoftonedrive_get_drive_item_by_path`

Retrieve a driveItem by file system path

`Files.Read``Files.Read.All`

Create Folder`microsoftonedrive_create_folder`

Create a new folder in a drive

`Files.ReadWrite``Files.ReadWrite.All`

Update Drive Item`microsoftonedrive_update_drive_item`

Update the properties of a driveItem

`Files.ReadWrite``Files.ReadWrite.All`

Delete Drive Item`microsoftonedrive_delete_drive_item`

Delete a driveItem

`Files.ReadWrite``Files.ReadWrite.All`

Copy Drive Item`microsoftonedrive_copy_drive_item`

Create a copy of a driveItem including any children

`Files.ReadWrite``Files.ReadWrite.All`

Move Drive Item`microsoftonedrive_move_drive_item`

Move a driveItem to a new parent item

`Files.ReadWrite``Files.ReadWrite.All`

Download Drive Item`microsoftonedrive_download_drive_item`

Get a download link for a driveItem's file content

`Files.Read``Files.Read.All`

Upload File To Drive`microsoftonedrive_upload_drive_item`

Upload a new file to a drive location

`Files.ReadWrite``Files.ReadWrite.All`

Follow Drive Item`microsoftonedrive_follow_drive_item`

Follow a driveItem

`Files.Read`

Unfollow Drive Item`microsoftonedrive_unfollow_drive_item`

Unfollow a driveItem

`Files.Read`

Restore Drive Item`microsoftonedrive_restore_drive_item`

Restore a deleted driveItem from the recycle bin

`Files.ReadWrite.All`

Get Drive Item Thumbnails`microsoftonedrive_get_drive_item_thumbnails`

Get thumbnail images (small, medium, large) for a driveItem. Use this to show an image preview; pair with download\_drive...

`Files.Read``Files.Read.All`

Check In Drive Item`microsoftonedrive_checkin_drive_item`

Check in a checked out driveItem

`Files.ReadWrite``Files.ReadWrite.All`

Check Out Drive Item`microsoftonedrive_checkout_drive_item`

Check out a driveItem

`Files.ReadWrite``Files.ReadWrite.All`

Create Sharing Link`microsoftonedrive_create_sharing_link`

Create a sharing link for a driveItem

`Files.ReadWrite``Files.ReadWrite.All`

List Item Versions`microsoftonedrive_list_item_versions`

Retrieve the versions of a file

`Files.Read``Files.Read.All`

Get Item Version`microsoftonedrive_get_item_version`

Retrieve metadata for a specific version of a driveItem

`Files.Read``Files.Read.All`

Download Item Version`microsoftonedrive_download_item_version`

Download the contents of a specific version

`Files.Read``Files.Read.All`

List Item Permissions`microsoftonedrive_list_item_permissions`

List permissions on a driveItem

`Files.Read``Files.Read.All`

Get Item Permission`microsoftonedrive_get_item_permission`

Get a specific permission on a driveItem

`Files.Read``Files.Read.All`

Send Sharing Invitation`microsoftonedrive_add_permission`

Send a sharing invitation to users

`Files.ReadWrite``Files.ReadWrite.All`

Update Item Permission`microsoftonedrive_update_item_permission`

Update a permission on a driveItem

`Files.ReadWrite``Files.ReadWrite.All`

Delete Item Permission`microsoftonedrive_delete_item_permission`

Remove a permission from a driveItem

`Files.ReadWrite``Files.ReadWrite.All`

List Users`microsoftonedrive_list_users`

Retrieve a list of user objects. By default, returns a limited set of properties (businessPhones, displayName, givenName...

`User.ReadBasic.All``User.Read.All`

Get User`microsoftonedrive_get_user`

Retrieve the properties and relationships of a specific user by their ID or userPrincipalName. By default, only a limite...

`User.Read``User.Read.All`

Create User`microsoftonedrive_create_user`

Create a new user account in the organization with the specified properties

`User.ReadWrite.All`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.