Change a file's owner in storage.objects

Open
#247 0 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
postgresql, typescript

Research direction

Start with the SupabaseClient and storage.objects references in the issue, then review storage-api issue #65 to understand the existing ownership cleanup behavior. Define the admin or server-side transfer behavior and verify that ownership changes to the selected user without weakening access controls.

Written by the indexing model from the issue text.

Description

enhancement

I've been searching for a way to change the owner of a file in storage.objects from the SupabaseClient and can't find a way. The closest solution I found was to make it null after the user is deleted (via https://github.com/supabase/storage-api/issues/65).

I would like the ability for an admin user to change / transfer the ownership of a file to another user, or handle that operation pn the server.

Dominant language
TypeScript
Stars
1.3k
Forks
307
Avg merge
1d 22h
Merged PRs (30d)
44

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from supabase/storage

All issues in supabase/storage

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.