Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Bug: Unable to filter listMembers - Better Auth
BA
Better Auth
•
5mo ago
•
4 replies
krisna
Bug: Unable to filter listMembers
Issue
:
When using organization plugins
, I encountered an issue with filtering members by role using the
filterOperator: "contains"
filterOperator: "contains"
.
I have a member with multiple roles
(e
.g
.
,
owner,member
owner,member
)
. When I apply a filter to the
listMembers
listMembers
function to retrieve members with a specific role
(e
.g
.
,
member
member
) using the
contains
contains
operator
, the function does not behave as expected
.
const data
= await auth
.api
.listMembers
(
{
query
:
{
organizationId
:
"organization
-id
"
,
filterField
:
"role
"
,
filterOperator
:
"contains
"
,
filterValue
:
"member
"
,
}
,
}
)
;
Setup
:
-
"better
-auth
"
:
"
^1
.3
.11
"
,
-
"next
"
:
"15
.5
.3
"
,
-
"drizzle
-orm
"
:
"
^0
.44
.5
"
,
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Unable to use `mongodb` client
BA
Better Auth / bug-reports
15mo ago
Unable to use prismaAdapter on Node
BA
Better Auth / bug-reports
16mo ago
Bug createOrganization
BA
Better Auth / bug-reports
4mo ago