Hi, the question is pretty clear already. I am trying to add a "premium" label to my user once a certain request has finished. Is it possible to update my users labels throught the client sdk or should I use the server SDK meaning adding an endpoint to update the user on my node server.
Hi @Dynerus you can only update labels using only server SDK
For security, you can’t update using client SDK.
You can create function that can update labels using server SDK
Alright thanks for the quick answer! seemed pretty weird to me all account fields could be updated by the client except for the labels
Will do, thanks!
It’s good for example your case, only users with label premium can access certain documents or collections or storage buckets
If you don’t know, you can use labels for permissions
Recommended threads
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...