Share file or folder
The ShareFileOrFolder tool simplifies collaboration by enabling secure sharing of files and folders within Microsoft 365 SharePoint document libraries. It allows users to assign specific roles and easily notify recipients with customized invitations to streamline teamwork.
Features
- Supports sharing files and folders within specified SharePoint document libraries (Drive).
- Allows assignment of roles such as read or write access to recipients.
- Sends customizable sharing invitations via email to one or multiple recipients.
- Ensures secure collaboration by granting precise permissions on DriveItems.
- Integrates seamlessly with Microsoft 365 SharePoint for efficient document management.
Benefits
- Enhances team collaboration through controlled access to documents.
- Saves time with quick and easy file or folder sharing in SharePoint.
- Improves security by assigning granular read/write permissions.
- Increases transparency by notifying recipients with clear, customized messages.
- Facilitates document management within the familiar Microsoft 365 ecosystem.
Description
Use this tool for SharePoint document libraries or when you need to specify a drive.Sends a sharing invitation to grant read/write permissions on a file or folder (DriveItem) within a specified Document Library (Drive).Supports assigning roles and notifying recipients.
Parameters
6 parameters
| Name | Type | Description |
|---|---|---|
| documentLibraryIdrequired | string | ID of the Document Library (Drive) containing the file or folder to share. |
| fileOrFolderIdrequired | string | ID of the file or folder (DriveItem) to share. |
| recipientEmailsrequired | string[] | Email addresses of recipients to invite.At least one recipient email is required. |
| rolesrequired | string[] | Roles to assign to recipients.Accepted values: read, write (write grants both read and write access).Defaults to read role if not specified. |
| sendInvitation | boolean | Indicates whether to send a sharing invitation.Defaults to true if not specified. |
| message | string | Custom message to include in the invitation email.Defaults to a standard message if not specified. |