<khaltech/>Original post
Rank 2: Process
I'm trying to get sellerId using account.get() in my appwrite function and this is the error message I'm getting:
"Failed to send notification to seller 6865bfd200091084268a: app.6859f009000e9dc845a4@service.cloud.appwrite.io (role: applications) missing scope (account)
"
this is the code I try to run the function :
const seller = await account.get(sellerId);
the screenshot of m appwrite console is attached.
Thank you
@Kenny @Aditya Oberai @Steven
Summary
Error message is suggesting to use users.get instead of account.get to get sellerId. This is because 'account' does not have necessary scope for the operation. Use users.get(sellerId) instead.