you do not have permission to create projects in this location - google-cloud-platform

SOLVED:
In Google cloud platform I need to create a new project to create a new oauth credential for an app.
But it will not let me create any more projects under my organisation.
It says I do not have permission to create projects in this location.
I only have 2 projects currently and there is only 1 org. No I cannot use an exisitng project since I need to setup a different oauth consent screen.
I am the admin, with owner permissions, so there is nobody else I can contact.
I have a g suite account, so I am wondering if this is the cause. More and more Google services seem to be breaking for g suite users and only work on free gmail accounts.

You need the permission resourcemanager.projects.create. This permission is defined in the role roles/resourcemanager.projectCreator aka "Project Creator.
Add this role at the Organization level.

Related

Google Cloud - Can't find the owner of a project

We have some Google Cloud Projects which use Google Calendar APIs and Sheets.
Developers who created this projects have left and their accounts have been deleted. The credentials created by them still work but we can't access those projects in Google Cloud dashboard from any of our existing accounts.
I tried accessing like this: https://console.cloud.google.com/apis/credentials?project=project-name-goes-here
All of us get
You do not have sufficient permissions to view this page. You are missing the following required permissions:
Project
project-name-here
resourcemanager.projects.get
How can an admin can reclaim these projects?
If an account created these projects deleted, will these projects still work?
We don't pay for support so we can't contact anyone from Google Cloud team.
Is there a way to find which Google account do these projects belong to?
Can anyone from Google cloud team clarify?
Thanls
If your Project is under an Organization, the organization is still the owner. You would need to contact the Organization Owners and modify the Owners of the resource.
You can also create a support ticket to the GCP Account and Resource Recovery Request team

Organization Admin somehow doesn't have access to create a folder in GCP?

I'm pretty sure this is an actual bug with GCP at the moment. I'm the Organization Admin for the GCP organization (I've quadruple checked this, and that I'm signed in with the correct account).
But when I go to Manage Resources, And try to create a new folder, it doesn't let me select the organization as the location, because I "don't have the required resourcemanager.folders.create permission". If I try to create the folder in a project that's in the organization, I get "Unknown error".
I'm the user who created the organization and all projects in the first place, and the only G-Suite user that even exists on this domain.
If you review the permissions that Organization Administrator has, resourcemanager.folders.create is not one of them.
IAM Roles
Org Admin by itself has almost infinite power because it can set IAM policies. This means the Org Admin can grant any IAM permission to any identity.
Grant yourself the required role such as roles/resourcemanager.folderAdmin.
Note: I recommend keeping the Org Admin as a separate identity that you lock away and only use to manage the organization. Create separate identities for day-to-day operations, development, and deployment.

Add cloud identity to existing Google Cloud Projects

