Google Cloud: Why am I not an organization administrator? - google-cloud-platform

I am attempting to expand my usage of Google Cloud and running into issues. When I go to IAM & Admin -> IAM and select my organization, I get an error: "You do not have sufficient permissions to view this page". A bit lower: "You are missing the following required permissions: resourcemanager.organizations.getIamPolicy".
I'm confused by this because if I select a project IN the organization I see I have the "Organization Administrator" role which has that exact permission assigned. I also have "Owner" role.
I also cannot upgrade from Basic support to any paid support due to this issue, so I literally cannot get any help from anyone at Google.
I created this org! Do I need to delete everything and start over? (ugh)

Based on what #JohnHanley's shared on the comments:
Organization Admin must be applied (bound) at the organization level. If you created the organization, then you have a Workspace or Identity account. Use that account to login. The problem should be easy to solve once you are using the correct account to authenticate.
In addittion to that;
To administer a particular project or product on GCP, you must ask your organization or the team managing your Google Workspace Admin to increase your role and authorization to a higher hierarchy.

Related

Unable to view organizational policies of GCP organization I own

Within an organization of which I am the sole admin, I am unable to enumerate and therefore manage the organizational policies from within the GCP console. Does anyone know why this might be and/or how I'd go about fixing it? Any guidance as to documentation that was perhaps missed during setup, etc. would be appreciated.
Organization Administrator includes the missing permissions resourcemanager.organizations.get along with orgpolicy.constraints.list and orgpolicy.policies.list.
Do note that this role is not automatically granted for being the sole user on the account, this has to be assigned via the IAM menu.
The Owner role does not have these permissions as the Owner is only limited on a Project level.

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.

How to create folders under the organization in Google Cloud Platform (GCP)?

I created a GCP account, accepted all licensing agreements.
I setup an Organization and a billing account, got that confirmed.
I am now trying to create a folder under the organization that was setup, and get a yellow warning ! triangle:
You do not have permission to create folders in this location.
Why?
How do I fix this?
When I go to any page in IAM it gives me warnings that I do not have permissions with anything related to IAM. I can't grant myself any further permissions.
I am logging in as the same user that created the GCP account (which is a GSuite user).
any help would be appreciated. There is no support of any kind direct from Google with a paid GCP account, I am pointed here.
In order to access the permissions to create folders perform the following steps:
Visit console.cloud.google.com
Log in as the Super Admin
In the TopAppBar, next to Google Cloud Platform, select the resource drop-down as-if you were going to switch organization units or resources
In the resulting pop-up, make sure Select from at the top left has the proper organizational unit selected, then from the top right click on the three vertical dots and select IAM/Permissions
As an alternative, you could simply follow the first 3 steps above and then
Click the menu stack at the far left of the TopAppBar, selecting from the navigation drawer the IAM sub-menu of the IAM & Admin menu option.
Next, in order to grant the proper permissions to the Super Admin:
Find the Super Admin in question from the list of IAM accounts, or alternatively you can add a new user or service account by selecting the appropriate action from the top of the view.
On the far right of the user in question, after the listed roles, click on the pencil icon that indicates Edit principal.
In the resulting drawer you have the option to edit the roles the user has, including adding new ones.
Organizational Admin provides almost every permission needed for managing resource, however it does not include creating Folders. For this, you need to scroll down in the list of Roles to Resource Manager (you can filter for "Folder", don't filter for "Resource" - it's confusing...I know) and on the Roles available for the category you can choose Folder Admin or Folder Creator to be able to create folders.
This may be a limitation of user accounts that were created before creating folders became available. I'm sure Google would never simply enable administrative privileges blindly, not even for current admins, just because they are newly created features.
In other words, I'm unsure if someone who created a GCP account now as a Super Admin would not have Folder Creation rights as an Organizational Admin - but if you happen to have that limitation as an Organizational Admin; the above is how to resolve the issue.
When you create an organization, you are not automatically assigned permissions (roles) in the organization. You need to add roles to your IAM member account.
There are several roles to consider. For the Project Owner, add the role roles/
resourcemanager.organizationAdmin at the Organization Level.
Access Control for Organizations using IAM
Also, review the roles Project Creator and Billing Account Creator
Managing Default Organization Roles
As was already pointed out by John Hanley, you will need to have the correct permissions to create a Folder in your organization:
If you are not the Prooject Owner, ask your administrator to grant you permissions to your account to create folders, I see you follow the access_control manual, but be sure you have the Folder Admin role:
Also, take a look at the “best practices“ regarding folders IAM permissions, this may help to configure them.

Several missing permissions on GCP Console after account signup

Yesterday, I signed up for a Google Cloud Account. Since I want to link the user access with our own identity platform, I followed the instructions from this article:
https://cloud.google.com/blog/products/identity-security/using-your-existing-identity-management-system-with-google-cloud-platform
I got as far as the account is created but in the GCP Console, on several screens, I get errors of missing permissions to view things, let alone change things. Here is an example:
I was the one who created the account and in IAM I am listed as the Organization Administrator. How come I am missing so much permissions? Who within Google Cloud Support is listening/reading this and is able to help me?
This is not a bug that needs to be fixed. As the Owner, you can add any roles that you need to your account. Neither the Owner nor the Organization Administrator have all roles assigned. You can, however, add desired roles to grant your identity more permissions. Consult the documentation for permissions assigned to each role. Then add the required roles to your identity (email address).
However, I recommend that you do not use an account with Owner or Organization Admin roles. Lock that identity in your safe after creating several new identities that use the principles of least privilege and have MFA enabled.

GSuite/Cloud Platform - Fixing or Resetting Permissions

I had created a Google Cloud Platform project and an associated service account for accessing the Directory API in the Admin SDK. After some experimentation I decided to remove that project and the service account and start from scratch. Around that same time I also changed the primary domain on our GSuite account.
I believe this combination has screwed up my permissions in the Google Cloud Platform. I'm the only SuperAdmin on our GSuite account, and yet it seems I'm unable to do many things (examples below). Any way to completely reset permissions or the Cloud Platform account entirely? There are no projects to lose at this point.
Examples:
When I try to create a new project, when choosing "location", the only option (the name of the organization, still using the old primary domain) tells me "You do not have permission to create projects in this location"
If I go to IAM & Admin > Settings and try to rename the organization, it says "You do not have the permission to rename this resource.
Required permission(s): All of resourcemanager.organizations.get and resourcemanager.organizations.update"
If I go to IAM & Admin > Roles a banner at the top says "You do not have sufficient permissions to view this page"
I contacted GSuite support, but since the problem itself was on the Cloud Platform side they couldn't really do much for me.
I'm still not sure what caused the permissions to get mangled, but creating another GSuite admin and using that one to repair permissions took care of it.