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
- Site deployment keeps getting failed
Hi good folks, need a hand with Sites deploy Error on every deploy: Synchronous function execution timed out... duration doesn't exceed 30 seconds [exact log ...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- trying to figure out how to activate my...
please help