Skip to content

Console roles analyst/editor/billing remove all project access on self-hosted (no backend equivalent) #13730

Closed

Description

@JoshiJoshiJoshi

🐛 Bug Report

The Console lets an organization member be set to analyst, editor or billing,
but those roles do not exist in the backend. A member holding one of them loses
access to every project in the organization.

Steps to reproduce

  1. Self-hosted 2.2.0, Console image appwrite/new:1.1.103-self-hosted.
  2. Organization → Members → set a member's role to analyst (same for editor
    and billing).
  3. Sign in as that member and open any project.

Actual

Project Not Found — This project could not be found or you do not have access
to view it.

Setting the role back to developer or owner restores access immediately.

Cause

Projects and project resources carry permissions for two roles only
(src/Appwrite/Platform/Permission.php):

DbPermission::read(Role::team(ID::custom($teamId), 'owner')),
DbPermission::read(Role::team(ID::custom($teamId), 'developer')),
…
DbPermission::read(Role::team(ID::custom($teamId), "project-{$projectId}-owner")),
DbPermission::read(Role::team(ID::custom($teamId), "project-{$projectId}-developer")),

app/config/roles.php likewise defines only guests, users, admin,
developer, owner and keys. The strings analyst, editor and billing do
not appear anywhere in the backend, so a member with such a role matches no read
permission on the project document.

These roles appear to be cloud/billing features — the old console sourced its role
list from $lib/stores/billing and gated project-specific roles behind
isCloud && $currentPlan?.supportsProjectSpecificRoles. The new console offers them
unconditionally.

Expected

Either the Console offers only roles the instance actually supports, or the backend
grants these roles a meaningful scope. Assigning a role from the UI should not
silently remove all access.

Environment

  • Appwrite 2.2.0, self-hosted, Docker Compose
  • Console image appwrite/new:1.1.103-self-hosted

Related: #13729 — same root cause (cloud console shipped without the self-hosted
gating), but a separate defect with a separate fix.

Activity

  1. added
    product / auth
    product / console
    product / databases
    product / self-hosted
    product / storage
    on Sep 16, 2026
  2. HarshMN2345 commented on Sep 17, 2026

    @HarshMN2345
    Member

    Please update your Console image to appwrite/new:1.1.114-self-hosted 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    product / authproduct / consoleproduct / databasesproduct / self-hostedproduct / storage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions