Multi-Tenant Architecture for Storage

Hello everyone! I'm building a multi-tenant architecture for files uploaded by groups of users (organizations, teams, etc.) and individual users.

For example:
  • organizations can upload their logos (and can only be updated/read by users of the organization)
  • users can upload their avatars (and can only be updated by users)
Would it be best to:
  1. create a bucket for each organization with subfolders for each storage items category (logos, assets, etc.)
  2. create a bucket for each item category, and control access using policies/RLS?
  3. neither?
Thank you in advance!
Was this page helpful?