Microsoft OneDrive (With Drive ID)

Consume Microsoft OneDrive API with custom Drive ID

Folder → Share

AI-generated

Summary

Create a sharing link for a specific folder in Microsoft OneDrive with the specified access type and scope.

Inputs

  • Folder ID (required) — The identifier of the folder to share.
  • Type (required) — The type of sharing link to create, choosing among View, Edit, or Embed access.
  • Scope (required) — The visibility scope of the sharing link, either Anonymous (public) or within the Organization.

Output shape

a single JSON object representing the created sharing link details from the Microsoft Graph API

The operation returns the standard response from the Microsoft Graph API's createLink endpoint for the folder. No pagination or additional envelopes are involved.

Examples

Example 1: Sharing a folder with edit permissions organization-wide

Set Folder ID to the target folder's ID, Type to 'edit', and Scope to 'organization'. The output will include the sharing link URL and related metadata.

Links

Discussion