Google Apps Script API
    Preparing search index...

    Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.

    interface FileCapabilities {
        canAcceptOwnership?: boolean;
        canAddChildren?: boolean;
        canAddFolderFromAnotherDrive?: boolean;
        canAddMyDriveParent?: boolean;
        canChangeCopyRequiresWriterPermission?: boolean;
        canChangeSecurityUpdateEnabled?: boolean;
        canChangeViewersCanCopyContent?: boolean;
        canComment?: boolean;
        canCopy?: boolean;
        canDelete?: boolean;
        canDeleteChildren?: boolean;
        canDownload?: boolean;
        canEdit?: boolean;
        canListChildren?: boolean;
        canModifyContent?: boolean;
        canModifyContentRestriction?: boolean;
        canModifyEditorContentRestriction?: boolean;
        canModifyLabels?: boolean;
        canModifyOwnerContentRestriction?: boolean;
        canMoveChildrenOutOfDrive?: boolean;
        canMoveChildrenOutOfTeamDrive?: boolean;
        canMoveChildrenWithinDrive?: boolean;
        canMoveChildrenWithinTeamDrive?: boolean;
        canMoveItemIntoTeamDrive?: boolean;
        canMoveItemOutOfDrive?: boolean;
        canMoveItemOutOfTeamDrive?: boolean;
        canMoveItemWithinDrive?: boolean;
        canMoveItemWithinTeamDrive?: boolean;
        canMoveTeamDriveItem?: boolean;
        canReadDrive?: boolean;
        canReadLabels?: boolean;
        canReadRevisions?: boolean;
        canReadTeamDrive?: boolean;
        canRemoveChildren?: boolean;
        canRemoveContentRestriction?: boolean;
        canRemoveMyDriveParent?: boolean;
        canRename?: boolean;
        canShare?: boolean;
        canTrash?: boolean;
        canTrashChildren?: boolean;
        canUntrash?: boolean;
    }
    Index

    Properties

    canAcceptOwnership?: boolean

    Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.

    canAddChildren?: boolean

    Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.

    canAddFolderFromAnotherDrive?: boolean

    Output only. Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.

    canAddMyDriveParent?: boolean

    Output only. Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.

    canChangeCopyRequiresWriterPermission?: boolean

    Output only. Whether the current user can change the copyRequiresWriterPermission restriction of this file.

    canChangeSecurityUpdateEnabled?: boolean

    Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.

    canChangeViewersCanCopyContent?: boolean

    Deprecated: Output only.

    canComment?: boolean

    Output only. Whether the current user can comment on this file.

    canCopy?: boolean

    Output only. Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.

    canDelete?: boolean

    Output only. Whether the current user can delete this file.

    canDeleteChildren?: boolean

    Output only. Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.

    canDownload?: boolean

    Output only. Whether the current user can download this file.

    canEdit?: boolean

    Output only. Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.

    canListChildren?: boolean

    Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.

    canModifyContent?: boolean

    Output only. Whether the current user can modify the content of this file.

    canModifyContentRestriction?: boolean

    Deprecated: Output only. Use one of canModifyEditorContentRestriction, canModifyOwnerContentRestriction or canRemoveContentRestriction.

    canModifyEditorContentRestriction?: boolean

    Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.

    canModifyLabels?: boolean

    Output only. Whether the current user can modify the labels on the file.

    canModifyOwnerContentRestriction?: boolean

    Output only. Whether the current user can add or modify content restrictions which are owner restricted.

    canMoveChildrenOutOfDrive?: boolean

    Output only. Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.

    canMoveChildrenOutOfTeamDrive?: boolean

    Deprecated: Output only. Use canMoveChildrenOutOfDrive instead.

    canMoveChildrenWithinDrive?: boolean

    Output only. Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user's access to the child and to the destination folder.

    canMoveChildrenWithinTeamDrive?: boolean

    Deprecated: Output only. Use canMoveChildrenWithinDrive instead.

    canMoveItemIntoTeamDrive?: boolean

    Deprecated: Output only. Use canMoveItemOutOfDrive instead.

    canMoveItemOutOfDrive?: boolean

    Output only. Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.

    canMoveItemOutOfTeamDrive?: boolean

    Deprecated: Output only. Use canMoveItemOutOfDrive instead.

    canMoveItemWithinDrive?: boolean

    Output only. Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.

    canMoveItemWithinTeamDrive?: boolean

    Deprecated: Output only. Use canMoveItemWithinDrive instead.

    canMoveTeamDriveItem?: boolean

    Deprecated: Output only. Use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.

    canReadDrive?: boolean

    Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.

    canReadLabels?: boolean

    Output only. Whether the current user can read the labels on the file.

    canReadRevisions?: boolean

    Output only. Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.

    canReadTeamDrive?: boolean

    Deprecated: Output only. Use canReadDrive instead.

    canRemoveChildren?: boolean

    Output only. Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.

    canRemoveContentRestriction?: boolean

    Output only. Whether there is a content restriction on the file that can be removed by the current user.

    canRemoveMyDriveParent?: boolean

    Output only. Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.

    canRename?: boolean

    Output only. Whether the current user can rename this file.

    canShare?: boolean

    Output only. Whether the current user can modify the sharing settings for this file.

    canTrash?: boolean

    Output only. Whether the current user can move this file to trash.

    canTrashChildren?: boolean

    Output only. Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.

    canUntrash?: boolean

    Output only. Whether the current user can restore this file from trash.