Google Drive
GoogleDrive_RemoveAllCollaborators
Remove all user collaborators (and optionally groups) from a Google Drive file. The file owner and the calling user are always preserved. Groups are preserved by default because the Drive API cannot verify group membership -- pass include_groups=True to opt in. Inherited shared-drive permissions are never removable from the file level and are skipped. Use except_people to preserve additional people or groups by email or name. Ambiguous or unmatched except_people entries raise an error to avoid accidentally removing someone the caller meant to keep.
Remote googledrive
Remote (network-hosted)
Other tools also called GoogleDrive_RemoveAllCollaborators?
See providers with this name
Input Schema
{
"type": "object",
"properties": {
"except_people": {
"type": "array",
"items": {
"type": "string"
},
"description": "Emails or names of people (or groups) to preserve. The file owner and the caller are always preserved automatically. Defaults to None (remove everyone else)."
},
"include_groups": {
"type": "boolean",
"description": "Whether to also remove group permissions. Defaults to False because the Drive API does not expose group membership -- the tool cannot verify the caller isn't a member of a group it's about to delete, so removing a group can lock the caller out even though the tool preserves their personal email. Opt in with True when you have independently confirmed group-removal is safe."
},
"file_path_or_id": {
"type": "string",
"description": "The file path like folder/subfolder/filename or the file ID. If providing a path, it will be resolved within My Drive by default."
},
"shared_drive_id": {
"type": "string",
"description": "If the file is in a shared drive and using a path, provide the shared drive ID. Not needed when using file IDs. Defaults to None (uses My Drive)."
}
}
}