Hello,
I have this error and this is my code :
TypeScript
const client = new Client()
.setEndpoint(process.env.APPWRITE_FUNCTION_API_ENDPOINT)
.setProject(process.env.APPWRITE_PROJECT_ID_KEY)
.setKey(process.env.APPWRITE_API_KEY);
const users = new Users(client);
let user;
if (bodyJson.email) {
user = await users.updateEmail(params.id, bodyJson.email);
}
if (bodyJson.name) {
user = await users.updateName(params.id, bodyJson.name);
}
return {
code: 200,
response: {
user,
},
};
I have already checked my 3 env variables, they are good.
My bodyJson.name is good too and same for my params.id
TL;DR
Developers are encountering an error due to missing scope "users.write" for the "guests" role. Ensure the mentioned role has the required scope.Recommended threads
- Google login on mobile not working
Hi the gg login auth in mobile not working. No error show. But the user couldnt login in Attached is the video. Desktop is working well and im using custom doma...
- Appwrite 1.8.1 TablesDB Permissions Issu...
Hi - I'm migrating a newer VueJS web application from Supabase to Appwrite. I'm looking for an experienced Appwrite Developer to help me solve a permissions iss...
- Failed to create function
Hey everyone ๐ I'm having an issue creating Functions on Appwrite Cloud and I'm not sure if it's a platform bug or something wrong in my project. When I try t...