Storage Permission Issue: Team-based `read()` permissions return 404 instead of allowing access
- 0
- Storage
- Cloud
Problem:
Files uploaded with Permission.read(Role.team(teamId)) return 404 Not Found when accessed by confirmed team members, even though the user is verified to be a member of that team.
If i set permission to Any:Read it works.
Environment:
- Appwrite Version: 1.8.0 Cloud
- Platform: Web (Angular frontend)
- Storage: Appwrite Cloud
permissions: [
Permission.read(Role.team(teamId)),
Permission.update(Role.team(teamId, TeamRole.MANAGER)),
Permission.delete(Role.team(teamId, TeamRole.MANAGER)),
Permission.write(Role.user(this.authService.currentUser()!.$id))
],
Expected Result: File should be accessible since user is confirmed team member (with Database same permissions works with same user/team).
Actual Result: 404 Not Found error (same as if file doesn't exist)
Workaround: Adding Permission.read(Role.any()) makes files accessible, confirming it's a team permission issue, not file existence.
Question: Is this a known issue with team-based read permissions? Are there any specific requirements for team permissions that might be missing?
Any help would be greatly appreciated! π
How are you accessing the file? Via it's url?
yes:
this.appwrite.storage.getFileDownload({
bucketId: bucketId,
fileId: storageFileId
});
Recommended threads
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- One-time Cloud migration blocked by data...
Hi, Iβm blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...