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
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- Custom Domains
Hi All, Should be a quick config issue. I'm setting up custom domains on the hosted version. I have verified the domain with the CNAME but appwrite isn't gene...