Hey ! I'm creating a bucket, that should have same id like my team.$id I would like this storage to have permissions - admins - can read and write all, rest of team members, can all create new document, each document will have own permissions as well.
when i do this:
const newBucket = await storage.createBucket(partnerUniqueId, `BUCKET_${partnerData.name.replace(/ /g, "_")}`, [
// All team members can write to this bucket
Permission.write(Role.team(partnerUniqueId)),
// All team admins can write and Read to this bucket
Permission.write(Role.team(partnerUniqueId, "admin")),
Permission.read(Role.team(partnerUniqueId, "admin")),
// all Admins can read from this bucket
Permission.write(Role.label("admin")),
Permission.read(Role.label("admin")),
], true);
I they all get automaticlly also UPDATE + DELETE permission, which i dont want to have. (like in the image attached)
How can i prevent this, no one of the team memebers should be able to update and delete.
Bucket create with wrong/too many Permissions
yes. write is an alias for create + update + delete
Recommended threads
- Frequent 500 Internal Server Errors - Pr...
PROJECT ID: 6951f2xxxxx1ee9e750a REGION: Singapore (sgp.cloud.appwrite.io) PLAN: Pro Our production application experiences **500 Internal Server Errors** mult...
- Issue with Custom SMTP
Hey everyone, I'm facing an issue when updating my Custom SMTP settings on Appwrite Cloud. The UI fails silently (no visual errors), but when checking the cons...
- Flutter OAuth2 webAuth Bug?
I created with flutter an app where I can login in with my Microsoft Account. When I compile it to Web (WASM) or Android (aab) then there is no problem what so ...