Skip to content

Standard users are not sent userId when listing memberships #13767

Closed

Description

@JoshLee0915

👟 Reproduction steps

  1. Setup a project
  2. Add a user to the project under the auth section
  3. Add a team under the team section
  4. Add the user created in step 2 to the team created in step 3
  5. Using a client SDK try to retrieve the teams memberships using ListMemberships using the user in step 2

Notes:

  • This was also replicated on the server SDKs for functions if using the users jwt passed by the x-appwrite-user-jwt header
  • Was not confirmed if GetMembership also fails to set userId in the response

👍 Expected behavior

The userId field is set with the userId tied to that membership

👎 Actual Behavior

The userId field is just an empty string

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Linux

🧱 Your Environment

Appwrite 2.2.0 self hosted
JS SDK 26.2.0
Go SDK 7.3.0

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Activity

  1. added theissue type on Sep 18, 2026
  2. added
    product / auth
    product / functions
    product / self-hosted
    sdk / cli
    on Sep 18, 2026
  3. rajukumar7070970239 commented on Sep 21, 2026

    @rajukumar7070970239

    Hi @JoshLee0915, I’d like to work on this issue. I’ve reproduced/understood the behavior where userId is returned as an empty string for standard users when listing memberships.

    I’d like to investigate the membership listing/response handling and submit a fix with a regression test. Please let me know if I can take this issue.

  4. added a commit that references this issue on Sep 21, 2026
    2f4091f
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 / functionsproduct / self-hostedsdk / cli

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions