識別要追蹤的變更記錄
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
使用者和共用雲端硬碟的變更記錄定義,請參閱「變更和修訂版本總覽」。本指南提供個別變更記錄項目的詳細資訊,以及在使用者變更記錄或共用雲端硬碟變更記錄中追蹤變更的時機提示。
檔案移至共用雲端硬碟後變更項目
檔案移至共用雲端硬碟後,該檔案的變更記錄會繼續記錄變更,但不會記錄使用者變更。然後查詢共用雲端硬碟變更記錄,偵測該項目的新變更。
變更共用雲端硬碟中個別項目的項目
如果非成員獲准存取共用雲端硬碟中的個別項目,系統會在使用者變更記錄中追蹤這些項目的變更,而非共用雲端硬碟變更記錄。這與直接與使用者共用的非共用雲端硬碟項目相同。
變更失去存取權限的項目
如果使用者失去檔案的存取權,變更記錄項目會顯示 deleted
。
不過,其他有權存取檔案的使用者仍可查看。如果為所有使用者刪除項目,所有使用者變更記錄都會標示 deleted
。
檔案在使用者語料庫之間移動時,即使使用者仍保有檔案存取權,檔案也可能會顯示 deleted
。如果查詢多個語料庫的變更記錄,請在 Changes.list 中使用 includeCorpusRemovals
參數,以區分語料庫移動和存取權遺失。
如要瞭解不同語料庫的定義,請參閱「檔案和資料夾總覽」。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-04 (世界標準時間)。
[null,null,["上次更新時間:2025-08-04 (世界標準時間)。"],[],[],null,["# Identify which change log to track\n\nThe user and shared drive change logs are defined in the [Changes and revisions overview](/workspace/drive/api/guides/change-overview). This guide provides more information about individual change log entries and tips for when to track changes in either the user change log or the shared drive change log.\n\nChange entry after file moves to a shared drive\n-----------------------------------------------\n\nAfter a file is moved to a shared drive, that shared drive change log continues logging changes for that file, not the user change log. You should then query the shared drive change log to detect new changes to that item.\n\nChange entry for individual items in a shared drive\n---------------------------------------------------\n\nIf a non-member is granted file access to individual items in a shared drive,\nchanges to those items are tracked in the user change log, not the shared drive change log. This behavior is the same as non-shared drive items that are shared directly with users.\n\nChange entry for lost access permission\n---------------------------------------\n\nIf a user loses access permission to a file, the change log entry will say `deleted`.\nHowever, the file is still available to other users who still have permission to access the file. If the item is deleted for all users, it will get marked `deleted` in all user change logs.\n\nWhen a file moves between user corpora it may also appear `deleted` even though the user still retains access to the file. If you query change logs for multiple corpora, use the `includeCorpusRemovals` parameter in [Changes.list](/workspace/drive/api/reference/rest/v3/changes/list) to disambiguate corpus moves from loss of access.\nFor definitions of different corpora, see [Files and folders overview](/workspace/drive/api/guides/about-files)."]]