Can I fetch what label the user has 'user' or 'admin' and give permission to visit the page..
TL;DR
Labels can only be set using the Console or Server SDK. They can be used as roles, and you can fetch the label assigned to a user using `account.get()`. You can then give permissions to visit a page based on the label.sure. it's in the response of account.get()
is it safe to use them as roles?
Labels can only be set from the Console or with a Server SDK. So yes.
Recommended threads
- Authentication on custom Websocket Serve...
Hi, I want to use a custom Websocket Server (using Bun) for my application. However I cant really figure out authentication on custom servers. Session cookies ...
- Realtime: Listener not triggered on upda...
I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtim...
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...