Back
What are the all possible queries can be passed to ```users.list``` ?
- 0
- Self Hosted
- Functions
- Auth
TypeScript
final userList = await users.list(queries: [
Query.offset(offset),
Query.limit(limit),
Query.notEqual('accessedAt', ""),
]);
TypeScript
AppwriteException: general_argument_invalid, Invalid `queries` param: Invalid query: Attribute not found in schema: $accessedAt (400)
TypeScript
{
"total": 5,
"users": [
{
"$id": "5e5ea5c16897e",
"$createdAt": "2020-10-15T06:38:00.000+00:00",
"$updatedAt": "2020-10-15T06:38:00.000+00:00",
"name": "John Doe",
"password": "$argon2id$v=19$m=2048,t=4,p=3$aUZjLnliVWRINmFNTWMudg$5S+x+7uA31xFnrHFT47yFwcJeaP0w92L/4LdgrVRXxE",
"hash": "argon2",
"hashOptions": {
"type": "argon2",
"memoryCost": 65536,
"timeCost": 4,
"threads": 3
},
"registration": "2020-10-15T06:38:00.000+00:00",
"status": true,
"labels": [
"vip"
],
"passwordUpdate": "2020-10-15T06:38:00.000+00:00",
"email": "john@appwrite.io",
"phone": "+4930901820",
"emailVerification": true,
"phoneVerification": true,
"mfa": true,
"prefs": {},
"targets": [
{
"$id": "259125845563242502",
"$createdAt": "2020-10-15T06:38:00.000+00:00",
"$updatedAt": "2020-10-15T06:38:00.000+00:00",
"name": "Aegon apple token",
"userId": "259125845563242502",
"providerId": "259125845563242502",
"providerType": "email",
"identifier": "token"
}
],
"accessedAt": "2020-10-15T06:38:00.000+00:00"
}
]
}
TL;DR
Developers want to know possible queries for ```users.list```. One query mentioned is to fetch active users with a specific offset, limit, and accessedAt not empty. However, an error occurred as the attribute ```accessedAt``` was not found in the schema.any query to to fetch list where the user is most active
Recommended threads
- Bug: TOTP MFA verification always fails ...
*Bug: TOTP MFA verify always returns `user_invalid_token` (Cloud 1.8.1, Frankfurt)** Project ID: `68dd48440003e537d849` SDK: `appwrite@18.2.0` (also tested wit...
- User Filter/Sorting/Analytics
Currently the dashboard for users is very limited. I would like to have an option to sort by column and also to filter by column, to for example find users that...
- Unable to verify user through console du...
Hi, I am manually trying to verify a user through the console, but it is coming back with Server Error and not much detail