> [!NOTE]
> **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](https://docs.cloud.google.com/domains/docs/deprecations/feature-deprecations.md.txt), [Renew an expired domain registration](https://support.google.com/a/answer/6152355), and [Squarespace purchase of Google Domains FAQ](https://docs.cloud.google.com/domains/docs/faq.md.txt).

<br />

This page describes the Cloud Domains API roles and the access control options that
are available to you in Cloud Domains.

Google Cloud offers Identity and Access Management (IAM), which lets you give
more granular access to specific Google Cloud resources and prevents
unwanted access to other resources. IAM lets you adopt the
[security principle of least privilege](https://wikipedia.org/wiki/Principle_of_least_privilege)
so that you grant only the necessary access to your resources.
IAM lets you control *who* has *what* permissions to
*which* resources by setting IAM policies.
IAM policies grant specific roles to a user, which gives the user
certain permissions.

For example, a particular user might need to create and modify the contact
settings for a domain, so you would give that user the
Cloud Domains Admin role (`roles/domains.admin`). On the other hand,
a user might need to only view existing resource domains, so they would get a
Cloud Domains Viewer role (`roles/domains.viewer`). For
Cloud Domains, you can configure both project-level and
resource-level access.

Following are some examples of permissions for the Viewer role:

- View all domains registered in a project.
- View registration details such as DNS or expiry time.
- Search domain availability and get registration parameters.

Following are some examples of permissions for the Admin role:

- Register a new domain.
- Update registration settings, including DNS settings and contact settings.

To understand role types, see the
[IAM basic and predefined roles reference](https://docs.cloud.google.com/iam/docs/understanding-roles).

## Enable the Cloud Domains API

To view and assign Cloud Domains IAM roles,
you must enable the Cloud Domains API for your project. You cannot see the
Cloud Domains roles in the Google Cloud console until you
enable the API.

[Enable the API](https://console.cloud.google.com/apis/library/domains.googleapis.com)

For lists of the roles and permissions that Cloud Domains
supports, see the following sections.

## Roles

The following table lists the Cloud Domains API
IAM roles with a corresponding list of all the permissions that
each role includes. Each permission is applicable to a particular resource
type. For more details about each permission, see the
[Permissions](https://docs.cloud.google.com/domains/docs/access-control.md.txt#permissions) section.

| Role | Permissions |
|---|---|
| #### Cloud Domains Admin (`roles/domains.admin`) Full access to Cloud Domains Registrations and related resources. | `domains.*` - `domains.locations.get` - `domains.locations.list` - `domains.operations.cancel` - `domains.operations.get` - `domains.operations.list` - `domains.registrations.configureContact` - `domains.registrations.configureDns` - `domains.registrations.configureManagement` - `domains.registrations.create` - `domains.registrations.createTagBinding` - `domains.registrations.delete` - `domains.registrations.deleteTagBinding` - `domains.registrations.get` - `domains.registrations.getIamPolicy` - `domains.registrations.list` - `domains.registrations.listEffectiveTags` - `domains.registrations.listTagBindings` - `domains.registrations.setIamPolicy` - `domains.registrations.update` `resourcemanager.projects.get` `resourcemanager.projects.list` |
| #### Cloud Domains Editor (`roles/domains.editor`) Editor role for Cloud Domains | `domains.locations.*` - `domains.locations.get` - `domains.locations.list` `domains.operations.*` - `domains.operations.cancel` - `domains.operations.get` - `domains.operations.list` `domains.registrations.configureContact` `domains.registrations.configureDns` `domains.registrations.configureManagement` `domains.registrations.create` `domains.registrations.delete` `domains.registrations.get` `domains.registrations.getIamPolicy` `domains.registrations.list` `domains.registrations.listEffectiveTags` `domains.registrations.listTagBindings` `domains.registrations.update` `resourcemanager.projects.get` `resourcemanager.projects.list` |
| #### Cloud Domains Viewer (`roles/domains.viewer`) Read-only access to Cloud Domains Registrations and related resources. | `domains.locations.*` - `domains.locations.get` - `domains.locations.list` `domains.operations.get` `domains.operations.list` `domains.registrations.get` `domains.registrations.getIamPolicy` `domains.registrations.list` `domains.registrations.listEffectiveTags` `domains.registrations.listTagBindings` `resourcemanager.projects.get` `resourcemanager.projects.list` |

## Permissions

The following table lists the permissions that the caller must have to call
each method.

| Method (locations.registrations.) | Description | Required permissions |
|---|---|---|
| [searchDomains](https://docs.cloud.google.com/domains/docs/reference/rest/v1/projects.locations.registrations/searchDomains.md.txt) | Search for an available domain. | `domains.registrations.list` |
| [retrieveRegisterParameters](https://docs.cloud.google.com/domains/docs/reference/rest/v1/projects.locations.registrations/retrieveRegisterParameters.md.txt) | Get parameters to register a new domain. | `domains.registrations.list` |
| [register](https://docs.cloud.google.com/domains/docs/reference/rest/v1/projects.locations.registrations/register.md.txt) | Register a domain. | `domains.registrations.create` |
| [list](https://docs.cloud.google.com/domains/docs/reference/rest/v1/projects.locations.registrations/list.md.txt) | List the registration resources in a project. | `domains.registrations.list` |
| [get](https://docs.cloud.google.com/domains/docs/reference/rest/v1/projects.locations.registrations/get.md.txt) | Get the details of a registration resource. | `domains.registrations.get` |
| [patch](https://docs.cloud.google.com/domains/docs/reference/rest/v1/projects.locations.registrations/patch.md.txt) | Edit the details of a registration resource. | `domains.registrations.update` |
| [configureManagementSettings](https://docs.cloud.google.com/domains/docs/reference/rest/v1/projects.locations.registrations/configureManagementSettings.md.txt) | Configure the management settings of a registration resource. | `domains.registrations.configureManagement` |
| [configureDnsSettings](https://docs.cloud.google.com/domains/docs/reference/rest/v1/projects.locations.registrations/configureDnsSettings.md.txt) | Configure the DNS settings of a registration resource. | `domains.registrations.configureDns` |
| [configureContactSettings](https://docs.cloud.google.com/domains/docs/reference/rest/v1/projects.locations.registrations/configureContactSettings.md.txt) | Configure the contact settings of a registration resource. | `domains.registrations.configureContact` |
| [delete](https://docs.cloud.google.com/domains/docs/reference/rest/v1/projects.locations.registrations/delete.md.txt) | Delete a domain. | `domains.registrations.delete` |
| [retrieveAuthorizationCode](https://docs.cloud.google.com/domains/docs/reference/rest/v1/projects.locations.registrations/retrieveAuthorizationCode.md.txt) | Retrieve the authorization code for a domain transfer. | `domains.registrations.configureManagement` |
| [resetAuthorizationCode](https://docs.cloud.google.com/domains/docs/reference/rest/v1/projects.locations.registrations/resetAuthorizationCode.md.txt) | Reset the authorization code for a domain transfer. | `domains.registrations.configureManagement` |
| [renewDomain](https://docs.cloud.google.com/domains/docs/reference/rest/v1/projects.locations.registrations/renewDomain.md.txt) | Renew a domain that has expired within the previous 30 days. | `domains.registrations.configureManagement` |
| [initiatePushTransfer](https://docs.cloud.google.com/domains/docs/reference/rest/v1/projects.locations.registrations/initiatePushTransfer.md.txt) | Transfer a `.uk` or `.co.uk` domain to another registrar. | `domains.registrations.configureManagement` |

## Access control using the Google Cloud console

You can use the Google Cloud console to manage access control for your
projects.

For detailed instructions, see
[Manage access to projects, folders, and organizations](https://docs.cloud.google.com/iam/docs/granting-changing-revoking-access.md.txt).

## What's next

- To get started using Cloud Domains, see the [Quickstart](https://docs.cloud.google.com/domains/docs/buy-register-domain.md.txt).
- To improve the security of your Cloud Domains configuration, see [VPC Service Controls support](https://docs.cloud.google.com/domains/docs/vpc-sc-support.md.txt).
- To find solutions for common issues that you might encounter when using Cloud Domains, see [Troubleshooting](https://docs.cloud.google.com/domains/docs/troubleshooting.md.txt).