[PR #5862] feat: add support for organization slug on list members #14530

Closed
opened 2026-04-13 09:31:18 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5862

State: closed
Merged: Yes


Summary by cubic

Add support for querying organization members and resolving roles by organization slug. Clients can now pass a slug instead of an ID, with clear errors when the slug doesn't exist and membership checks on role lookups.

  • New Features
    • Accept organizationSlug in listMembers and getActiveMemberRole.
    • Resolve slug to organization ID; return ORGANIZATION_NOT_FOUND if missing.
    • Preserve existing behavior: organizationId or active organization fallback.
    • Added test for listing members by organization slug.

Written for commit d667f84475. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5862 **State:** closed **Merged:** Yes --- <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Add support for querying organization members and resolving roles by organization slug. Clients can now pass a slug instead of an ID, with clear errors when the slug doesn't exist and membership checks on role lookups. - **New Features** - Accept organizationSlug in listMembers and getActiveMemberRole. - Resolve slug to organization ID; return ORGANIZATION_NOT_FOUND if missing. - Preserve existing behavior: organizationId or active organization fallback. - Added test for listing members by organization slug. <sup>Written for commit d667f844758754ba2fcb268fbf60f0f7b16c95ea. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:31:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14530