Hosenur
Let's say I am making an app where I need multiple user types like Admin and User
TL;DR
To handle custom roles in your app, you can follow these steps:
1. Add the user into teams using the Appwrite API. You can refer to the documentation for more details on how to do this.
2. Choose one of two approaches:
a) Create separate teams for each role. This way, you can assign different teams to users based on their roles.
b) Within a team, create different level roles. Use the Appwrite API to update membership roles for each user.
For example, if you need Admin and User roles in your app, you can create separate teams for each role or create roles within a single Binyamin
First you can add the user into Teams https://appwrite.io/docs/client/teams
Then you can choose one of two ways
- Create more teams for each level.
- Within the team you can create different level roles https://appwrite.io/docs/client/teams?sdk=web-default#teamsUpdateMembershipRoles
Recommended threads
- Upgrade Issue
Am having issue upgrading my appwrite account to pro as my card number is 19 and the required input is 16 digit
- createEmailPasswordSession Error using S...
Did someone succeed using SSR approach for login?
- Trying to Figure out how to delete a use...
If i have a button in an app that allows a user to delete their account, can I not just call a function from my swift app to Appwrite to have the account delete...