Working With Projects

Working With Projects

Overview

This section discusses how to work with projects in Google Cloud Storage.

Project Members And Permissions

There are three groups of users associated with each project:

  • Project Owners are allowed to list, create, and delete buckets, and can also perform administrative tasks like adding and removing team members and changing billing. The project owners group is the owner of all buckets within a project, regardless of who may be the original bucket creator.
  • Project Editors are allowed to list, create, and delete buckets.
  • Project Viewers are allowed to list buckets within a project.

These project groups make it easy to set up a bucket and start uploading objects with access control appropriate for a project at your company, as the three group memberships can be configured by your administrative staff. Control over projects and their associated memberships is provided by the Google Cloud Platform Console.

How Project Membership Is Reflected In Bucket Acls

When you create a bucket without specifying an ACL the bucket is given a "project-private" ACL, which grants the permissions described in the previous section. Here's an example of such an ACL:

[
  {
    "entity": "project-owners-12345",
    "projectTeam": {
      "projectNumber": "12345",
      "team": "owners"
    },
    "role": "OWNER"
  },
  {
    "entity": "project-editors-12345",
    "projectTeam": {
      "projectNumber": "12345",
      "team": "editors"
    },
    "role": "OWNER"
  },
  {
    "entity": "project-viewers-12345",
    "projectTeam": {
      "projectNumber": "12345",
      "team": "viewers"
    },
    "role": "READER"
  }
]

You can edit the bucket ACL if you want to (see gsutil help acl), but for many cases you'll never need to, and instead can change group membership via the Google Cloud Platform Console.

Identifying Projects When Creating And Listing Buckets

When you create a bucket you need to provide the project ID that will own the bucket you want to create, and when you want to list your buckets, you need to provide the project ID that you want to list. By default, gsutil uses the default_project_id in your ~/.boto configuration file. You can instead use the -p option (e.g., "gsutil mb -p <project-id>" or "gsutil ls -p <project-id>"). The project ID you use must be either the project ID or the project number from the Google Cloud Platform Console dashboard.

Note that the project name is a user-friendly name that you can choose. It is not the same thing as the project ID that is required by the gsutil mb and ls commands.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Storage Documentation