Actions16
Folder → Share
AI-generatedSummary
Share a folder, creating a sharing link of specified type and scope
Inputs
- driveType — Type of drive to access
- sharedLinkUrl (required) — Paste the sharing link of the shared folder (right-click → Share → Copy link in OneDrive/SharePoint)
- userId — User email or ID. If empty, uses the authenticated user.
- siteId (required) — The SharePoint site to access
- folderSharingUrl (required) — Paste the sharing link copied from OneDrive or SharePoint ("Share → Copy link")
- folderSelection — How to specify the folder
- browseFolderF1 (required) — Choose from the list, or specify an ID using an expression
- browseFolderF2 — Select a subfolder to go deeper, or leave as is to use Level 1 as the target. Choose from the list, or specify an ID using an expression
- browseFolderF3 — Select a subfolder to go deeper, or leave as is to use Level 2 as the target. Choose from the list, or specify an ID using an expression
- browseFolderF4 — Select a subfolder to go deeper, or leave as is to use Level 3 as the target. Choose from the list, or specify an ID using an expression
- browseFolderF5 — Select the deepest target folder here, or leave as is to use Level 4 as the target. Choose from the list, or specify an ID using an expression
- folderPath (required) — The folder to operate on
- folderId (required) — The unique ID of the folder. Use "root" for the root folder.
- linkType — Type of sharing link to create
- linkScope — Scope of the sharing link
Output shape
a single object representing the created sharing link
Includes properties such as 'webUrl', 'type', 'scope', and any link‑specific metadata returned by Microsoft Graph. May contain additional fields depending on the Graph response.
Examples
Example 1: Create a view‑only link for a folder selected by browsing
driveType=user, folderSelection=browse (choose folder), linkType=view, linkScope=organization
Example 2: Create an edit link using a folder ID
driveType=user, folderId=12345, linkType=edit, linkScope=organization
Example 3: Create an anonymous link using a shared folder URL
driveType=sharedLink, folderSharingUrl=https://..., linkType=view, linkScope=anonymous