Article

How to give someone access to one S3 folder without sharing your keys

The easiest way to give someone one folder of your bucket is a Nubbo Teams workspace: folder access by email, no keys to hand out. Compared with IAM policies.

The easiest way to give someone access to one S3 folder without sharing your keys is a Nubbo Teams workspace: you connect the bucket once, invite the person by email and give them that folder, and they work in the browser without ever seeing a key. It works the same with Amazon S3, Cloudflare R2, DigitalOcean Spaces, Wasabi, Backblaze B2 and any S3-compatible endpoint, with roles, a 365-day audit log and team zero-knowledge encryption. The Teams plan also includes Nubbo AI, built into the explorer and the editors with its own chat that answers questions about your files and analyzes documents, a public API, an MCP server for Claude, ChatGPT and Grok Build (formerly Cursor) and automations with n8n, Zapier and Make. On Teams, Slack brings team notifications and chat with Nubbo AI.

Handing over your access keys gives someone everything those keys can reach and leaves no trace of who did what. Besides a team workspace, the other clean way is an IAM policy limited to that folder.

The IAM way: a policy limited to one prefix

S3 has no real folders. A “folder” is a key prefix such as projects/acme/, and IAM policies can match it. The idea is to let the person list the bucket only under that prefix and read or write objects only inside it.

This policy, adapted from the examples in the Amazon S3 documentation, allows listing, downloading, uploading and deleting inside projects/acme/ and nothing else:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "ListOnlyTheFolder",
      "Effect": "Allow",
      "Action": "s3:ListBucket",
      "Resource": "arn:aws:s3:::amzn-s3-demo-bucket1",
      "Condition": { "StringLike": { "s3:prefix": ["projects/acme/*"] } }
    },
    {
      "Sid": "ReadAndWriteInTheFolder",
      "Effect": "Allow",
      "Action": ["s3:GetObject", "s3:PutObject", "s3:DeleteObject"],
      "Resource": "arn:aws:s3:::amzn-s3-demo-bucket1/projects/acme/*"
    }
  ]
}

The steps:

  1. In IAM, create a user (or a role) for that person.
  2. Attach the policy above with your bucket name and prefix. For read-only access, keep only s3:GetObject in the second statement.
  3. Give them credentials. For a person, AWS recommends temporary credentials through IAM Identity Center or federation; long-term access keys are for cases such as third-party clients that need them.

Two details from the AWS examples. To let people click through the folders in the S3 console, AWS adds statements for s3:ListAllMyBuckets, s3:GetBucketLocation and listing the top level of the bucket. And if every person gets their own folder, a single policy with the ${aws:username} variable (for example home/${aws:username}/*) replaces one policy per person; AWS notes this variable is not available when using IAM roles.

Other providers

  • Cloudflare R2. API tokens with Object Read only or Object Read & Write are limited by bucket. For one folder, R2 temporary credentials derived from a token can be restricted to specific prefixes of one bucket; they are short-lived, so you issue new ones when they expire.
  • Wasabi. Sub-users with IAM-style policies, and Wasabi documents a folder-level setup with the same s3:prefix condition.

Where the IAM way gets hard

It works, and for a script or one technical partner it is the right tool. For people it adds up: one user and one policy per person, credentials to send and rotate, an S3 client to install and no single place to see who has access to what. When someone leaves, you have to remember every user and key you created for them.

When it may fit better: you are giving access to a script, a server or one technical partner who already uses the AWS CLI.

The no-IAM way: a team workspace with Nubbo

Nubbo Teams puts a shared workspace on top of your buckets. You connect each bucket once with your keys, invite people by email and give each person access to what they need. They open it in the browser and never see a key.

Roles and access

Each person has a role:

RoleWhat they do
OwnerThere is only one: billing and big decisions
AdminEverything except the plan and billing
MemberWorks wherever you give them access
ViewerOnly views and downloads

Members get access to a whole bucket, a folder or a project (folders from one or several buckets brought together), at one of three levels: Manage, Edit or View. Giving someone a single folder is just choosing that folder and the level.

The keys stay out of reach

Only the owner and admins connect buckets and change their credentials. Keys are stored encrypted with AES-256-GCM and are never shown again, not even to the owner. Files travel straight between each person’s browser and your bucket.

Who did what

The team audit log keeps 365 days of activity, sign-ins included. Filter it by person, bucket or action and export it.

Encryption only the team can open

With team zero-knowledge on, content is encrypted in the browser and each person only gets the keys to what they can open. Neither Nubbo nor your provider can read it.

When someone leaves

Remove them and they lose access at once. The files stay in the team buckets. If they could open encrypted files, the owner or an admin renews those keys. If they connected or could edit team buckets, Nubbo reminds you to change those access keys at your provider.

Works with any provider

It is the same for Amazon S3, Cloudflare R2, DigitalOcean Spaces, Wasabi, Backblaze B2 and other S3-compatible endpoints, so you get lasting folder access without issuing keys per person, whichever provider you use. The Teams plan costs €13 or $13 per seat a month, with a minimum of 3 seats.

Keep it in Slack

If the team lives in Slack, connect each channel to the whole team, a project or a bucket and get the notices that matter there, such as new files in an inbox, and chat with Nubbo AI. When the team asks for approval before sharing outside, the owner or an admin approves or rejects links, inboxes and galleries from the channel. The Slack guide shows the setup.

Which option should you use?

  • Most people, and anyone who gives others folders in the browser, across more than one provider, with a clear record of who did what: a Nubbo Teams workspace.
  • A script, a server or one technical partner who uses the AWS CLI: an IAM policy limited to the prefix.

Conclusion

The easiest way to give someone one folder without sharing your keys is Nubbo Teams: invite people by email, give them a bucket, a folder or a project and keep the keys to yourself. IAM policies remain an option for AWS and Wasabi, with some work per person. See every integration the Teams plan includes or read about sharing files without making the bucket public.

Frequently asked questions

Can I restrict an IAM user to one folder of an S3 bucket?

Yes. S3 has no real folders, only key prefixes, so you write a policy that allows s3:ListBucket only with that prefix and object actions only on bucket/prefix/*. AWS documents this pattern in its policy examples.

Why not just give them my access keys?

Your keys open everything they can reach, you cannot tell who did what and taking access back means rotating the keys for everyone who uses them.

Can I limit a Cloudflare R2 token to one folder?

R2 API tokens with object permissions are limited by bucket, not by folder. For a folder, create temporary credentials from a token: they are bound to one bucket and can be limited to specific prefixes, but they expire.

Do team members in Nubbo see the bucket keys?

No. Only the owner and admins connect buckets, and stored keys are never shown again to anyone. Members work with the folders they have access to.

What happens when someone leaves the team?

They lose access at once and the files stay in the team buckets. If they could open encrypted content, the owner or an admin renews those keys. If they connected or could edit team buckets, change those access keys at your provider.

Sources

Prices and limits come from the official pages below. Providers change them, so check before you commit.