

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 為您的 WorkSpaces 應用程式使用者啟用和管理 Google Drive
<a name="google-drive"></a>

**注意**  
Amazon WorkSpaces 應用程式使用和傳輸到任何其他從 Google APIs收到的資訊應用程式，將遵守 [Google API Services 使用者資料政策](https://developers.google.com/terms/api-services-user-data-policy)，包括有限使用要求。

Amazon WorkSpaces 應用程式支援組織中使用者的下列持久性儲存選項：
+ 適用於 Google Workspace 的 Google Drive
+ 商務用 OneDrive
+ 主資料夾

您可以為您的組織啟用一或多個選項。當您為 WorkSpaces 應用程式堆疊啟用 Google Drive for Google Workspace 時，堆疊的使用者可以將他們的 Google Drive for Google Workspace 帳戶連結至 WorkSpaces 應用程式。然後，他們可以登入其 Google Drive for Google Workspace 帳戶，並在應用程式串流工作階段期間存取其 Google Drive 資料夾。任何他們在這些工作階段期間於 Google Drive 內部進行的檔案或資料夾變更，都會自動備份並同步，供串流工作階段外部的使用者使用。

**重要**  
您只能為 Google Workspace 網域中的帳戶啟用 Google Drive for Google Workspace，但無法為個人 Gmail 帳戶啟用。

**注意**  
您可以針對 Windows 堆疊啟用 Google 雲端硬碟，但不適用於 Linux 堆疊或與多工作階段機群相關聯的堆疊。

**Topics**
+ [

# 為您的 WorkSpaces 應用程式使用者啟用 Google Drive
](enable-google-drive.md)
+ [

# 為您的 WorkSpaces 應用程式使用者停用 Google Drive
](disable-google-drive.md)

# 為您的 WorkSpaces 應用程式使用者啟用 Google Drive
<a name="enable-google-drive"></a>

在啟用 Google Drive 前，您必須先執行以下作業：
+ 擁有作用中的 Google Workspace 帳戶，其中包含有效的組織網域和網域中的使用者，以搭配 WorkSpaces 應用程式使用。
+ 使用相關聯的機群設定 WorkSpaces 應用程式堆疊。

   機群必須使用 映像，該映像使用 2018 年 5 月 31 日當天或之後發行的 WorkSpaces 應用程式代理程式版本。如需詳細資訊，請參閱[WorkSpaces 應用程式代理程式版本備註](agent-software-versions.md)。機群也必須具備網際網路存取。
+ 在與您的 Google Workspace 帳戶相關聯的一或多個網域中，將 Amazon WorkSpaces 應用程式新增為信任的應用程式。您可以為最多 10 個網域啟用 Google Drive。
+ 擁有 Windows 型堆疊。(不支援 Linux 型堆疊)。

請依照下列步驟，在 Google Workspace 網域中將 Amazon WorkSpaces 應用程式新增為信任的應用程式。

**將 Amazon WorkSpaces 應用程式新增為 Google Workspace 網域中的信任應用程式**

1. 在 登入 Google Workspace Admin 主控台[https://admin.google.com/](https://admin.google.com/)。

1. 在左側導覽側邊欄中，選擇**安全**、**存取和資料控制**、**API 控制項**。

1. 在頁面頂端的**應用程式存取控制**區段中，選擇**管理第三方應用程式存取權**。

1. 選擇**新增應用程式**，然後選擇 **OAuth 應用程式名稱或用戶端 ID**。

1. 輸入您 AWS 區域的 Amazon WorkSpaces 應用程式 OAuth 用戶端 ID，然後選擇**搜尋**。如需用戶端 ID 的清單，請查看此程序之後的表格。

1. 在搜尋結果中，選擇 Amazon WorkSpaces 應用程式，然後選擇**選取**。

1. 在**用戶端 ID** 頁面的 **OAuth 用戶端 ID** 下，確認清單中是否出現正確的 ID，然後選取 ID 左側的核取方塊。

1. 在頁面右下角，選擇**選取**。

1. 設定 Google Workspace 組織中哪些組織單位應取得存取權。

1. 在**存取 Google 資料**下，選擇**信任：可存取所有 Google 服務**，然後選擇**繼續**。

1. 檢閱選擇項目是否正確，確認無誤後選擇**完成**。

1. 確認具有正確 OAuth ID 的 Amazon WorkSpaces 應用程式出現在連線的應用程式清單中。


**Amazon WorkSpaces 應用程式 OAuth2 IDs**  

| 區域 | Amazon WorkSpaces 應用程式 OAuth 用戶端 ID | 
| --- | --- | 
| 美國東部 (維吉尼亞北部) | 266080779488-15n5q5nkiclp6m524qibnmhmbsg0hk92.apps.googleusercontent.com | 
| 美國東部 (俄亥俄) | 723951369598-6tvdlf52g2qh0qa141o4k1avasvnj51i.apps.googleusercontent.com | 
| 美國西部 (奧勒岡) | 1026466167591-i4jmemrggsjomp9tnkkcs5tniggfiujb.apps.googleusercontent.com | 
| 亞太區域 (孟買) | 325827353178-coqs1c374mf388ctllrlls374dc1bmb2.apps.googleusercontent.com  | 
| 亞太區域 (首爾) | 562383781419-am1i2dnvt050tmdltsvr36i8l2js40dj.apps.googleusercontent.com  | 
| 亞太區域 (新加坡) | 856871139998-4eia2n1db5j6gtv4c1rdte1fh1gec8vs.apps.googleusercontent.com | 
| 亞太地區 (雪梨) | 151535156524-b889372osskprm4dt1clpm53mo3m9omp.apps.googleusercontent.com  | 
| 亞太區域 (東京) | 922579247628-qpl9kpihg3hu5dul2lphbjs4qbg6mjm2.apps.googleusercontent.com  | 
| 加拿大 (中部) |  872792838542-t39aqh72jv895c89thtk6v83sl6jugm2.apps.googleusercontent.com | 
| 歐洲 (法蘭克福) | 643727794574-1se5360a77i84je9j3ap12obov1ib76q.apps.googleusercontent.com | 
| 歐洲 (愛爾蘭) | 599492309098-098muc7ofjfo9vua5rm5u9q2k3mlok3j.apps.googleusercontent.com  | 
| 歐洲 (倫敦) | 682555519925-usbn2sk1ffgo8odgf23nj66ri71na0k5.apps.googleusercontent.com | 
| AWS GovCloud （美國東部） |  `20306576244-gqqkappmhhv9fj06sdk7as60he89e7ce.apps.googleusercontent.com`  如需在 AWS GovCloud (US) 區域中使用 WorkSpaces 應用程式的詳細資訊，請參閱*AWS GovCloud (US) 《 使用者指南*》中的 [Amazon WorkSpaces 應用程式](https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-appstream2.html)。   | 
| AWS GovCloud （美國西部） |  `996065833880-litfkb2vfd7c65nt7s24r7t8le5bc9bl.apps.googleusercontent.com`  如需在 AWS GovCloud (US) 區域中使用 WorkSpaces 應用程式的詳細資訊，請參閱*AWS GovCloud (US) 《 使用者指南*》中的 [Amazon WorkSpaces 應用程式](https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-appstream2.html)。   | 
| 南美洲 (聖保羅) | 891888628791-1ltbtedva29esqvqadiatlj4htcgcjfo.apps.googleusercontent.com  | 
| 亞太地區 (馬來西亞) | 526025990430-7u0f5r0rg4caj0impcs3atvatjtmdeld.apps.googleusercontent.com | 
| 以色列 (特拉維夫) | 1089892007469-bkqfmc1sm3ahqrssjjp4ees1mmiuium0.apps.googleusercontent.com | 
| 歐洲 (米蘭) | 357829681601-84bcnr1ve68rthka1st5dboj0jgsrki7.apps.googleusercontent.com | 
| 歐洲 (西班牙) | 258457153543-0qbtkg4a99stlj12pi8sdqaetfb96b1s.apps.googleusercontent.com | 
| Europe (Paris) | 1018958878172-sgg1u1hlqiq8v53gdpq9aiu6ta48q1de.apps.googleusercontent.com | 

請依照下列步驟為您的 WorkSpaces 應用程式使用者啟用 Google Drive。

**在建立堆疊時啟用 Google Drive**
+ 請遵循 中的步驟[在 Amazon WorkSpaces 應用程式中建立堆疊](set-up-stacks-fleets-install.md)，確定已選取**啟用 Google Drive**，且您已指定至少一個與 Google Workspace 帳戶相關聯的組織網域。

**為現有堆疊啟用 Google Drive**

1. 在 https：//[https://console.aws.amazon.com/appstream2](https://console.aws.amazon.com/appstream2) 開啟 WorkSpaces 應用程式主控台。

1. 在左側導覽窗格中，選擇 **Stacks (堆疊)**，然後選取要啟用 Google Drive 的堆疊。

1. 在堆疊清單下方，選擇**儲存**，然後選取**啟用 Google Drive for Google Workspace**。

1. 在**啟用 Google Drive for Google Workspace** 對話方塊的 **Google Workspace 網域名稱**中，輸入至少一個與您的 Google Workspace 帳戶相關聯的組織網域的名稱。若要指定另一個網域，請選擇 **Add another domain (新增另一個網域)**，然後輸入網域的名稱。

1. 在您新增網域名稱之後，選擇 **Enable (啟用)**。

**注意**  
如需可協助使用者在 WorkSpaces 應用程式串流工作階段期間開始使用 Google Drive 的指導，請參閱 [使用 Google 雲端硬碟](google-drive-end-user.md)。

# 為您的 WorkSpaces 應用程式使用者停用 Google Drive
<a name="disable-google-drive"></a>

您可以為堆疊停用 Google Drive，而不會遺失已存放在 Google Drive 上的使用者內容。為堆疊停用 Google Drive 會帶來以下影響：
+ 連線到作用中堆疊串流工作階段的使用者會收到錯誤訊息。他們會接到通知，告知他們沒有存取 Google Drive 的許可。
+ 任何使用已停用 Google Drive 堆疊的新工作階段都不會顯示 Google Drive。
+ 只有已停用 Google Drive 的特定堆疊才會受到影響。
+ 即使針對所有堆疊停用 Google Drive，WorkSpaces 應用程式也不會刪除存放在其 Google Drive 中的使用者內容。

請遵循以下步驟來為現有的堆疊停用 Google Drive。

**為現有堆疊停用 Google Drive**

1. 在 https：//[https://console.aws.amazon.com/appstream2](https://console.aws.amazon.com/appstream2) 開啟 WorkSpaces 應用程式主控台。

1. 在左側導覽窗格中，選擇 **Stacks (堆疊)**，然後選取要停用 Google Drive 的堆疊。

1. 在堆疊清單下方，選擇**儲存**，然後清除**啟用 Google Drive for Google Workspace** 選項。

1. 在**停用 Google Drive for Google Workspace** 對話方塊中，輸入 `CONFIRM`（區分大小寫） 以確認您的選擇，然後選擇**停用**。

   當堆疊的使用者開始下一個 WorkSpaces 應用程式串流工作階段時，就無法再從該工作階段和未來的工作階段中存取其 Google Drive 資料夾。