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
Add the user (email) who owns the project to migrate from the source organization.
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].
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With