Set custom owner_id when uploading a file (Supabase Storage)
Is it possible to explicitly set the owner_id field in storage.objects when uploading a file? I need to associate the object with a tenant ID instead of the default user ID.
1 Reply
Not unless you change the sub claim in the JWT. Not sure if you could do it with a storage.objects insert trigger or not. Sort of risky.
Could you use the metadata option?