Back

admin /user in flutter

  • 0
  • Flutter
bhuva111
24 Jun, 2023, 08:59

i dont have idea about how admin manage users and all how to make guys if ayone has theorical knowladge and all please can share me blog or etc too understand basic things please tell me

TL;DR
You can use account.get() to determine the role of a user and redirect them based on their role. You can assign permissions using Appwrite's permissions feature. If you have an admin and user, you can implement a login system for the admin and restrict access for other users. To manage users, you can use Appwrite functions. If you need more theoretical knowledge, you can look for blogs or other resources online to understand the basics better.
D5
24 Jun, 2023, 09:12

What do you mean with managing users?

D5
24 Jun, 2023, 09:13

If you mean deleting for example, an user, you will need an appwrite function

bhuva111
24 Jun, 2023, 09:40

for example i had a app which has a admin and user both so how i first of all identify it is admin or user if there is no login available for user just login available for admin and how admin manage a work to upload items and all

D5
24 Jun, 2023, 11:16

You can assign permission: https://appwrite.io/docs/permissions

D5
24 Jun, 2023, 11:17

If you don't want (for example) allowing an user without a role accessing a page, you can do account.get(); and depending on the role redirect to another page

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more