Access Control
Control viewing and operation permissions per user in your dashboard
In Squadbase, you can pass information about the user accessing a dashboard to Squadbase AI. Based on that user information, you can dynamically switch the data displayed and the actions available within the dashboard.
There are two main approaches to access control:
- Project Roles — Assign custom roles to users and switch dashboard content based on those roles
- User Information — Use user information such as username and email address within the dashboard
Using Project Roles
A project role is a custom role assigned to a user for each project. Use project roles when you want to change the data shown or the available actions based on a user's role.
How to Set Roles
You can set roles from the member list in the share dialog.
- Click "Share" at the top right of the project and open the "Members" tab
- Click the pencil icon next to the member whose role you want to change
- In the "Edit project role & access" dialog that opens, enter roles in the "Project roles" field (separate multiple roles with commas), then click "Save changes"

Project roles can be any string. Define roles freely to match your team's structure.
Example Usage
To switch what's displayed based on role, you can write a prompt like this:
If the project role is Sales, show the sales pages for all departments. If it is Finance, show only the page for the user's own department.Using User Information
Beyond project roles, you can also use information about the accessing user — such as their username, email address, or name — within your dashboard.
The following user information is available:
| Field | Description |
|---|---|
username | Username |
email | Email address |
firstName | First name |
lastName | Last name |
iconUrl | Profile image URL |
roles | Project roles |
Example Usage
To show different charts based on the user's email domain, you can write a prompt like this:
If the email domain is @our-company.com, show the full company sales chart. If it is @partner.com, show only the partner summary chart.Tips & FAQ
Q: Can I display different data based on roles?
A: Yes. By including role information in your prompt, you can instruct the AI to apply conditional logic based on the role.
Q: How many project roles can I set?
A: There is no limit. You can set any string value freely.