Access Control
Where: Users › Access Control
Who can use it: Admins and Owners
Access control decides which databases each person can query in Tursio. Access to your network or to Microsoft Entra isn't enough: a person queries a database only after an Admin or Owner grants it on the Access Control tab. The Tursio portal, the Teams agent, and MCP clients all follow the same grants, so you manage them once.
How access works
Tursio layers its access control on top of what your databases already enforce.
Tenants. Each Tursio deployment runs in your environment as a dedicated single tenant, with its own servers and data. No data or access crosses to another deployment.
Connections. Tursio connects to one or more databases. Each connection is identified by its host name, database name, and database username. You can add several connections to the same database, for example with different database users. See Databases.
Database permissions (RBAC). Your database admins can apply their own role-based access control to the username each connection uses. For example, sales_user can only see sales data and marketing_user can only see marketing data. Tursio queries with that username, so those permissions carry forward.
Example: a read-only database user (T-SQL)
These statements create a user tursio_user and give it read permissions on database my_db:
Query scope. Each connection has a query scope: the tables and views it can query. You choose which tables or views to include. You can also create views in your database that expose only the relevant data, for example to drop columns, pre-aggregate large tables, or pre-join tables. To limit rows and columns per user inside a table, use access rules on query tables.
Users. Admins and Owners add people on the All Users page. Everyone signs in with Microsoft or with a license key before they reach the portal.
Grants. Admins and Owners grant each User and Viewer access to one or more databases. A person can then query everything in the query scope of those databases. For example, an analyst can have the sales database, a marketer the marketing database, and their CRO both.
The Access Control tab
The tab lists every database connection with its Database, Account, and Users. Users shows who has been granted that database. A dash means no one has.
Type in Search by database, account or user to filter the list.
(1) Access Control tab, (2) Search, (3) row menu with Edit access.
Admins and Owners can query every database, so they never appear in the Users column and don't need a grant.
Grant access to a database
- Open Users in the left navigation and select the Access Control tab.
- Open the row menu (⋯) on the database and select Edit access.
- Pick people in Users. The list shows your Users and Viewers. Use Select All to pick everyone. To remove someone, select the × on their name.
- Select Update. Update stays disabled until you change the selection.
(1) Users, (2) Update.
Tursio shows Access updated successfully and the Users column lists the people you granted.
(1) Confirmation, (2) the granted users per database.
The change applies to the next question. A User or Viewer sees only the databases they've been granted in the database picker. All Databases appears only for people who have access to every database. See Ask question.
To keep grants in step with the permissions in your database, use a Sync access workflow instead of editing by hand. It runs every hour and updates this tab. See Workflows.
Teams and MCP follow the same access
Questions asked through the Teams agent or an MCP client run under the asking person's Tursio access. They see only the databases they've been granted, and access rules on query tables apply to them as in the portal.
Teams agent
To limit the Teams agent to people who have Tursio access, turn on Teams access control on the Authorization agent. See Agents.
With it on:
- Tursio matches each Teams user to their Tursio user by their Microsoft account email. If they have no user of their own, Tursio uses a Microsoft Entra group they belong to that you added in All Users.
- A Teams user with no match can't use the agent. The agent tells them to ask an admin to add them in the Tursio portal.
- A matched user who hasn't been granted a database gets no answers from it.
- Grants and revokes on this tab apply to their next question in Teams.
- Query History names the Teams user who asked, by email.
Same chat after a change
The Teams agent remembers the conversation. After you grant or revoke access, it can keep answering from what it found earlier. Ask the user to type reset to start a fresh conversation. See Use Tursio in Teams.
MCP clients
An MCP client that signs in with Microsoft is matched to the Tursio user with that email, and gets that user's access. For MCP setup, see MCP server.
How Tursio identifies who is asking
- Portal: the signed-in user.
- Teams agent with Teams access control on: the Teams user's Microsoft Entra account, looked up through the Authorization agent. This needs the User.Read.All and GroupMember.Read.All application permissions on your Entra app.
- Teams agent with Teams access control off, and MCP clients: the email the request carries. If it matches a Tursio user, that user's access applies. A request that doesn't match a Tursio user, such as a client that connects with only an API key, isn't tied to anyone and isn't limited by this tab. It can query the databases in the MCP server's scope.
Tips and limits
- Granting access is per database connection, not per table. To limit tables, rows, or columns, use access rules or a Sync access workflow.
- Only Users and Viewers appear in the Users list. Admins and Owners already have every database.
- New Users and Viewers have no databases until you grant them.
- People in Microsoft Entra aren't added to Tursio automatically. Add each person, or an Entra group, in All Users, then grant their databases here.
- Deactivating a user removes them from this tab. Restoring them brings their grants back. See All Users.
- On a database with a Sync access workflow, each run removes Users and Viewers that the script grants no table, including people you added here by hand.
| What the Teams user sees | What to do |
|---|---|
| They don't have access to the Tursio agent in Teams yet | Add them in All Users with the email of their Microsoft account, or add an Entra group they belong to. |
| Tursio can't verify their Teams access until its setup is fixed | Check the Authorization agent and its Entra app permissions in Agents. |
| Tursio can't verify their Teams access right now | Microsoft Entra couldn't be reached. Try again later. |
| The Tursio agent in Teams is out of date | Update the Teams agent and MCP server. See Configure the Teams agent. |
| No databases or no data available for the question | Grant the user the database on the Access Control tab, then have them type reset. |