# Hermoso: onedrive_file_permissions · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/files/onedrive_file_permissions/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Files & documents](https://hermoso.ai/docs/reference/files/) / onedrive_file_permissions

# `onedrive_file_permissions`

Who can open a OneDrive file destructive

Area: Microsoft OneDrive: full CRUD over the user's OneDrive · [Files & documents](https://hermoso.ai/docs/reference/files/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## 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

`fileId` required `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](https://hermoso.ai/docs/credits/).

## Related tools

- [share_onedrive_file](https://hermoso.ai/docs/reference/files/share_onedrive_file/) Share a OneDrive file as a link
- [convert_onedrive_file](https://hermoso.ai/docs/reference/files/convert_onedrive_file/) Convert a OneDrive file to PDF or JPG
- [delete_onedrive_file](https://hermoso.ai/docs/reference/files/delete_onedrive_file/) Delete a OneDrive file
- [create_onedrive_folder](https://hermoso.ai/docs/reference/files/create_onedrive_folder/) Create a OneDrive folder
- [update_onedrive_file](https://hermoso.ai/docs/reference/files/update_onedrive_file/) Rename / move a OneDrive file
- [get_onedrive_file](https://hermoso.ai/docs/reference/files/get_onedrive_file/) Get a OneDrive file’s details
- [list_onedrive_files](https://hermoso.ai/docs/reference/files/list_onedrive_files/) List OneDrive files
- [save_to_onedrive](https://hermoso.ai/docs/reference/files/save_to_onedrive/) Save file(s) to OneDrive

[All 37 Files & documents tools](https://hermoso.ai/docs/reference/files/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
