Share file or folder
Give people read or edit access to a file or folder, optionally emailing them an invitation.
Command in the Microsoft 365 toolkit · id ooa.microsoft365/share_item · 9 inputs (2 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | No | Microsoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Item | String | Yes | Path in the drive (e.g. Reports/q4.xlsx), or id:{item-id}. | |
| Recipients | Any | Yes | Email address(es) of the people to share with. | |
| Role | String | No | read | read to view, write to edit. |
| Send invitation | Boolean | No | true | Email the people a sharing invitation. |
| Message | String | No | Text added to the invitation. | |
| Require sign in | Boolean | No | true | People must sign in to open the item. |
| Drive | String | No | me/drive | Whose files: me/drive (your OneDrive), a person (ann@acme.com), a SharePoint site (contoso.sharepoint.com:/sites/Finance), a library of a site by name (contoso.sharepoint.com:/sites/Finance:/Invoices), or sites/{site-id}/drive or drives/{drive-id}. With an app sign-in, name a person or site. |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |
Outputs
| Output | Type | What it is |
|---|---|---|
| permission_ids | List | Ids of the new permissions. |