[GH-ISSUE #2931] Can getFullOrganization return full user in members? #9402

Closed
opened 2026-04-13 04:50:49 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @sarioglu on GitHub (Jun 6, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/2931

Is this suited for github?

  • Yes, this is suited for github

I recently started to use this library. Overall it's a great relief compared to my experience with others I used before. Thanks you for the good work!

I used getFullOrganization API to get members in a given organization. But it only returns partial data from User table. I use organization plugin in combination with admin plugin and want to show if a user (here an organization member) is banned or not. But it's not available in members data model.

Describe the solution you'd like

Ideally I think user in a member should return a full User data. but I'd understand if that's not feasible. In such case having banned in User would also solve my case.

Describe alternatives you've considered

I think I can query database directly instead of using better-auth API. I just thought it's better to rely on already available API.

Additional context

No response

Originally created by @sarioglu on GitHub (Jun 6, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/2931 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. I recently started to use this library. Overall it's a great relief compared to my experience with others I used before. Thanks you for the good work! I used `getFullOrganization` API to get members in a given organization. But it only returns partial data from User table. I use `organization` plugin in combination with `admin` plugin and want to show if a user (here an organization member) is banned or not. But it's not available in members data model. ### Describe the solution you'd like Ideally I think user in a member should return a full User data. but I'd understand if that's not feasible. In such case having `banned` in User would also solve my case. ### Describe alternatives you've considered I think I can query database directly instead of using better-auth API. I just thought it's better to rely on already available API. ### Additional context _No response_
GiteaMirror added the locked label 2026-04-13 04:50:49 -05:00
Author
Owner

@Kinfe123 commented on GitHub (Jun 6, 2025):

We are currently only returning the core schema properties, but you can apply filtering yourself. Both use cases don’t seem to go well together in most cases.

<!-- gh-comment-id:2950400342 --> @Kinfe123 commented on GitHub (Jun 6, 2025): We are currently only returning the core schema properties, but you can apply filtering yourself. Both use cases don’t seem to go well together in most cases.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#9402