Skip to content
Back

User (role: guests) missing scope (account)

  • 0
  • Flutter
AllouYao
28 Jul, 2025, 12:03

Future<bool> login({required String email, required String password}) async { try { // 1. Create session first final session = await _appwrite.account.createEmailPasswordSession( email: email, password: password, ); // 2. Get current user to verify session print('User logged in: ${session.toMap()}'); final currentUser = await _appwrite.account.get(); print('User Info: ${currentUser.toMap()}');

TypeScript
  return true;
} on AppwriteException catch (e) {
  debugPrint('Login error: ${e.message}');
  return false;
}

}

response: flutter: ❌ Erreur Appwrite: User (role: guests) missing scope (account)

i use windows desktop for this app

TL;DR
Developers are encountering an error stating "User (role: guests) missing scope (account)" while trying to log in with Appwrite on a Windows desktop app. This issue may be related to permissions and roles. The solution can involve adjusting user roles or permissions within the Appwrite setup.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more