--- title: 'Google drive api important security update solution' disqus: hackmd --- ###### tags:`Google drive api` Google drive api important security update solution === [TOC] ## 筆記目的 理解這次的安全性升級哪些人會受到影響,以及因應措施 ## 哪些人會受到影響 根據google 的email > > Items that have a Drive API permission with **type=domain** or **type=anyone**, where **withLink=true (v2)** or **allowFileDiscovery=false (v3)**, will be affected by this security update. ![](https://i.imgur.com/WwQKeuK.png) 紅色的是**不受影響**的人,黃色的可能會受到影響 使用google drive 的打API工具可發現 https://developers.google.com/drive/api/v3/reference/files/get 點選try it now,然後貼上希望查看的file的ID的還有field就可以了 ![](https://i.imgur.com/0oRPL3e.png) ![](https://i.imgur.com/fhFGDc6.png) ## 該如何處理 根據這篇連結[如何套用Google安全性更新](https://support.google.com/a/answer/10685032) 可以得知以下事情 > Google 文件、試算表和簡報檔案不會受到這項異動影響。根據預設,只要使用者所屬機構採用的不是 Google Workspace for Education,就能替自己擁有或管理的檔案移除這項更新。 要在**8月25日**之前這樣做 1. 您目前使用的帳戶 (mike@tradeserv.com) 沒有執行這些步驟所需的權限。如要繼續進行,請改用「管理員帳戶」。切換帳戶後,即可開啟 Google 管理控制台。 切換至管理員帳戶 (登出) 或瞭解詳情 2. 在管理控制台首頁中,依序前往 [應用程式] 接下來 [Google Workspace] 接下來 [雲端硬碟與文件]。 3. 依序按一下 [共用設定] 接下來 [檔案專用安全性更新]。 4. 選擇套用更新的方式: * 將安全性更新套用至所有受影響的檔案 * 移除所有受影響檔案的安全性更新 (不建議) 5. (選擇套用更新時的選用步驟) 如果想允許使用者替自己擁有或管理的檔案移除或套用更新,請勾選「允許」核取方塊。 6. 如果您變更了任何設定,請按一下 [儲存]。 ## 和官方的討論 https://mail.google.com/mail/u/0/#inbox/FMfcgzGkZssfnXwlrZrmdClnwpMXLnvZ