This guide explains how to move a project within your organization.
The project resource is the base-level organizing entity in a Google Cloud organization. Projects are created under organizations, and can be placed under folders or the organization resource itself, forming the resource hierarchy. You can move project resources within your resource hierarchy, but should consider the policy implications of the move before you make it.
When you move a project, any Identity and Access Management policies or organization policies that are directly attached will move with it. However, a project in your resource hierarchy is also affected by the policies that it inherits from parent resources. If a project inherits an IAM role that provides users permission to use a particular service, users will not have access to that service at the destination unless it would inherit the permission at the destination as well.
For example, consider a service account has the Storage Object Creator role bound to a user at Folder A. The service account has permissions to upload data to Cloud Storage in any project in Folder A. If you moved one of these projects Folder B, which does not have the same inherited permissions, the service account for that project loses the ability to upload data, resulting in a service outage.
These same considerations apply if organization policies are defined at the source and destination folders. Like IAM policies, organization policies are inherited. Consequently, you must ensure that your organization policies are consistent between source and destination folders.
To learn more about organization policies, see Introduction to the organization Policy Service.
To move a project, you need the following IAM roles:
resourcemanager.projects.updatepermission on the project, which typically comes from having either the Project Editor or Project Owner roles on the project.
resourcemanager.projects.movepermission on both the source folder and the destination folder. This permission is typically part of the Project Owner, Project Editor, Folder Admin, or Folder Mover roles. If the resource is not in a folder, you will need this permission on the organization node.
To move a project:
In the Google Cloud Console, go to the Manage resources page.
Select your Organization from the Organization drop-down on the top left of the page.
Click on your project's row to select your project from the list of resources. Note that you must not click on the name of the project, which takes you to the project's IAM page.
Click on the options menu (the vertical ellipsis) in the row and click Move.
Click Browse to select the folder to which you want to move the project.
To move a project, run the
gcloud beta projects move
gcloud beta projects move PROJECT_ID \ --DESTINATION_TYPE DESTINATION_ID
PROJECT_ID is the ID or number of the project you wish to move.
DESTINATION_TYPE is either
DESTINATION_ID is the ID of the organization or folder to which you want to move the project. You can only specify one target.