
I have below GET request "/auth-users" endpoint. Which can get all the users and I want to list Identities. But right now I am getting error like AppwriteException: general_unauthorized_scope, app.23sefesf32r23rwewefwe@service.cloud.appwrite.io (role: applications) missing scope (account) (401)
is there any way to get all the Identities without active session for all the users?
if (request.method == 'GET') { if (request.path == "/auth-users") { final client = Client() .setEndpoint( Platform.environment['APPWRITE_FUNCTION_API_ENDPOINT'] ?? '') .setProject( Platform.environment['APPWRITE_FUNCTION_PROJECT_ID'] ?? '') .setKey(context.req.headers['x-appwrite-key'] ?? ''); final users = Users(client); // Account account = Account(client);
final userdata = await users.list();
context.log('Total users: ${userdata.total}');
// How can I get all the Identities
// IdentityList userIdentityList = await account.listIdentities();
// context.log('Total identities: ${userIdentityList.total}');
} }
Recommended threads
- Document Data is null.
I'm using flutter and I've just got everything set up, the document meta data is null but the actual query is fine. (see screenshot) The permission I have ar...
- Flutter native Google Sign Up with googl...
Hey I want to use the native login instead of the WebView. Do you have any experience on that and has Appwrite to plan this support?
- cli 5.0.5 command for pull and push of d...
Hi i am using selfhosted appwrite 1.5.10, for migration (duplicate project) purpose i am using cli 5.0.5, but i am unable to find commands for pull and push, wh...
