Skip to main content
Version: Latest

Microsoft OneDrive

Note: this connector has no hand-written README yet. Only the auto-generated reference below is available. See the connector's manifest at connectors/identos.ms-onedrive/connector.v1.json for the source.

Manifest reference

  • ID: identos.ms-onedrive
  • Version: 1.0.0
  • Resource type: urn:connector:identos:ms-onedrive

Supported auth modes

TypeDetails
idp_passthroughrequires IdP microsoft

Setup fields

IDLabelDefaultSecret?Notes
upstream_auth.typeAuthenticationidp_passthroughno

Scopes

Scope
onedrive:read
onedrive:write
onedrive:share
onedrive:admin

Routes

MethodPatternScopeResource template
GET/v1.0/me/driveonedrive:read
GET/v1.0/me/drive/root/childrenonedrive:read
GET/v1.0/me/drive/items/{item_id}/childrenonedrive:readonedrive://{item_id}/children
GET/v1.0/me/drive/items/{item_id}onedrive:readonedrive://{item_id}
GET/v1.0/me/drive/root:/{path}onedrive:readonedrive://root:/{path}
GET/v1.0/me/drive/items/{item_id}/contentonedrive:readonedrive://{item_id}/content
GET/v1.0/me/drive/recentonedrive:read
GET/v1.0/me/drive/sharedWithMeonedrive:read
GET/v1.0/me/drive/root/searchonedrive:read
POST/v1.0/me/drive/items/{parent_id}/childrenonedrive:writeonedrive://{parent_id}/children
PUT/v1.0/me/drive/items/{parent_id}:/{filename}:/contentonedrive:writeonedrive://{parent_id}/{filename}
PATCH/v1.0/me/drive/items/{item_id}onedrive:writeonedrive://{item_id}
DELETE/v1.0/me/drive/items/{item_id}onedrive:writeonedrive://{item_id}
POST/v1.0/me/drive/items/{item_id}/copyonedrive:writeonedrive://{item_id}/copy
GET/v1.0/me/drive/items/{item_id}/permissionsonedrive:shareonedrive://{item_id}/permissions
POST/v1.0/me/drive/items/{item_id}/createLinkonedrive:shareonedrive://{item_id}/links
POST/v1.0/me/drive/items/{item_id}/inviteonedrive:shareonedrive://{item_id}/invites

MCP tools

NameScopeDescription
get_driveonedrive:readGet the signed-in user's default OneDrive drive metadata (quota, owner, drive type).
list_drive_rootonedrive:readList all files and folders at the root of the signed-in user's OneDrive.
list_folder_childrenonedrive:readList the contents of a specific folder in OneDrive by its item ID.
get_drive_itemonedrive:readGet metadata for a specific file or folder in OneDrive by its item ID.
get_drive_item_by_pathonedrive:readGet metadata for a file or folder by its path relative to the OneDrive root, e.g. "Documents/Report.docx".
download_fileonedrive:readDownload the binary content of a file from OneDrive. Returns the file bytes.
list_recent_filesonedrive:readList files the signed-in user has recently accessed in OneDrive.
list_shared_with_meonedrive:readList files and folders that others have shared with the signed-in user.
search_driveonedrive:readSearch for files and folders in the signed-in user's OneDrive by name or content.
create_folderonedrive:writeCreate a new folder inside a parent folder in OneDrive.
upload_fileonedrive:writeUpload or replace a file in OneDrive. Use for files up to 4 MB; use resumable upload for larger files.
update_drive_itemonedrive:writeUpdate a file or folder's metadata — rename it, move it to a different parent, or update other properties.
delete_drive_itemonedrive:writeDelete a file or folder from OneDrive. Deleted items go to the recycle bin.
copy_drive_itemonedrive:writeCopy a file or folder to a new location in OneDrive. Returns a monitor URL to track the async copy operation.
list_item_permissionsonedrive:shareList all sharing permissions on a file or folder, including links and direct grants.
create_sharing_linkonedrive:shareCreate a sharing link for a file or folder. Supports view-only and edit links scoped to the organisation or anonymous.
invite_users_to_itemonedrive:shareShare a file or folder directly with specific users by email address.

Operator data schema

Keys the operator can supply under data.pbac.operator.connectors["identos.ms-onedrive"].* — consumed by the connector's policy.

KeyTypeDescription
protected_foldersarrayFolder name segments (case-insensitive) that are blocked for all access. Path-based routes whose path begins with a matching segment are denied. Example: ["HR", "Legal", "Executive"].
allow_anonymous_sharingbooleanWhen false (default), creating sharing links with scope "anonymous" (public links) is blocked.
allow_external_sharingbooleanWhen false (default), inviting users outside the organisation (external email domains) is blocked. Requires the operator to also seed allowed_domains.
allowed_domainsarrayEmail domains considered internal. Used by the external-sharing block rule. Example: ["identos.ca", "contoso.com"]. Required when allow_external_sharing is false.