Google Permissions API

Operations related to Permissions

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /files/{fileId}/permissions List the permissions on a file or shared drive · Google Get Files Fileid Permissions #
Ask an LLM
“Who has access to a particular file in my Drive?”
“Can I include the permissions of a published view when listing a file's access?”
Tell an agent
List the permissions on file {fileId}.
Show who can access shared drive {fileId} and its published view permissions.
POST /files/{fileId}/permissions Share a file or shared drive with someone · Google Post Files Fileid Permissions #
Ask an LLM
“How do I share a file with a colleague by email?”
“Can I send a custom message when sharing a file with a group?”
Tell an agent
Share file {fileId} with {emailAddress} as a {role} and send them a notification.
Share {fileId} with {emailAddress} and include the message {emailMessage}.
GET /files/{fileId}/permissions/{permissionId} Get a permission on a file · Google Get Files Fileid Permissions Permissionid #
Ask an LLM
“What role does a specific permission grant on a file?”
“Can I look up one permission by its ID on a file?”
Tell an agent
Get permission {permissionId} on file {fileId}.
Show the role and type of permission {permissionId} for {fileId}.
PATCH /files/{fileId}/permissions/{permissionId} Change a permission on a file · Google Patch Files Fileid Permissions Permissionid #
Ask an LLM
“Can I change the role of an existing permission on a file?”
“Is it possible to extend or remove an expiration date on a permission?”
Tell an agent
Change permission {permissionId} on file {fileId} to role {role}.
Set the expiration of permission {permissionId} on {fileId} to {expirationTime}.
DELETE /files/{fileId}/permissions/{permissionId} Revoke a permission on a file · Google Delete Files Fileid Permissions Permissionid #
Ask an LLM
“How do I stop someone from accessing a file by removing their permission?”
“Can I revoke a permission on a shared drive?”
Tell an agent destructive · confirm first
Delete permission {permissionId} from file {fileId}.
Revoke the access granted by permission {permissionId} on {fileId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google:google-permissions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-permissions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Drive Permissions API
  description: The Google Drive API allows clients to access resources from Google Drive.
  version: v3
  contact:
    name: Google
    url: https://google.com
    x-twitter: youtube
  license:
    name: Creative Commons Attribution 3.0
    url: http://creativecommons.org/licenses/by/3.0/
  termsOfService: https://developers.google.com/terms/
servers:
- url: https://www.googleapis.com/drive/v3
  description: Google Drive API Server
tags:


# --- truncated at 32 KB (32 KB total) ---
# Full source: https://artifacts.apis.io/google/openapi/google-permissions-api-openapi.yml