[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[],[],null,["# Enable and disable Secure Source Manager\n\nThis page describes the steps to enable and disable\nSecure Source Manager.\n\nRequired roles\n--------------\n\n\nTo get the permissions that\nyou need to enable or disable Secure Source Manager,\n\nask your administrator to grant you the\n\n\n[Service Usage Admin role](/iam/docs/roles-permissions/serviceusage#serviceusage.serviceUsageAdmin) (`roles/serviceusage.serviceUsageAdmin`)\nIAM role on your project.\n\n\nFor more information about granting roles, see [Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access).\n\n\nYou might also be able to get\nthe required permissions through [custom\nroles](/iam/docs/creating-custom-roles) or other [predefined\nroles](/iam/docs/roles-overview#predefined).\n\nFor information on granting Secure Source Manager roles,\nsee [Access control with IAM](/secure-source-manager/docs/access-control) and\n[Grant users instance access](/secure-source-manager/docs/grant-users-instance-access).\n\nEnable Secure Source Manager\n----------------------------\n\n- [Sign in](https://accounts.google.com/Login) to your Google Account.\n\n If you don't already have one, [sign up for a new account](https://accounts.google.com/SignUp).\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n\n\n Enable the Secure Source Manager API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=securesourcemanager.googleapis.com)\n-\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n | **Note:** If you installed the gcloud CLI previously, make sure you have the latest version by running `gcloud components update`.\n- If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n-\n To [initialize](/sdk/docs/initializing) the gcloud CLI, run the following command:\n\n ```bash\n gcloud init\n ```\n\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n\n\n Enable the Secure Source Manager API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=securesourcemanager.googleapis.com)\n-\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n | **Note:** If you installed the gcloud CLI previously, make sure you have the latest version by running `gcloud components update`.\n- If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n-\n To [initialize](/sdk/docs/initializing) the gcloud CLI, run the following command:\n\n ```bash\n gcloud init\n ```\n\n1. Install the `beta gcloud` CLI component: \n\n ```\n gcloud components install beta\n ```\n\n\u003cbr /\u003e\n\nDisable Secure Source Manager\n-----------------------------\n\nTo disable Secure Source Manager:\n\n1. Make sure any information you want to keep is saved elsewhere. We recommend that you [delete repositories](/secure-source-manager/docs/delete-repository) in your project before you disable Secure Source Manager.\n2. In the Google Cloud console, go to the [API Overview](https://console.cloud.google.com/apis/library/securesourcemanager.googleapis.com) page for Secure Source Manager.\n3. Select the project where you want to disable Secure Source Manager.\n4. Click **Manage**.\n5. Click **Disable API**.\n\nWhat's next\n-----------\n\n- [Deploy and access a Secure Source Manager instance](/secure-source-manager/docs/deploy-access-instance).\n- [Grant users instance access](/secure-source-manager/docs/grant-users-instance-access)."]]