Interface GrantAccessOptions

Grant access options for different modes

interface GrantAccessOptions {
    cascade_to_items?: boolean;
    cascade_to_folders?: boolean;
    mode?: "path" | "recursive";
    folder_role?: DriveDirectoryRole;
    item_role?: "READ_ONLY" | "VIEWER" | "CONTRIBUTOR" | "EDITOR" | "MANAGER";
}

Properties

cascade_to_items?: boolean

Cascade permissions to existing items (drive only)

cascade_to_folders?: boolean

Cascade permissions only to folders (drive only)

mode?: "path" | "recursive"

Access mode: 'path' for path-based access, 'recursive' for recursive access (items only)

folder_role?: DriveDirectoryRole

Role for parent folders (path mode only) - directories only

item_role?: "READ_ONLY" | "VIEWER" | "CONTRIBUTOR" | "EDITOR" | "MANAGER"

Role for nested items (recursive mode only) - can be directory or file role depending on item type