Skip to content

Console invite always assigns the owner role β€” role selector missing (regression from the old console)Β #13729

Closed

Description

@JoshiJoshiJoshi

πŸ› Bug Report

Inviting a member to a console organization always grants the owner role. The
invite dialog only has an email field, and the Console hard-codes the role. On a
self-hosted instance every invited person therefore gets full ownership of the
organization the moment they accept, and the role can only be corrected afterwards.

Steps to reproduce

  1. Self-hosted 2.2.0, Console image appwrite/new:1.1.103-self-hosted.
  2. Organization β†’ Members β†’ Invite.
  3. Only an email field is shown β€” no role can be chosen.
  4. Accept the invite: the new member is an owner.

Cause

In the shipped console bundle the role is a constant:

Ay = ["owner"]
… createMembership({ teamId: e, email: n, roles: [...Ay], url: i })

The API expects the role at invite time β€” roles is a required parameter of
POST /v1/teams/{teamId}/memberships and is stored with the membership on
creation.

Regression

The previous console had a selector (appwrite/console,
src/routes/(console)/organization-[organization]/createMember.svelte):

let role = $state<string>(isSelfHosted ? 'owner' : 'developer');
<InputSelect required id="role" label="Role" options={roles} bind:value={role}>
roles: memberRoles

Self-hosted preselected owner there, but it could be changed before sending.

Expected

The invite dialog offers a role selector and passes the chosen role to
createMembership, so a member never holds owner rights they were not meant to have.

Environment

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

Activity

  1. added
    product / auth
    product / console
    product / messaging
    product / self-hosted
    product / sites
    product / storage
    on Sep 16, 2026
  2. JoshiJoshiJoshi commented on Sep 16, 2026

    @JoshiJoshiJoshi
    Author

    Related: #13730 β€” on self-hosted the roles analyst, editor and billing have no
    backend equivalent and remove all project access, leaving developer and owner as
    the only working roles. Same root cause, separate fix.

  3. 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 / messagingproduct / self-hostedproduct / sitesproduct / storage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions