Skip to content
Back

Storage Permission Issue: Team-based `read()` permissions return 404 instead of allowing access

  • 0
  • Storage
  • Cloud
_alnes_
24 Sep, 2025, 20:40

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
TypeScript
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! 🙏

TL;DR
Storage permission issue with team-based `read()` permissions causing 404 error instead of allowing access for confirmed team members. Setting `Permission.read(Role.any())` as a workaround confirms team permission problem. Seeking help for known issue or missing requirements for team permissions.
Kenny
24 Sep, 2025, 20:45

How are you accessing the file? Via it's url?

_alnes_
24 Sep, 2025, 20:58

yes:

TypeScript
 
this.appwrite.storage.getFileDownload({
      bucketId: bucketId,
      fileId: storageFileId
    });
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more