Hello, I was trying to use teams.listMemberships
method in JavaScript SDK and I wanted to search by userName
attribute. I tried two ways to search on the name:
- The
search
parameter in thelistMemberships
method. This parameter looks like it only searches on the ID and not user name. Query.search("userName", search)
gives an errorappwrite.js?v=76cc79fe:850 Uncaught (in promise) AppwriteException: Invalid
queriesparam: Invalid query: Attribute not found in schema: userName
.
How can I search on userName
then? What is the attribute for teams which holds the userName? Thank you
Recommended threads
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...