管理筆記本存取權
本頁說明如何授予及撤銷 Colab Enterprise 筆記本 (IPYNB 檔案) 的存取權。
事前準備
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Vertex AI, Dataform, and Compute Engine APIs.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Vertex AI, Dataform, and Compute Engine APIs.
-
在 Google Cloud 控制台中,前往 Colab Enterprise 的「My notebooks」頁面。
-
在「Region」選單中,選取含有筆記本的區域。
-
在要分享的筆記本旁邊,按一下
「筆記本動作」選單,然後選取「分享」。 -
在「Share permissions」視窗中,按一下
「Add user/group」。 -
在「Add user/group」對話方塊的「New principals」欄位中,輸入一或多個主體,並在主體之間加上半形逗號。
-
在「Role」清單中,選取下列其中一個角色:
-
按一下 [儲存]。
執行筆記本,查看目前的輸出結果。系統不會儲存這項輸出內容。
在修訂版本記錄中查看筆記本的封存版本及其輸出內容。
-
在 Google Cloud 控制台中,前往 Colab Enterprise 的「My notebooks」頁面。
-
在「Region」選單中,選取含有筆記本的區域。
-
按一下筆記本名稱即可開啟筆記本。
-
依序點選「切換標題可見度」>「編輯」>「筆記本設定」。
-
在「Notebook settings」視窗中,選取「Omit code cell output when saving this notebook」。
-
按一下 [儲存]。
-
按一下「重新載入」。
前往 Google Cloud 控制台的「IAM」頁面。
選取專案、資料夾或機構。
找出要撤銷存取權的主體所在的資料列。然後點選該列中的
「Edit principal」。針對要撤銷的角色按一下「刪除」圖示
按鈕,然後按一下「儲存」。- 如要瞭解如何授予執行階段範本的存取權,請參閱「管理執行階段範本的存取權」。
必要的角色
如要取得管理 Colab Enterprise 筆記本存取權所需的權限,請要求管理員為您授予專案的 Colab Enterprise 管理員 (roles/aiplatform.colabEnterpriseAdmin
) IAM 角色。如要進一步瞭解如何授予角色,請參閱「管理專案、資料夾和機構的存取權」。
授予筆記本存取權
本節說明如何授予使用者存取 Colab Enterprise 筆記本的權限。
如要授予使用者存取 Colab Enterprise 筆記本的權限,請按照下列步驟操作:
Colab Enterprise 主體是使用者、群組或網域
您可以將存取權授予使用者、群組或網域。請參閱下表:
主體 | 使用者帳戶示例 |
---|---|
單一使用者 | user@gmail.com |
Google 群組 | admins@googlegroups.com |
Google Workspace 網域 | example.com |
關閉筆記本輸出內容儲存功能
如要避免將已儲存的筆記本輸出內容分享給有權存取筆記本檔案的其他使用者,您可以關閉筆記本輸出內容儲存功能。
當您為所選筆記本關閉輸出儲存功能時,Colab Enterprise 會刪除筆記本檔案中儲存的所有輸出內容,且不會儲存後續執行作業的輸出內容。
不過,只要使用者具備筆記本存取權,還是可以透過下列方式查看輸出內容:
如要關閉所選筆記本的輸出儲存功能,請按照下列步驟操作:
撤銷筆記本存取權
如要撤銷 Colab Enterprise 筆記本的存取權,請按照下列步驟操作: