Google Apps Script API
    Preparing search index...
    interface PermissionsCollection {
        create(
            resource: GoogleAppsScript.Drive_v3.Drive.V3.Schema.Permission,
            fileId: string,
        ): GoogleAppsScript.Drive_v3.Drive.V3.Schema.Permission;
        create(
            resource: GoogleAppsScript.Drive_v3.Drive.V3.Schema.Permission,
            fileId: string,
            optionalArgs: Record<string, any>,
        ): GoogleAppsScript.Drive_v3.Drive.V3.Schema.Permission;
        get(
            fileId: string,
            permissionId: string,
        ): GoogleAppsScript.Drive_v3.Drive.V3.Schema.Permission;
        get(
            fileId: string,
            permissionId: string,
            optionalArgs: Record<string, any>,
        ): GoogleAppsScript.Drive_v3.Drive.V3.Schema.Permission;
        list(
            fileId: string,
        ): GoogleAppsScript.Drive_v3.Drive.V3.Schema.PermissionList;
        list(
            fileId: string,
            optionalArgs: Record<string, any>,
        ): GoogleAppsScript.Drive_v3.Drive.V3.Schema.PermissionList;
        remove(fileId: string, permissionId: string): void;
        remove(
            fileId: string,
            permissionId: string,
            optionalArgs: Record<string, any>,
        ): void;
        update(
            resource: GoogleAppsScript.Drive_v3.Drive.V3.Schema.Permission,
            fileId: string,
            permissionId: string,
        ): GoogleAppsScript.Drive_v3.Drive.V3.Schema.Permission;
        update(
            resource: GoogleAppsScript.Drive_v3.Drive.V3.Schema.Permission,
            fileId: string,
            permissionId: string,
            optionalArgs: Record<string, any>,
        ): GoogleAppsScript.Drive_v3.Drive.V3.Schema.Permission;
    }
    Index

    Methods

    • Deletes a permission. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.

      Parameters

      • fileId: string

        The ID of the file or shared drive.

      • permissionId: string

        The ID of the permission.

      Returns void

    • Deletes a permission. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.

      Parameters

      • fileId: string

        The ID of the file or shared drive.

      • permissionId: string

        The ID of the permission.

      • optionalArgs: Record<string, any>

        Optional arguments.

      Returns void