gpt-4.1-2025-04-14· OpenAI
LMArena Human Preference 140K
in GCP, can I create groups at the project level, as opposed to organization level?
- User
in GCP, can I create groups at the project level, as opposed to organization level?
- Assistant
No, you cannot create Google Groups at the project level in GCP.
Here’s how it works:
- Google Groups are not a GCP resource; they are managed at the Google Workspace (formerly G Suite) or Cloud Identity level, which is organization-wide.
- Groups are global within your Google Workspace or Cloud Identity domain. You create and manage them via the Google Groups interface or the Admin Console.
- GCP projects do not have their own local group management. You cannot create a group that is scoped only to a single project.
How do you use groups in GCP IAM?
- You create a group in Google Workspace/Cloud Identity.
- You add users (and only users, not service accounts) to that group.
- You assign IAM roles to the group at the project, folder, or organization level in GCP.
Example:
gcloud projects add-iam-policy-binding my-project \ --member="group:devs@example.com" \ --role="roles/viewer"Summary Table
Feature Project Level Organization Level Create Google Groups ❌ ✅ Assign IAM to Groups ✅ ✅ Alternatives
- If you need project-specific groupings, you must create a group in your domain and use naming conventions (e.g.,
myproject-devs@example.com). - For more granular access, assign IAM roles directly to users or service accounts.
In short:
Google Groups are always organization/domain-wide, not project-scoped. You can only assign existing groups to project IAM roles, not create new groups within a project.
Let me know if you need advice on structuring groups for GCP IAM!