Skip to content
Back

Roles Enum Limitation in Kotlin SDK

  • 0
  • 2
  • Android
BAD BOY
9 Feb, 2026, 20:47

The createMembership method in the Appwrite Kotlin SDK now requires List<io.appwrite.enums.Roles> instead of List<String>, but the predefined Roles enum only contains three values (ADMIN, DEVELOPER, OWNER), preventing the use of custom roles like "customer" which are essential for team-based applications.

TL;DR
Developers discussing that roles enum in Kotlin SDK has limitations after recent spec update. It's been resolved with a fix in progress. They also discussed an issue with code snippets in the documentation, identified the problem, and provided a pull request to address it. The ticket will be closed after the pull request is merged.
12 Feb, 2026, 05:08

looks like specs were updated to recently? will need to resync specs and investigate why they changed in first place

12 Feb, 2026, 05:12

Yes, it been updated in last release by you, I don't why you have changed it, when i have updated to lastest version and suddenly it get the error for customer role in the team invitation

12 Feb, 2026, 05:12

sdk updates are determined by spec changes, not necessarily by manual release by a single author.

12 Feb, 2026, 05:14

Yes, i know it necessarily and i understand that, not blaming team or other people but it's get problem in somewhere around

1
12 Feb, 2026, 05:18

fix is in progress πŸ‘ thanks for bringing it up

1
12 Feb, 2026, 05:18

Thank you for helping out 😁

12 Feb, 2026, 05:24

Also bro, can you check this out https://appwrite.io/docs/references/cloud/client-android-kotlin/account in this doc those doc it give kotlin code, if someone try to copy paste then it get error

12 Feb, 2026, 05:25

"```"

12 Feb, 2026, 05:26

hmm i see, the code fence should be in a new line for it to be properly stripped down

12 Feb, 2026, 05:27

weird

12 Feb, 2026, 05:27

looks ok to me here

12 Feb, 2026, 05:30

looks like some issue in appwrite rpeo

12 Feb, 2026, 08:04

Thank you so much

12 Feb, 2026, 08:04

Yes, maybe

12 Feb, 2026, 08:05

Closing ticket?

12 Feb, 2026, 08:10

feel free to, will get the pr merged soon

1
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