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
- Create a new paid tier
Current pricing seems reasonable enough about what is someone getting for 25$. But for some people most of these resouces are getting wasted. Like the bandwidt...
- [Bug] Appwrite Auth User Prefs
User prefs are decoded as blank although there are plenty of data and add preference button not working in this case
- How to use Sites on selfhosted appwrite
whenever I try to create a site even with template it says 404 nginx error