Google Drive (Service Account) icon

Google Drive (Service Account)

Access Google Drive API using Service Account

Overview

This node allows users to delete a specific permission from a Google Drive file using a service account for authentication. It supports both credential-based and manual authentication methods. The node is useful for managing file access by removing permissions that are no longer needed, such as revoking access from a user or group.

Use Case Examples

  1. Removing a user's permission from a shared Google Drive file to restrict access.
  2. Deleting a group permission from a file to update sharing settings.

Properties

Name Meaning
Authentication Choose the authentication method to use: either saved credentials or manual entry of service account details.
Service Account Email The email address of the service account used for authentication (required if manual authentication is selected).
Private Key The private key from the service account JSON used for authentication (required if manual authentication is selected).
Impersonate Email (Optional) Email of the user to impersonate, requires domain-wide delegation (optional, manual authentication only).
File ID The ID of the Google Drive file from which the permission will be deleted.
Permission ID The ID of the permission to delete from the specified file.

Output

JSON

  • success - Indicates whether the permission deletion was successful (true/false).
  • permissionId - The ID of the deleted permission.

Dependencies

  • Google Drive API accessed via googleapis library

Troubleshooting

  • Ensure that the service account has the necessary permissions to manage permissions on the specified file.
  • Verify that the File ID and Permission ID are correct and correspond to existing entities in Google Drive.
  • If using manual authentication, ensure the private key is correctly formatted and includes proper newline characters.
  • Common error: 'No credentials provided' - occurs if no credentials are selected or provided; resolve by selecting saved credentials or entering manual authentication details.
  • API errors related to insufficient permissions or invalid IDs will be thrown by the Google Drive API; check the error message for details and verify access rights.

Links

Discussion