
User signs in succesfully but after when trying to get currentuser i get the error above. It has been working for month with a user. now i implemented signup and created user getcurrentuser fails. When loggin in with the old user I encounter the same problem.
I logged the session:
Session details: {"$createdAt": "2025-05-20T14:46:01.826+00:00", "$id": "682c95a9c80fd8fd61fe", "$updatedAt": "2025-05-20T14:46:01.826+00:00", "clientCode": "", "clientEngine": "", "clientEngineVersion": "", "clientName": "OkHttp", "clientType": "library", "clientVersion": "4.12", "countryCode": "ar", "countryName": "Argentina", "current": true, "deviceBrand": "", "deviceModel": "", "deviceName": "", "expire": "2026-05-20T14:46:01.819+00:00", "ip": "181.116.201.139", "mfaUpdatedAt": "", "osCode": "AND", "osName": "Android", "osVersion": "", "provider": "email", "providerAccessToken": "", "providerAccessTokenExpiry": "", "providerRefreshToken": "", "providerUid": "paulhaas1994@gmail.com", "userId": "67d070d3001d309073d3"}
I logged the account:
{"client": {"config": {"endpoint": "https://fra.cloud.appwrite.io/v1", "endpointRealtime": "wss://fra.cloud.appwrite.io/v1", "jwt": "", "locale": "", "platform": "cuidadpasscentro.android", "project": "67d06e1f0012e210ce8b"}, "headers": {"X-Appwrite-Project": "67d06e1f0012e210ce8b", "X-Appwrite-Response-Format": "1.4.0", "x-sdk-language": "web", "x-sdk-name": "Web", "x-sdk-platform": "client", "x-sdk-version": "13.0.2"}, "realtime": {"channels": [Set], "cleanUp": [Function cleanUp], "connect": [Function connect], "createSocket": [Function createSocket], "getTimeout": [Function getTimeout], "lastMessage": undefined, "onMessage": [Function onMessage], "reconnect": true, "reconnectAttempts": 0, "socket": undefined, "subscriptions": [Map], "subscriptionsCounter": 0, "timeout": undefined, "url": ""}}}
both are not null but when performaing account.get() I get the following error:
[AppwriteException: User (role: guests) missing scope (account)]

You are creating session via
createEmailSession
But you must use
createEmailPasswordSession
When using email and password
Recommended threads
- Document Permissions ... User array vs T...
In my app, I will have multiple users who need read accesss a document, but ONLY them. Sometimes its 2 people and sometimes it will be 100 but sometimes 5000. ...
- Unable to get account or logout after a ...
I get the following error after a successful login when ever I call account.get() or account.deleteSession(sessionId: "current"). User (role: guests) missing sc...
- 502 gateway error on downloading files t...
Appwrite Cloud. App blocked can't demo to client. Potential loss of client and 10,000$ payment
