
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
- Relationship null, even when relationshi...
Hi Everyone, im experiencing issues with set relation data. When im setting the document id from the related database most of them seem fine, except one table. ...
- REQUEST FAILED IN MIGRATION
I was trying to moved my archived project to a self-host database . Though the Project is "read only" but there's a message that I can view and migrate data to...
- Function running in cloud but not locall...
Hi everyone, I have an appwrite function which is on python3.12 runtime. I have a library (hnswlib) which builds wheels during installation. This works on appwr...
