
Hi, I'am using Android SDK and after createEmailSession i receive "The current user is not authorized to perform the requested action." when ai try to query database

What's your code?

override suspend fun login(email: String, password: String): Response<Session, Exception> { return try { Response.Success(account.createEmailSession(email, password)) }catch (e: Exception){ Response.Failure(e) } }

var respose = databases.getDocument( databaseId = Constants.AppWriteData.db_id, collectionId = Constants.AppWriteData.Collections.admins_id, documentId = userId ).toMap()

client it's injected

For database needs add headers in client?

What permissions did you set on the collection and document?
Also, are you sure the get document call happens after login?

Where I can check collection permissions?

Yes, I'm sure. The get document happens after login

Appwrite Console. For collection, look at the collection settings. For document, look at the document

Ooo, thx a lot!!

Did that fix your problem?

Yes

Can you help my with " SMTP is disabled on your Appwrite instance. You can <a href="/docs/email-delivery">learn more about setting up SMTP</a> in our docs." too?

You can refer to our docs https://appwrite.io/docs/email-delivery and search the <#1072905050399191082> posts. If you still need help, feel free to create a new post

[SOLVED] The current user is not authorized to perform the requested action.

where can i find AppWrites' android studio JAVA documentation?

best to create a new post instead of posting in here

Thanks. But, I dont have permission to make a post in the Appwrite <#564175492778033152> channel.

Create a new post in <#1072905050399191082> please
Recommended threads
- Flutter OAuth2 Google Login – Redirect I...
i tried implementing OAuth2 Google Login in my app, and it works fine for the most part, the problem am facing is when i chose a google account to sign in/up wi...
- Cannot use Google Oauth in my Project
I tried to use Appwrite Google Oauth Provider in my app but had some troubles. I receives this error no matter what: error or success: 2025-09-21 18:50:33.845 3...
- Adding "name" column to table creates 2-...
As stated, im adding the "name" column to one table, it adds 4 duplicates. In another table it adds 3 duplicates, and when I delete 1 of them, all duplucates di...