I have 2 Google Cloud projects with GKE and various other services enabled and running.
None of those projects has an organization resource assigned. There are also many Users and serviceaccounts inside the projects that are used in production.
We use (example) adminaccount#example.com for those projects.
I would like to add Google Identity Free, so that I will be able to use Azure AD Users with SSO
So I created a new Google Identity Account with the username identityadmin#example.com which is not member of my existing Gcloud projects.
The domain (example.com) has not been verified so far.
What will I have to do to get this running with my existing projects?
I read that first I would need an organization resource, which would be created after I verify the domain.
Is it safe to do that? Will I afterwards be able to link my existing projects to this new organization without downtime and loss of existing permissions?
I don't understand how a new organization could be recognized by my existing projects, because there is no link between them.
The goal of course is not to have any downtime.
Sure, I would purchase Google support, but that's only possible If you have an organization, what I don't have.
I'm really confused and troubled.
Looking forward to any suggestions.
Many thanks in advance!
Roland
Firstly, you need to create your new organization. Start by creating a Google Workspace environment (go to https://admin.google.com and create it). You can create the org with a Google Workspace free trial and then cancel your subscription, no worry, I'm paying nothing!
Secondly, with your new Google Workspace account, and your new user, go to https://console.cloud.google.com. Here, select your organization, and go to IAM. Here add as member the user account where your project are created in the "No Organization" organisation, and grant it the role Organization Administrator
Perfect. Now, go back to your user account (freshly granted) and go to ressource manager. I use the project picker window to go there
And eventually, migrate your project. Select one project from "No Organization", click on migrate, select the Organization, and validate. That's all. No downtime
Your Cloud Identity organization is created when you finish your signup and setup steps for your Cloud Identity service
To answer your questions:
What will I have to do to get this running with my existing projects?
The simple answer is Migrate projects and billing accounts and set permissions
This documentation explains how Grant access to billing accounts and Grant access to projects
Will I afterwards be able to link my existing projects to this new organization without downtime and loss of existing permissions?
Once a Google Cloud Organization resource has been created for your domain, you can move your existing projects into the organization.
There should be NO server downtime or impact as a result of migration.
Take into consideration that the link between projects and billing accounts is preserved, irrespective of the hierarchy.
To migrate a project using you will need the following permissions: resourcemanager.projects.create on the destination organization, typically granted by the Project Creator role.
resourcemanager.projects.update and resourcemanager.projects.setIAMPolicy on the project you are migrating, typically granted by the Owner role.
You can get further information in the following link: Migrating projects with no organization
Additionally to contact support you could create a case using this link and it doesn’t matter if you don’t have an organization.

Create GCP project without organization

I have a G Suite account. GCP created an organization automatically when I logged-in with the G Suite super admin. When I'm trying to create a project in the console, the organization is automatically chosen, even when I'm trying to choose 'No organization'.
Is there a way to create a project in the GCP console that is not under the organization?
Thanks
According to the Organization docs:
Once an Organization resource is created for a domain, all GCP projects created by members of the account domain will by default belong to the Organization resource.
To get an organizationless project, create it with an external account and give ownership to your G Suite Google Workspace account. Then remove the original owner account, and you'll have a project outside of your org.

You do not have permissions to create projects outside of an organization

Using GSuite admin account in developer console. After creating new project in organization it says:
Google Cloud Organization is now available for your domain!
And after that I can't create projects outside of organization. It says:
You do not have permissions to create projects outside of an organization
Is it possible to add permissions to create projects like this?
TLDR
You need the permission Project Creator at the organisation level
Visit https://console.cloud.google.com/iam-admin/iam
From the top project selection dropdown, choose the "organisation", as shown in the screenshot below (it would have an office building symbol, unlike projects which has 3 dots grouped together symbol).
The URL should now have an organizationId like https://console.cloud.google.com/iam-admin/iam?organizationId=435781836209
On this page, click "ADD", enter the email id in "Principals" and add the role as Project Creator.
LONG ANSWER
Apparently, having "admin" permissions doesnt suffice if you dont have the Project Creator permission.
As admin, I had the following permissions, but I was still unable to create the a project because I didnt have Project Creator permission:
Access Approval Approver
Access Context Manager Admin
Actions Admin
Recommendations AI Viewer
Access Transparency Admin
Bigtable Administrator
Billing Account Administrator
Project Billing Manager
Cloud Asset Owner
Compute Admin
Compute Network Admin
Compute Organisation Security Policy User
Compute Organisation Resource Admin
Organisation Role Administrator
Notebooks Admin
Owner
Folder Admin
Folder Creator
Folder IAM Admin
Folder Mover
Project IAM Admin
Service Broker Admin
Storage Admin
Would love to meet the gentleman at Google who came up with this idea. The Owner permission's description reads as Full access to all resources. (I am yet to see a description so unprofessionally misleading.)
Use https://console.cloud.google.com/iam-admin/iam/organization and make sure that folder admin is checked for the permission.
You cannot directly create projects outside of any organization with a GSuite account anymore.
At most you can create a project in another organization if you are given permission (useful for a developer house).
Projects without any organization are just for personal #gmail.com accounts.