
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
- smtp data not accepted
I have a Problem with the smtp.. it says data not accepted.. i invited a user to my Project so what is that ``` _APP_SMTP_HOST=smtp.mailersend.net _APP_SMTP_PO...
- appwrite-cli error on appwrite 1.7.4
Hey folks! I got an error while using appwrite-cli on my self hosted appwrite instance, which i updated yesterday from 1.6.x to 1.7.4. As i try to login, there ...
- Sites on Self-hosted
Hello. So, I've just deployed my Appwrite self-hosted instance, and I tried the new sites feature. It seems to be building the site properly, I can even downloa...
