Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stuck on moving GCP project to an organization

I'm trying to move a GCP project (on a private account) to a GCP organization that I manage. I know that I have to have the correct IAM rights, which I believe I do. I'm Owner, Folder Admin, Organization Administrator, Project Deleter and Project Mover in the project. I'm also Project Owner and Project Mover of the project to be moved.

But when I try to move it, I get:

ERROR: (gcloud.alpha.projects.move) User [(organization account)] does not have permission to access project [(the project to be moved] (or it may not exist): The caller does not have permission

Any experiences or suggestions?

BR, Daniel

like image 817
Daniel Avatar asked Oct 17 '25 04:10

Daniel


1 Answers

1. Target organization

Add the user (email) who owns the project to migrate from the source organization.

  • IAM and Administration
  • Manage resources
  • Select the target organization
  • Permissions -> Add Member

Permission to the user in the target organization:

Project Creator.

You can do it through UI or Gcloud.

Note: Delete the line break \

$ gcloud organizations add-iam-policy-binding ORGANIZATION_ID \
--member user:YOUR-EMAIL --role=roles/resourcemanager.projectCreator


Success: Updated IAM policy for organization [ORGANIZATION_ID].

2. Source organization

Permissions to the user in the project to be migrated in the source organization:

Project Mover

Note: Delete the line break \

$ gcloud config set project PROJECT_ID
$ gcloud projects  add-iam-policy-binding PROJECT_ID \ 
--member user:YOUR-EMAIL --role=roles/resourcemanager.projectMover


Success: Updated IAM policy for project [PROJECT_ID].

Finally, migrate the current project to an organization

$ gcloud alpha projects move PROJECT_ID --organization ORGANIZATION_ID

GL

  • Granting changing
  • Migrate projects
like image 114
Braian Coronel Avatar answered Oct 20 '25 02:10

Braian Coronel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!