When I try and execute this code within my Appwrite Cloud Function, I get this error:
const user = await users.get(userID) // 'userID' = req.headers['x-appwrite-user-id']
User (role: guests) missing scope (users.read)
I tried looking online but couldn't really find a solution, does anyone know why this is happening?
Issue with getting user within Appwrite Cloud Function
Issue with user.get() within Appwrite Cloud Function
Issue with users.get() within Appwrite Cloud Function
role: guests
This always mean you're unauthenticated. Perhaps you're not passing an API key or the API Key is invalid.
Recommended threads
- GB Hours IS NOT resetting
Hi, I was checking my usage and noticed that all of my usage quotas were reset on August 20, 2026, when my billing cycle renewed. Everything else appears to ha...
- Confused about Appwrite Pro pricing
Hi. I've been subscribed to the $25 Appwrite Pro plan, but I've been getting charged $40. I have two projects on my account. I was wondering where exactly the e...
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...