How to share an object from the bucket – Google Cloud Storage

Share an object publicly

To create a publicly accessible URL for the file:

  1. Click the drop-down menu associated with the file.

    The drop-down menu appears as three vertical dots to the far right.

  2. Select Edit permissions from the drop-down menu.
  3. In the overlay that appears, click the + Add item button.
  4. In the row that is added, do the following:
    • In the Entity column, select User.
    • in the Name column, enter allUsers.
    • In the Access column, select Reader.
  5. Click Save.

You should see that the file is publicly accessible and has a link icon. The link icon reveals a shareable URL that looks like:

https://storage.googleapis.com/<your-bucket-name>/kitten.png

To stop sharing the file publicly:

  1. Click the drop-down menu associated with the file.

    The drop-down menu appears as three vertical dots to the far right.

  2. Select Edit permissions from the drop-down menu.
  3. In the overlay that appears, click the X to the right of the allUsers entry.
  4. Click Save.

You should see that the file no longer has a link icon associated with it.