Managing user permissions is essential for controlling access to different parts of your portal.
By adding custom roles to your Users table, you can define specific permissions and ensure users interact with only the relevant content.
This guide walks you through setting up user roles, assigning them to users, and managing access effectively.
Step 1: Open the user portal and access the users' table
Navigate to the portal where you want to manage user roles.
Enable edit mode to start editing the table.
Click on Users from the top navigation bar.
In the Users table, click on Edit Base to modify the user data structure.
This allows you to add new fields, such as roles, and define access settings for your portal users.
Step 2: Add new roles to your portal
On the User portal page, click on Edit base for the user form.
for example, add roles such as Student, Teacher, and Admin to manage permissions effectively.
You can assign these roles to the users to manage access levels to different pages and data.
Step 3: Assign roles to users
In the Users table, locate the user you want to assign a role to.
Click on the Role field in their row.
Select the appropriate role.
Repeat for other users as needed.
By assigning roles, you define who can access what inside your portal.
Step 4: Manage role-based access to pages & data
After adding roles, you can restrict access to pages and databases based on user roles:
Click on the three dots (⋮) next to the page name in the left sidebar.
Select Access from the menu.
Choose which roles can view or edit the page.
Save your settings.
This ensures that different users only interact with relevant sections of the portal.
📝 Additional insights:
🔹 How to create a portal and manage users' access – Learn how to set up a portal and define user access.
🔹 How to restrict access to the pages on your portal – A step-by-step guide to limiting page visibility based on user roles.