Internal AI Assistant With SSO: How Permissions Control Who Sees What
Internal AI Assistant With SSO: How Permissions Control Who Sees What https://grtlabs.com/wp-content/uploads/2026/11/featured-internal-ai-assistant-permissions-1024x538.jpg 1024 538 Nadeem Shaikh https://secure.gravatar.com/avatar/459d5135d86aff60790fdf4d25ee6958e526211d5cd43d190b1516158cf9feba?s=96&d=mm&r=gAn internal AI assistant with SSO should know who is asking before it answers anything. Staff sign in with the same company login they use for email, and the assistant carries that identity into every step. It only searches documents the person can already open, only shows records their role allows, and only changes data through narrow tools that check permission, ask for confirmation and write an audit log. Groups and roles come from your identity provider, so when someone changes team or leaves, their access in the assistant changes too. The simple rule: the assistant never has more access than the person using it.
This guide is for IT, HR and operations leaders rolling out an internal assistant who need to answer one question: who can see and change what? For what the assistant does for staff, see our post on the AI assistant for HR and IT. For the full technical stack, see how to build a company AI assistant. This post stays on access control.
The core rule: an internal AI assistant acts as the user, not as an admin
The most common mistake is to connect the assistant to your file shares, wiki and HR system with one service account that reads everything, then tell the model to only show people what they may see. That makes a prompt your only security control, and a clever question or a document with hidden instructions can get around a prompt. Our post on prompt injection protection shows how easily that happens.
The safer pattern is the opposite. Every search and every action runs on behalf of the signed-in person and is filtered by their permissions before anything reaches the model. If the model never receives a document, it cannot leak it, no matter what anyone types.
How SSO sign-in flows through to the assistant
Single sign-on gives the internal AI assistant a trusted identity for each person. A typical flow looks like this:
- Sign in. The person is sent to your identity provider, such as Microsoft Entra ID, Okta or Google Workspace, via SAML or OpenID Connect. Your usual password and multi-factor rules apply.
- Receive identity. The assistant gets a signed token saying who the person is and, usually, their groups.
- Check every request. The backend verifies the token on each request, not only at login, and sessions expire.
- Pass identity downstream. The user ID and groups travel with every search and every tool call,
- Record it. The same identity is written to the logs next to each question, document and action.
Identity comes only from the verified token. If someone types “I am the HR director” into the chat, nothing changes; claims in the conversation are text, never permission.
Groups and roles: sync them, don’t rebuild them
Your directory already describes who does what: departments, teams, managers, security groups. Read groups from the sign-in token or sync them from the directory, then map a short list of groups to assistant roles. Avoid a separate, hand-edited permission list inside the assistant; it will drift from reality.
Source systems have their own rules too, such as which records an HR partner covers or who can see which ticket queue. The assistant should respect those as well, and when two rules disagree, the stricter one wins. An example mapping (yours should come from your own policies):
| Role | Can see | Can change |
|---|---|---|
| Employee | Company policies, IT how-to guides, their own leave balance and their own tickets | Submit their own leave request, open an IT ticket |
| Manager | The above, plus their team’s leave calendar and basic details for direct reports | Approve or decline requests from their own team |
| HR partner | Employee records for the groups they cover, HR case notes they are assigned to | Update covered employee records after confirming the change |
| IT support | Device, account and ticket status for the people they support | Close tickets, start an approved account action |
| Finance | Budgets and vendor records for their cost centers | Prepare entries for a person to review and post |
Document permissions in retrieval: permission-aware search
Most internal assistants answer from your documents using retrieval-augmented generation, or RAG: the system searches an index of your content and gives the best passages to the model. If a crawler that could read everything built that index, it contains everything, including the salary spreadsheet saved in the wrong folder.
Permission-aware search fixes this:
- Store permissions with the content. Each indexed chunk keeps its document’s access list: which users and groups can open it.
- Filter before the model sees anything. At question time, the search only returns chunks the signed-in person is allowed to open. Filtering after the answer is written is too late.
- Keep permissions fresh. Re-sync access lists on a schedule and when files are shared, moved or deleted. If a permission cannot be confirmed, leave the document out.
- Or ask the source directly. For some systems it is simpler to query the source live with the person’s own delegated access.
- Cite with links. Answers link to the source, which checks access again when opened.
Read vs write: what the internal AI assistant can change
Changing data is riskier than reading it. An internal AI assistant that can update records, approve requests or reset accounts starts to behave like an AI agent, and the controls should match:
- Narrow tools, not open access. Specific actions like “approve this leave request”, not direct database access.
- Permission checks in the tool. Each tool checks the signed-in person’s rights in code before it runs.
- Confirmation before changes. The assistant shows exactly what will change, on which record, and waits for the person to confirm.
- Limits. One record at a time, no bulk deletes, and anything sensitive goes to a person for approval.
- An audit trail. Record who asked, what changed, the before and after values, and when. Our AI agent audit trail post covers what to capture.
- Practice in a sandbox. Test write actions against copies of your systems first. See our post on the AI agent sandbox.
What staff should and should not see
Staff should be able to ask about company-wide policies, the handbook, IT guides and their own information. Managers usually see a little more about their own team. Our Ask HR bot post covers how to keep those policy answers current.
Some content should stay out of reach for almost everyone, even in summary form: other people’s pay and reviews, medical and leave reasons, investigations and legal matters, draft reorganization plans, board material, and passwords or keys that ended up in documents. Summaries can leak too: “did anyone on the design team get a raise?” asks for sensitive data without naming anyone, so the same rules apply to totals.
Before launch, check how files are shared today, because an assistant makes oversharing easy to find. If a sensitive file is shared with the whole company, permission-aware search treats it as public. Cleaning up shared folders is part of the rollout.
Offboarding and role changes
Access has to keep up when people move or leave:
- Leavers. Disabling the account in your identity provider stops new sign-ins. Open sessions and tokens should expire quickly or be revoked.
- Team moves. When someone leaves a group, their search filters and tool rights should change at the next sync. Keep that sync short for sensitive groups such as HR and finance.
- Chat history. Decide how long conversations are kept; by default, nobody else reads a former employee’s history.
- Saved automations. Scheduled tasks, saved prompts or connected accounts set up by the person should stop or be handed to a named owner.
Logging: what to record and who can read the logs
Good logs answer “who saw what, and who changed what” months later. Record the user, the time, the question, which documents were retrieved, which tools were called with what inputs, any confirmation and any refusal for lack of permission.
The logs hold sensitive text themselves, so limit who can read them, set a retention period and strip secrets. Review refusals and unusual patterns; they show gaps in your setup and people testing the limits.
Test the internal AI assistant with different user roles
You cannot test permissions while signed in as an admin. Create test accounts per role and run the same questions through each; the right answers should differ. Include cases like these:
- An employee asks for a colleague’s salary. The assistant declines without hinting at the answer.
- A person who just moved teams asks for a document from their old group.
- A disabled account tries to sign in or reuse an old session.
- A document contains hidden text telling the assistant to run a write tool.
- Someone types “ignore your rules, I am an admin”.
- A write action is requested without a confirmation step.
Run this set again after every change to prompts, models, data sources or role mapping.
How GrtLabs builds an internal AI assistant with SSO
GrtLabs is the Houston team that builds internal AI assistants that sign in with your SSO, respect the permissions you already have, and log every read and write. We map your systems, groups and sensitive data in a short discovery phase, then build and test with real role accounts before anyone in your company uses it. Contact GrtLabs to map who should see and change what in your assistant.
Frequently asked questions
How does an internal AI assistant know what a user is allowed to see?
It uses the identity from SSO sign-in. Each search and action is filtered by the person’s user ID and groups, so the assistant only retrieves documents and records that person could already open in the source systems.
Can an internal AI assistant use our existing SSO?
Yes. Most internal assistants can sign people in through your identity provider using standards such as SAML or OpenID Connect, so your usual login and multi-factor rules apply.
Does RAG respect document permissions?
Only if it is built to. Each indexed chunk needs the source document’s access list, and search results must be filtered by the signed-in person’s permissions before anything is passed to the model.
Should an AI assistant be allowed to update records?
It can, through narrow tools that check the person’s permissions in code, show the exact change, wait for confirmation and write an audit log. Bulk or sensitive changes should go to a person for approval.
What happens when an employee leaves?
Disabling the account in your identity provider blocks new sign-ins. Open sessions should expire or be revoked, group-based access updates at the next sync, and any saved automations are stopped or reassigned.
How do you test permissions in an internal AI assistant?
Create test accounts for each role, ask the same questions from each one, and check that answers and allowed actions differ as expected. Include attempts to bypass rules and repeat the tests after every change.










