Share File
file_shareCreate a sharing link for a OneDrive file. Control access by setting permission type (view/edit) and link scope (anonymous/organization).
Instructions
✏️ Create a sharing link for a OneDrive file (requires user confirmation recommended)
Creates a sharing link that allows others to access the file. Permission types control what recipients can do with the file.
Args: file_id: The file ID to share account_id: Microsoft account ID permission_type: Type of permission - "view" or "edit" (default: "view") scope: Link scope - "anonymous" or "organization" (default: "anonymous")
Returns: Sharing link details including the web URL
Raises: ValueError: If file_id is invalid or permission_type/scope is unsupported
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| account_id | Yes | ||
| permission_type | No | view | |
| scope | No | anonymous |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||