NavigationContentFooter
Jump toSuggest an edit

How to manage object visibility

Reviewed on 19 December 2024Published on 27 May 2021

Object visibility specifies whether your object is visible to others or not, independently from bucket visibility.

Before you start

To complete the actions presented below, you must have:

  • A Scaleway account logged into the console
  • Owner status or IAM permissions allowing you to perform actions in the intended Organization
  • An Object Storage bucket
Note

All objects are private by default, even if they are in a public bucket. A private file in a public bucket cannot be accessed publicly.

Manage the visibility of a single object

  1. Click Object Storage in the Storage section of the side menu. The list of your buckets displays.
  2. Click the name of your bucket. A list of your objects displays.
  3. Click «See more Icon» next to the selected object name.
  4. Click Visibility. A pop-up appears.
  5. Check Public or Private according to your preference.
  6. Click Update object visibility to confirm.
Tip

If you upload a file using the CLI, you can make it public by using the --acl public-read parameter. However, bucket policies take precedence over ACLs.

Manage the visibility of multiple objects

You can manage the visibility of multiple ojects at a time using a bucket policy as shown below. By allowing GetObject operations to everyone, the desired objects can be accessed by any person with the link to the object.

{
"Id": "object-visibility",
"Version": "2023-04-17",
"Statement": [
{
"Sid": "make-objects-visible",
"Principal": "*",
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": [
"my-bucket/public-objects"
]
},
]
}
See also
How to download files from a bucketHow to access objects via HTTPS
Was this page helpful?
API DocsScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCareers
© 2023-2025 – Scaleway