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 enables you to give more granular access to specific Google Cloud resources and prevents unwanted access to other resources. IAM enables you to adopt the security principle of least privilege so that you grant only the necessary access to your resources. IAM enables you to 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 (
Cloud Domains, you can configure both project-level and
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.
- Export or transfer the domain registration.
- Import a domain from Google Domains to Cloud Domains.
To understand role types, see the IAM basic and predefined roles reference.
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.
For lists of the roles and permissions that Cloud Domains supports, see the following sections.
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 section.
Cloud Domains Admin
Full access to Cloud Domains Registrations and related resources.
Contains 3 owner permissions
Cloud Domains Viewer
Read-only access to Cloud Domains Registrations and related resources.
The following table lists the permissions that the caller must have to call each method.
|Method (locations.registrations.)||Description||Required permissions|
|searchDomains||Search for an available domain.||
|retrieveRegisterParameters||Get parameters to register a new domain.||
|register||Register a domain.||
|retrieveTransferParameters||Get parameters to transfer a domain.||
|transfer||Transfer a domain.||
|list||List the registration resources in a project.||
|get||Get the details of a registration resource.||
|patch||Edit the details of a registration resource.||
|configureManagementSettings||Configure the management settings of a registration resource.||
|configureDnsSettings||Configure the DNS settings of a registration resource.||
|configureContactSettings||Configure the contact settings of a registration resource.||
|export||Export a domain.||
|delete||Delete a domain.||
|retrieveAuthorizationCode||Retrieve the authorization code for a domain transfer.||
|resetAuthorizationCode||Reset the authorization code for a domain transfer.||
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.
- To get started using Cloud Domains, see the Quickstart.
- To improve the security of your Cloud Domains configuration, see VPC Service Controls support.
- To find solutions for common issues that you might encounter when using Cloud Domains, see Troubleshooting.