This page explains how to view and manage billing accounts and projects under an organization resource.
Viewing billing accounts under the organization resource
You can view the existing billing accounts under an organization resource using the Google Cloud console.
Console
Open the Google Cloud console:
Click on the Organization drop-down on top of the page, and select your organization resource.
All billing accounts for the organization resource are listed on the page.
Creating a new project in the organization resource
Console
You can create a project in the organization resource using the Google Cloud console after the organization resource is enabled for your domain.
To create a new project in the organization resource:
To create a new project, do the following:
-
Go to the Manage resources page in the Google Cloud console.
The remaining steps appear in the Google Cloud console.
- On the Select organization drop-down list at the top of the page, select the organization resource in which you want to create a project. If you are a free trial user, skip this step, as this list does not appear.
- Click Create Project.
- In the New Project window that appears, enter a project name and select a billing account as applicable. A project name can contain only letters, numbers, single quotes, hyphens, spaces, or exclamation points, and must be between 4 and 30 characters.
- Enter the parent organization or folder resource in the Location box. That resource will be the hierarchical parent of the new project. If No organization is an option, you can select it to create your new project as the top level of its own resource hierarchy.
- When you're finished entering new project details, click Create.
API
You can create a new project in the organization resource by
creating a project
and setting its parent
field to the organizationId
of the organization resource.
The following code snippet demonstrates how to create a project in an organization resource:
project = crm.projects().create(
body={
'project_id': flags.projectId,
'name': 'My New Project',
'parent': {
'type': 'organization',
'id': flags.organizationId
}
}).execute()
Viewing all projects in an organization resource
Console
To view all projects under an organization resource using the Google Cloud console:
Go to the Google Cloud console:
From the project picker at the top of the page, select your organization resource.
The Recent tab will show recently accessed projects and folders. Click the All tab to view all projects and folders.
The No organization option in the Organization drop-down lists the following projects:
- Projects that do not belong to the organization resource yet.
- Projects for which the user has access to, but are under an organization resource to which the user does not have access.
gcloud
To view all projects directly under the organization resource, run the following command:
gcloud projects list --filter 'parent.id=[ORGANIZATION_ID] AND \
parent.type=organization'
This command does not show every project in your hierarchy, only the projects that are directly under your organization resource. To list every resource in your hierarchy, see Listing all Resources in your Hierarchy.
API
Use the
projects.list()
method to list all the projects directly under the organization resource, as
shown in the following code snippet:
filter = 'parent.type:organization parent.id:%s' % flags.organizationId
projects = crm.projects().list(filter=filter).execute()
This method does not show every project in your hierarchy, only the projects that are directly under your organization resource. To list every resource in your hierarchy, see Listing all Resources in your Hierarchy.
Deleting projects in an organization resource
You can delete a project from an organization resource.
Console
To delete a project using the Google Cloud console:
- Go to the Projects page in the IAM & Admin section:
- Click on the Organization drop-down on top of the page.
- Select your organization resource. All projects in the organization resource are listed on the page.
- In the list of projects, select the project you wish to delete, and click Delete Project.
- Enter the project ID and click Shut down.
Deleting an organization resource
The organization resource is bound to your Google Workspace (formerly G Suite) account.
If you would simply prefer not to use the organization resource, we recommend restoring the organization resource's IAM policy to the original state using the following steps:
- Add your domain to the
Project Creator
andBilling Account Creator
roles. - Remove all other entries in the organization resource's IAM policy.
This will allow your users to continue to create projects and billing accounts while allowing the Google Workspace Super Admin to recover central administration later, if desired.
If in fact you wish to delete your organization resource and all the resources associated with it, delete your Google Workspace account.