Wenn eine unbefugte Person Zugriff auf Ihren Autorisierungscode erhält, können Sie Ihre Domain schützen, indem Sie den Autorisierungscode zurücksetzen.
Erforderliche Berechtigungen für diese Aufgabe
Zum Ausführen dieser Aufgabe müssen Sie die folgenden Berechtigungen oder die folgenden IAM-Rollen haben.
Berechtigungen
domains.registrations.configureManagement
Rollen
roles/domains.admin
Autorisierungscode abrufen
Führen Sie die folgenden Schritte aus, um den Autorisierungscode für eine bestimmte Domain abzurufen.
Console
Wechseln Sie in der Google Cloud Console zur Seite Cloud Domains.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-01 (UTC)."],[[["\u003cp\u003eThis page outlines the process for obtaining or resetting a domain authorization code, which is required when transferring a domain to a different registrar.\u003c/p\u003e\n"],["\u003cp\u003eYou can get or reset a domain's authorization code through the Google Cloud console, the \u003ccode\u003egcloud\u003c/code\u003e command-line tool, or the Cloud Domains API.\u003c/p\u003e\n"],["\u003cp\u003eTo obtain an authorization code, you must navigate to the Domain details page within Cloud Domains and then copy the code from the Authorization code dialog.\u003c/p\u003e\n"],["\u003cp\u003eResetting the authorization code can be done for security reasons, and it involves going to the same Domain details page, but choosing the "Reset" option in the authorization code section.\u003c/p\u003e\n"],["\u003cp\u003eNote that authorization codes can only be retrieved or reset after a minimum of 60 days have passed since the domain's initial registration.\u003c/p\u003e\n"]]],[],null,["# Get or reset an authorization code\n\n| **Note:** On September 7, 2023 Squarespace acquired all domain registrations and related customer accounts from Google Domains. For more information about how this change affects Cloud Domains, see [Cloud Domains feature deprecations](/domains/docs/deprecations/feature-deprecations), [Renew an expired domain registration](https://support.google.com/a/answer/6152355), and [Squarespace purchase of Google Domains FAQ](/domains/docs/faq).\n\n\u003cbr /\u003e\n\nThis page describes how to get or reset an authorization code.\n\nTo [transfer a domain to a third-party\nregistrar](/domains/docs/transfer-domain-to-another-registrar), you must get\nan authorization code to provide to your new registrar.\n\nIf an unauthorized party gets access to your authorization code, you can protect\nyour domain by resetting the authorization code.\n| **Note:** You can get or reset the authorization code only after 60 days have elapsed since the initial registration.\n\n#### Permissions required for this task\n\nTo perform this task, you must have been granted the following permissions\n*or* the following IAM roles.\n\n**Permissions**\n\n- `domains.registrations.configureManagement`\n\n**Roles**\n\n- `roles/domains.admin`\n\nGet the authorization code\n--------------------------\n\nTo get the authorization code for a specific domain, complete the following\nsteps. \n\n### Console\n\n1. In the Google Cloud console, go to the **Cloud Domains** page.\n\n [Go to Cloud Domains](https://console.cloud.google.com/net-services/domains/registrations/list)\n2. On the **Registrations** list, click the domain name that you\n want to transfer.\n\n3. On the **Domain details** page, click **Authorization code**.\n\n4. The code is available in the **Authorization code** dialog.\n\n5. Copy the code to provide to your new registrar.\n\n### gcloud\n\nUse the [`gcloud\ndomains registrations authorization-code get` command](/sdk/gcloud/reference/domains/registrations/authorization-code/get): \n\n```\ngcloud domains registrations authorization-code get DOMAIN_NAME\n```\n\nReplace \u003cvar translate=\"no\"\u003eDOMAIN_NAME\u003c/var\u003e with the name of the registered\ndomain that you want to get the authorization code for, such as\n`example.app`.\n\nYour output looks similar to the following: \n\n```\ncode: 0ahDsXjSBwGL7fbr\n```\n\nCopy the code from the command output to provide to your new registrar.\n\n### API\n\nUse the\n[`registrations.retrieveAuthorizationCode` method](/domains/docs/reference/rest/v1/projects.locations.registrations/retrieveAuthorizationCode)\nwith an empty body: \n\n```\nGET https://domains.googleapis.com/v1/projects/PROJECT_ID/locations/global/registrations/DOMAIN_NAME:retrieveAuthorizationCode\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the name of the project\n- \u003cvar translate=\"no\"\u003eDOMAIN_NAME\u003c/var\u003e: the domain that you want to get the authorization code for\n\nCopy the code from the output and provide it to your new registrar.\n\nReset the authorization code\n----------------------------\n\nTo reset the authorization code for a specific domain, complete the\nfollowing steps. \n\n### Console\n\n1. In the Google Cloud console, go to the **Cloud Domains** page.\n\n [Go to Cloud Domains](https://console.cloud.google.com/net-services/domains/registrations/list)\n2. On the **Registrations** list, click the domain name that you want\n to transfer.\n\n3. On the **Domain details** page, click **Authorization code**.\n\n4. In the **Authorization code** dialog, click **Reset**.\n\n### gcloud\n\nUse the [`gcloud\ndomains registrations authorization-code reset` command](/sdk/gcloud/reference/domains/registrations/authorization-code/reset): \n\n```\ngcloud domains registrations authorization-code reset DOMAIN_NAME\n```\n\nReplace \u003cvar translate=\"no\"\u003eDOMAIN_NAME\u003c/var\u003e with the name of the registered domain\nthat you want to reset the authorization code for, such as `example.app`.\n\nYour output looks similar to the following: \n\n```\ncode: d637oEVWKpqgDT88\n```\n\n### API\n\nUse the\n[`registrations.resetAuthorizationCode` method](/domains/docs/reference/rest/v1/projects.locations.registrations/resetAuthorizationCode)\nwith an empty body: \n\n```\nPOST https://domains.googleapis.com/v1/projects/PROJECT_ID/locations/global/registrations/DOMAIN_NAME:resetAuthorizationCode\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the name of the project\n- \u003cvar translate=\"no\"\u003eDOMAIN_NAME\u003c/var\u003e: the domain that you want to reset the authorization code for\n\nWhat's next\n-----------\n\n- To edit registration settings using Cloud Domains, see [Edit registration settings](/domains/docs/edit-registration-settings).\n- To access API information, see the [Cloud Domains API](/domains/docs/reference/rest).\n- To find solutions for common issues that you might encounter when using Cloud Domains, see [Troubleshooting](/domains/docs/troubleshooting)."]]