onedrive_file_permissions
Who can open a OneDrive file destructive
Description
action list (default): every sharing link and person with access to a OneDrive file or folder: link URL, view or edit, scope, expiry, password, whether it is inherited from a parent folder. action remove: revoke one (permissionId from the list); anyone relying on it loses access at once and the link cannot be restored, so WITHOUT confirm:true nothing is removed and you get what would go. An inherited permission is removed on the parent folder, and the owner's own access cannot be removed. Removal is verified by reading the list back. 0 credits. Needs OneDrive connected.
Parameters
| Parameter | Type | Description |
|---|---|---|
fileIdrequired | string | OneDrive file or folder id |
action | "list" | "remove" | list (default) or remove |
permissionId | string | for remove |
confirm | boolean | required true for remove |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/onedrive_file_permissions.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"onedrive_file_permissions","arguments":{"fileId":"<string>"}}}
CLI
hermoso call onedrive_file_permissions --json '{"fileId":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
share_onedrive_fileShare a OneDrive file as a linkconvert_onedrive_fileConvert a OneDrive file to PDF or JPGdelete_onedrive_fileDelete a OneDrive filecreate_onedrive_folderCreate a OneDrive folderupdate_onedrive_fileRename / move a OneDrive fileget_onedrive_fileGet a OneDrive file’s detailslist_onedrive_filesList OneDrive filessave_to_onedriveSave file(s) to OneDrive