larkxOriginal post
Rank 2: Process
When I try and execute this code within my Appwrite Cloud Function, I get this error:
JavaScript
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?
Summary
The user is encountering an error with the `users.get()` function within their Appwrite Cloud Function. The error message suggests that the user is unauthenticated or missing the required scope for reading users. The user has tried searching for a solution online but hasn't found one yet.