[GH-ISSUE #6723] Include organization role in a user's organizations list #27923

Open
opened 2026-04-17 19:12:51 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @jdtzmn on GitHub (Dec 12, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/6723

Is this suited for github?

  • Yes, this is suited for github

Including the current member's role for each organization makes it easier to show/hide an organization settings button based on whether the user is an admin/owner.

Describe the solution you'd like

I'd like the role member property to be added to the authClient.organization.list() response.

Describe alternatives you've considered

Making parallel calls to the authClient.organizations.getFullOrganization(), but that returns the full members list which feels excessive.

Additional context

No response

Originally created by @jdtzmn on GitHub (Dec 12, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/6723 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Including the current member's role for each organization makes it easier to show/hide an organization settings button based on whether the user is an admin/owner. ### Describe the solution you'd like I'd like the `role` member property to be added to the `authClient.organization.list()` response. ### Describe alternatives you've considered Making parallel calls to the `authClient.organizations.getFullOrganization()`, but that returns the full members list which feels excessive. ### Additional context _No response_
GiteaMirror added the organization label 2026-04-17 19:12:51 -05:00
Author
Owner

@Ridhim-RR commented on GitHub (Dec 13, 2025):

looking into this

<!-- gh-comment-id:3649391389 --> @Ridhim-RR commented on GitHub (Dec 13, 2025): looking into this
Author
Owner

@jdtzmn commented on GitHub (Dec 23, 2025):

I see the discussion in the PR. Specifically this comment about it already existing:
https://github.com/better-auth/better-auth/pull/6732#pullrequestreview-3574842337

However, within my application, the raw API response from /organization/list does not contain a role property.

<!-- gh-comment-id:3687426816 --> @jdtzmn commented on GitHub (Dec 23, 2025): I see the discussion in the PR. Specifically this comment about it already existing: https://github.com/better-auth/better-auth/pull/6732#pullrequestreview-3574842337 However, within my application, the raw API response from `/organization/list` does not contain a `role` property.
Author
Owner

@arvandmoe commented on GitHub (Feb 26, 2026):

This would benefit a lot of users.
Mostly when you're showing the organizations, you need to show the role too.

<!-- gh-comment-id:3963908590 --> @arvandmoe commented on GitHub (Feb 26, 2026): This would benefit a lot of users. Mostly when you're showing the organizations, you need to show the role too.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#27923