December 2026
Your Permissions Are the Prompt: Why Identity and Data Hygiene Is the Real AI Readiness Project
An AI assistant answers with everything the person asking can technically reach. What that means for over-shared folders, stale groups and agent credentials, and a phased programme to make the permission model true before the assistant reads it.
Abstract
An AI assistant connected to company data does not answer from what an employee is supposed to see. It answers from what that employee can technically reach, and in most organisations the two have drifted apart for years: folders shared with everyone, links that never expired, groups nobody reviewed, sites whose owners left. Until now the gap was hidden by effort, because nobody went looking. A retrieval-grounded assistant removes the effort. We argue that the assistant does not break the permission model; it shows that the model was never true, and that the real AI readiness project is therefore one of identity and data hygiene, not of prompts and licences. We set out how the main classes of assistant (Microsoft 365 Copilot, Gemini in Google Workspace, connector-based enterprise search and agents, and self-hosted retrieval) trim results by the asking user’s permissions, as their vendors document it. We describe how oversharing arises and what the published evidence says about its scale, with its limits. We map the controls, vendor-neutral first and then concrete, with the product names as they stand in late 2026. We treat non-human identities (agents, connectors, service accounts and keys) and prompt injection as the route by which an outsider borrows a user’s reach. We summarise the legal frame under the GDPR, NIS2 and the EU AI Act. We close with a four-phase programme (discover, contain quickly, fix at the root, keep it true), a prioritisation rule that multiplies sensitivity by exposure, and a checklist. This is practitioner guidance, not legal advice.
Keywords: AI readiness; oversharing; least privilege; identity and access management; access reviews; data classification; sensitivity labels; data loss prevention; Microsoft 365 Copilot; SharePoint Advanced Management; Restricted Content Discovery; Microsoft Purview; Data Security Posture Management; Google Workspace; Gemini; retrieval-augmented generation; document-level access control; non-human identities; AI agents; prompt injection; GDPR; NIS2; EU AI Act; data governance
1. Introduction
Most organisations that prepare for an AI assistant prepare the wrong things. They compare licences, run a pilot with enthusiastic volunteers, write a policy on acceptable use and book prompt training. All of that is reasonable. None of it addresses what decides whether the rollout is safe, which is a question the organisation last looked at when it migrated its file server: who can open what.
An assistant that is connected to company data works by retrieval. When an employee asks a question, the system searches the mail, files, chats and connected applications that this employee is able to open, selects the passages that look relevant, and hands them to a language model to compose an answer. The vendors are explicit that the search is limited to what the asking user may access. That is the right design, and it carries a consequence that is easy to state: the quality and the safety of every answer depend on whether the access rights in the tenant are correct. In that sense the permissions are part of the prompt. The user types one sentence; the permission model supplies the rest.
In most organisations the permission model has not been correct for a long time. A salary overview sits in a folder that was shared with the whole company for one afternoon in 2019. A project site still admits a contractor who finished two years ago. The management team’s library inherited its rights from a parent site that is open to all staff. Nobody noticed, because nobody looked: finding the salary overview required knowing that it existed and where it was. An assistant needs neither. Asked “what do people in my grade earn?”, it will look everywhere the user can look, at once, and report what it finds.
Our thesis is that the assistant does not break the permission model. It exposes that the model was never true. The exposure was always there, held back only by the cost of searching, and the assistant brings that cost close to zero. The practical conclusion is that AI readiness is, before anything else, an identity and data hygiene project: knowing what the sensitive data is, who can reach it, and bringing the second into line with what the organisation intends. The same project pays off without any AI at all, since an attacker who takes over an ordinary account inherits exactly the reach we are describing.
This paper is written for the CIO, CISO, IT lead and data protection officer of a mid-sized organisation. Section 2 explains the mechanism and what the vendors document, Section 3 how oversharing arises and what is known about its scale, and Section 4 the controls. Section 5 treats agents and other non-human identities, Section 6 the legal frame, and Section 7 a phased programme with a prioritisation rule. Product names, features and licence terms in this field change several times a year. We give them as documented in late 2026 and say where we rely on a vendor’s own description, which is most of the time. The legal passages are practitioner guidance, not legal advice.
2. The mechanism: the assistant inherits the asker’s reach
2.1 Retrieval first, then generation
The language model inside an enterprise assistant knows nothing about the company. What makes the assistant useful is the step before the model is called: a search over the organisation’s content, whose results are placed in the model’s context so that the answer is grounded in them. The pattern is called retrieval-augmented generation (RAG). Two kinds of index usually serve the search. A keyword index finds documents that contain the words of the question. A semantic index stores numerical representations of passages (embeddings) and finds passages that mean something similar, whatever words they use. The second matters for our subject, because it removes the last protection that poor file naming used to give. A document called “Overview Q3 final v2” that lists salaries will be found by a question about pay.
Every serious product applies access control at the retrieval step, a technique known as security trimming: results the asking user is not allowed to open are removed before the model sees them. The model itself enforces nothing. It will summarise whatever it is handed. All of the protection therefore sits in the permissions that the retrieval layer consults, and those are the permissions the organisation already has.
2.2 What the vendors document
Microsoft 365 Copilot. Microsoft’s documentation on data, privacy and security states that Copilot “only surfaces organizational data to which individual users have at least view permissions”, and adds in the next sentence that it is important to use the permission models available in services such as SharePoint “to help ensure the right users or groups have the right access to the right content”. Copilot reaches content through Microsoft Graph, and each prompt runs in the security context of the user who submits it. The semantic index is described as an organisation-wide index generated from text-based SharePoint files, supplemented by a user-level index of the mailbox and of documents the user works with; it surfaces a result only if the user already has access. The same page says that semantic indexing is enabled automatically and cannot be disabled, and that a site can be kept out only by making it non-searchable or by the governance controls we describe in Section 4. One nuance is worth knowing. According to Microsoft, sharing a file with a link that works for everyone in the organisation does not by that act place it in the tenant-level index; it enters the index of a user who has opened the link. Content granted directly to a broad group is different: it is within every member’s reach from the start. (Microsoft’s documentation increasingly calls the product simply Microsoft Copilot; we keep the longer name to distinguish it from the consumer service.)
Gemini in Google Workspace. Google’s privacy hub for generative AI in Workspace makes the equivalent statement: Gemini “only retrieves relevant content in Workspace that the user has access to”, and if the user does not have access to a document or an email, Gemini will not retrieve it. The hub adds two restrictions that go beyond plain permissions. Where a file’s owner has blocked download, printing and copying, Gemini will not retrieve that file on the user’s behalf, and content protected with client-side encryption is out of Gemini’s reach because Google’s systems cannot read it.
Enterprise search and agents with connectors. Assistants become more useful when they can also search the ticket system, the wiki, the customer database and the document management system. This is done with connectors, which either copy content into the assistant’s index or query the source at the moment of the question. Microsoft says of its own connectors that data brought in through them can be returned in a response “if the user has permission to access that information”. That sentence hides real engineering. The connector has to carry over each item’s access list, map the identities of the source system onto the identities of the assistant’s directory, and keep both current. Each connector does this with a different degree of fidelity, some flatten permissions to a simple model, and all of them work from a copy that is as old as the last synchronisation.
Self-hosted retrieval. An organisation that builds its own assistant on a vector database and a model of its choice gets no security trimming unless it builds it. A vector store holds passages and numbers; it has no idea who may read what. Section 4.4 sets out what has to be implemented.
Table 1 puts the four side by side.
Table 1. How four classes of assistant limit retrieval to what the asking user may see, as documented by the vendors in late 2026, and what stays with the organisation in each case. In every row the assistant consults permissions that already exist; none of them judges whether those permissions are right.
| Assistant | How retrieval is trimmed | Documented caveats | What remains your job |
|---|---|---|---|
| Microsoft 365 Copilot | Searches Microsoft Graph and the semantic index in the security context of the user; returns only content the user has at least view permission for | The semantic index cannot be switched off; a site is kept out by making it non-searchable, by Restricted Content Discovery or by policy; encrypted content follows the user’s usage rights | Site, library and file permissions in SharePoint, OneDrive and Teams; group membership; sharing settings; labels |
| Gemini in Google Workspace | Retrieves only Drive, Gmail, Calendar and Chat content the user has access to | Files with download, print and copy disabled are not retrieved; client-side encrypted content is unreadable to Gemini; administrators can switch off Gemini’s access per service | Drive sharing settings; membership of shared drives and groups; classification labels and the rules built on them |
| Connector-based enterprise search and agents | The connector copies or queries source content together with its access lists and maps source identities to directory identities | Fidelity differs per connector; some simplify the source’s permission model; a copied index is as current as its last synchronisation | Verifying each connector’s handling of permissions; the scope of the account the connector runs under; revocation delays |
| Self-hosted retrieval (own RAG) | Only what you build: access metadata stored with every passage and a filter applied at query time with the user’s identity | A vector store has no access model of its own; passages cut from a document must carry its permissions; permission changes arrive with a delay | Everything: identity, access metadata, enforcement, refresh, logging and testing |
2.3 The end of security by obscurity
Security by obscurity is the practice of relying on the fact that something is hard to find. In file shares it was never a policy. It was simply how things were. A tenant holds a very large number of files, and an employee has the technical right to open far more of them than they will ever see, because nothing leads them there. Classic search already weakened this protection, but search asks the user to know what to look for and to read the results. An assistant does both jobs. It turns a vague question into several precise searches, reads the hits, and writes a summary with the sources attached.
Three things change as a result. Discovery becomes cheap: a curious employee no longer needs to suspect that a document exists. Aggregation becomes cheap: facts that are harmless one by one (a name in one file, a grade in another, a salary band in a third) are combined into an answer that is not harmless. And discovery becomes accidental: most of the uncomfortable findings in pilots do not come from snooping but from an innocent question that the assistant answers more thoroughly than anyone expected.
It follows that an assistant is a remarkably effective audit of the permission model, run continuously by every employee. An organisation can choose to run that audit itself, first, on its own terms. The rest of this paper is about how.
3. How oversharing arises, and how large it is
3.1 Seven ordinary causes
Oversharing is rarely one person’s mistake. It is the sediment left by ordinary work over many years, and it is worth knowing the layers, because each calls for a different fix.
Permissive defaults. Collaboration platforms are built to make sharing easy. Microsoft’s own readiness guidance states that SharePoint sets sharing settings to the most permissive option by default. Unless an administrator has changed them, the easiest link to create is a broad one, and people take the easiest path.
Broad groups. Every directory contains groups that mean “everybody”: in Microsoft 365 the built-in group “Everyone except external users”, in other systems an all-staff group or a domain-wide setting. Granting such a group access to a site takes one click and looks tidy. It makes the whole site reachable by every employee and by every assistant acting for them. Public teams have the same effect: a team created as public in Microsoft Teams is open to anyone in the organisation, and many were created that way because public was the quicker choice.
Links. A link for anyone works for whoever holds it, inside or outside the organisation, until it expires, and many never expire. Links for the whole organisation are less dangerous but accumulate in large numbers.
Inheritance and its exceptions. Permissions flow from a site to its libraries, folders and files. A sensitive folder placed under an open parent is open. The usual remedy, breaking inheritance for that folder, creates the opposite problem at scale: thousands of unique permission sets that nobody can oversee, so that reviews stop being feasible.
Migrated file servers. When departmental shares were moved to the cloud, their access lists were often flattened, mapped onto broader groups or carried over with rights that had been wrong for a decade. The migration also made the content searchable across the organisation for the first time.
People who moved or left. Access is granted when someone joins a project and is seldom removed when they leave it. An employee with ten years of service has collected the rights of every role they have held. Accounts of departed staff stay enabled, their personal storage remains shared with whoever they once shared it with, and sites whose only owner has left have nobody to answer for them.
Guests. External accounts are invited for a project and stay. A guest with access to a team can reach its files, and an organisation that later gives guests or partners access to an assistant extends the question to them.
None of these is an AI problem. Each was a latent exposure before the first assistant was licensed, to an insider or to an attacker in control of a single account.
3.2 What the evidence says, and its limits
How common is this? The honest answer is that the available numbers are nearly all published by parties with something to sell, and they should be read as indications of order of magnitude and no more.
The most cited data set is from Varonis, a data security vendor. Its 2025 State of Data Security report analyses what its own assessments found in 1,000 organisations, covering nearly 10 billion files. It reports that 99 per cent of those organisations had sensitive data exposed in a way an AI tool could surface, that 88 per cent had stale but still enabled accounts (“ghost users”), that 66 per cent had cloud data exposed to anonymous users, and that only about one in ten had labelled their files. The sample consists of environments the vendor itself examined, the definitions are the vendor’s own, and a threshold of “at least one exposure” will produce a figure near 100 per cent in any large environment. The finding that survives these caveats is the qualitative one: exposure of this kind is normal, and labelling is rare.
Analyst data points the same way from the other side. A Gartner survey of 132 IT leaders in June 2024, reported by Computerworld, found that concerns about oversharing had led 40 per cent of respondents to delay their Microsoft 365 Copilot rollout by three months or more, that 64 per cent said information governance and security risks had required significant time and resources, and that 57 per cent managed the risk by limiting the rollout to low-risk or trusted users. The sample is small and about half of it came from organisations with 10,000 or more employees, so it says little about mid-sized firms specifically. It does show that the problem was met in practice early, and that the first response was to limit who gets the assistant, which postpones the problem.
The most useful independent source is a regulator. The Norwegian data protection authority, Datatilsynet, examined Microsoft 365 Copilot in its regulatory sandbox together with the Norwegian University of Science and Technology and published its report in November 2024. It observes that Copilot will have access to the same information as its user, that weaknesses in an organisation’s digital foundation, “such as poor access management”, will be made visible and amplified, and that “it is therefore important to get your own house in order first”. Its overall conclusion is measured: organisations can start using the assistant, “but not by everyone and not for everything”. The university itself concluded that it was not yet ready for a rollout across the organisation, in part for this reason.
The vendors agree. Microsoft’s readiness guidance is largely about finding and reducing oversharing, and the tools reviewed in Section 4 exist because the problem is general. What nobody has published, as far as we have been able to find, is a representative measurement of how much sensitive content a typical employee of a mid-sized organisation can reach. The only figure that matters to a given organisation is its own, and Section 7 begins with obtaining it.
4. The controls
4.1 Four layers, vendor-neutral
Leaving product names aside, the controls fall into four layers, and a sound programme works on all four.
Access: who can reach what. This is the layer the assistant consults, and the only one that also protects against a compromised account. Its principles are old. Least privilege: access follows a need, is granted to a group that corresponds to a role or a team, and has an owner who can say why it exists. Joiner, mover and leaver processes: rights are added, changed and removed when a person’s position changes, driven from the HR system and not from memory. Access reviews: at a fixed interval the owner of a group or a site confirms who should remain. Lifecycle: sites and shares that are inactive or ownerless are archived or removed.
Classification: what the data is. Access rights say who may open a file. They do not say what the file is, and without that an organisation cannot tell a harmless open folder from a dangerous one. Classification assigns each item or container a level (for example public, internal, confidential, strictly confidential) through labels that people apply and that software applies automatically where it recognises patterns such as national identification numbers, payroll layouts or medical terms. Labels then drive other controls: encryption, sharing restrictions and exclusion from the assistant.
Scope: what the assistant may use. Independently of permissions, an organisation can decide that certain content is not available for retrieval at all: a site excluded from the index, a label that the assistant must not process, a data source that is not connected. Scope controls are quick to apply and blunt. They reduce what the assistant can find, and they leave the underlying access as it was, so a person can still open what the assistant no longer mentions.
Interaction and evidence. Data loss prevention (DLP) applied to prompts and responses catches sensitive data on its way into or out of the assistant. Audit logs of interactions record which sources were used for which answer, so that an incident can be investigated and the programme can be measured. Logs of this kind are themselves personal data about employees and need a purpose, a retention period and, in many countries, consultation with employee representatives.
The order matters. Scope and interaction controls buy time. Access and classification remove the cause. Table 2 maps the layers to the three environments discussed below.
Table 2. The four control layers and where they live in each environment, with product names as documented in late 2026. Names and licence terms change often and should be checked against the vendor’s current documentation before a decision is based on them.
| Layer | Microsoft 365 | Google Workspace | Self-hosted retrieval |
|---|---|---|---|
| Access | Sharing settings; data access governance reports and site access reviews in SharePoint Advanced Management; Restricted Access Control; site ownership, inactivity and attestation policies; access reviews in Microsoft Entra | Drive sharing settings per organisational unit; membership of shared drives and groups; periodic review of external and domain-wide sharing | Permissions of the source systems, copied with every document and passage; group membership resolved from the directory |
| Classification | Purview sensitivity labels on files, mail and containers; automatic labelling in the higher licence tiers | Classification labels in Drive, applied by people, by rules or by AI classification | A sensitivity field on every indexed item, taken from the source or assigned at ingestion |
| Scope | Restricted Content Discovery per site; non-searchable sites; DLP policy that stops Copilot processing labelled items | Access by Gemini to Workspace data switched on or off per service; rights restrictions and client-side encryption on sensitive files; rules built on labels | Decide which sources are indexed at all; separate indexes for separate audiences; filter by sensitivity at query time |
| Interaction and evidence | DLP for prompts; audit of Copilot interactions and Data Security Posture Management in Purview | DLP rules on generated output; Gemini audit logs through the reporting interface | Log of each query with the user, the passages retrieved and the answer; your own DLP at the application boundary |
4.2 Microsoft 365
Microsoft has built a considerable toolset for this problem since 2024, and renamed parts of it more than once. As of late 2026 it comes in two families.
SharePoint Advanced Management (SAM) is the administrative toolset for SharePoint and OneDrive. Microsoft’s documentation makes its Copilot-related capabilities available to organisations that are licensed for Copilot, so a firm that has bought the assistant already has the means to assess its exposure. The parts that matter here are the following. The content management assessment runs a set of reports and groups the sites that need attention; Microsoft recommends repeating it every 30 days. The data access governance reports show the permission structure across sites, the sites where content was recently shared with “Everyone except external users” (the top 100 over the past 28 days), and the sites with the most new links of each type. Site access reviews hand a report to the owner of an overshared site and ask for a decision. Restricted Access Control limits a site to the members of a named group, whatever other permissions or links exist; it is a real change of access. Site lifecycle policies detect inactive and ownerless sites and ask owners to attest that the site, its members and its sharing settings are still right.
Two scope controls need care, because one of them is on its way out. Restricted SharePoint Search let an administrator name up to 100 sites that organisation-wide search and Copilot were allowed to draw on. It was the common advice for early rollouts. Microsoft now describes it as a short-term measure that is not a security boundary, has announced its retirement, and blocks new enablement from 31 July 2026. Its successor in practice is Restricted Content Discovery, a setting per site that keeps the site’s content out of organisation-wide search and Copilot responses without changing anyone’s permissions. Microsoft presents this too as temporary, a way to gain time while permissions are reviewed, and warns against excessive use because it degrades the assistant’s answers. Three limits are documented: it does not apply to OneDrive, it does not affect work on a file the user already has open, and on a site with more than 500,000 items the setting can take more than a week to take full effect. A plan that depends on hiding the finance site on the Friday before go-live should allow for that.
Microsoft Purview supplies classification, DLP and evidence. Sensitivity labels classify files, mail and containers, and when a label applies encryption Copilot honours the usage rights the user has been granted. The DLP policy location for Copilot (in late 2026 named for Microsoft 365 Copilot, Copilot Chat and Cowork) supports four things: stopping Copilot from processing files and mail that carry chosen labels, which is generally available; blocking prompts that contain chosen types of sensitive information, which is in preview and rolling out; keeping such prompts away from web search; and, in preview, excluding mail from external senders as grounding, a measure aimed at prompt injection (Section 5.2). The documentation notes two limits that are easy to miss: an excluded item can still appear among the citations of an answer although its content is not used, and files that a user uploads into a prompt are not scanned. Finally, what was called Data Security Posture Management for AI has been folded into a new, general Data Security Posture Management in Purview, with the earlier version marked as classic. It offers data risk assessments that look for oversharing (a default assessment that runs weekly over the most-used SharePoint sites, and custom ones) and an inventory of the AI applications and agents active in the tenant.
On licensing we can only give direction. The SharePoint tools come with Copilot. Much of Purview beyond manual labelling and basic DLP has historically required the E5 tier or an equivalent add-on, and Microsoft’s documentation still ties several of the capabilities above to it. The service description that applies on the day of purchase is the only reliable source, and an organisation on a lower tier should establish early which of these controls it actually owns.
4.3 Google Workspace
The same four layers exist in Google Workspace under different names. At the access layer the work is on Drive: the sharing settings per organisational unit (whether files may be shared outside the domain, with the whole domain, or only with named people), the membership of shared drives, and the groups that grant access. At the classification layer Google offers classification labels for Drive files, which people can apply and which rules or built-in AI classification can apply automatically.
At the scope layer Google’s privacy hub lists several instruments. Administrators can switch Gemini’s access to Workspace data on or off per service (Gmail, Drive, Calendar or Chat); with a service switched off, Gemini no longer searches it in the background, although users can still ask about a file they have open or link to. Files on which download, print and copy are disabled are not retrieved by Gemini, and the hub recommends combining this with labels, so that a rule applies the restriction to everything labelled as, say, HR or finance. Client-side encryption puts content beyond Gemini’s reach altogether, at the price of losing other server-side functions for those files. At the interaction layer, generated output inserted into mail or documents is evaluated against the administrator’s DLP rules, and audit logs record users’ interactions with Gemini.
We rely here on Google’s own description, as we do for Microsoft. Several of these controls depend on the Workspace edition, and they do not automatically extend to Google’s other Gemini products, which have their own settings. The principle from Section 2 holds throughout: Gemini follows Drive’s permissions, so Drive’s permissions are where the work is.
4.4 Self-hosted retrieval: what you must build
Organisations build their own assistants for good reasons, which our paper on where AI inference runs discusses. Whoever does so takes on the whole access problem, and a prototype usually solves none of it. The typical proof of concept reads a folder of documents with a service account that can see everything, cuts them into passages, stores the embeddings and answers anyone who asks. Every user of that system has, in effect, the service account’s rights.
A production system needs five things. Authenticate the user against the organisation’s directory, and pass that identity to the retrieval layer on every query; the application’s own credentials must never stand in for the user’s. Carry permissions with the data: at ingestion, read the access list of each source item and store it as metadata on every passage derived from it. A passage cut from a confidential document is exactly as confidential as the document. Enforce at retrieval time, inside the search, by filtering on the user’s identity and group memberships before results are ranked. Filtering after the fact, or asking the model in its instructions to withhold what the user should not see, is not access control. Keep permissions fresh. A copied access list is a snapshot. When someone is removed from a group in the source, the index must learn of it, and the delay is a window in which a revoked user can still retrieve the content. Log and test: record who asked what and which passages were returned, and test with accounts that should not see particular documents.
Search platforms increasingly offer these functions ready-made. Microsoft’s Azure AI Search (now presented under the name Foundry IQ), for one, documents both the classic pattern (a security filter in which the application passes the user’s identities as a string to match against a field on each document) and native ingestion of permissions from SharePoint and data lake storage with enforcement at query time from the user’s token. Its documentation is candid about the remaining gap: refreshing permissions “doesn’t provide immediate revocation”, and when documents are split into passages the permission metadata has to be projected onto every one. Other search engines and vector databases offer comparable filters. The mechanism matters less than the discipline of treating access metadata as a first-class part of the index from the first day, because adding it to an existing index means reingesting everything.
5. Non-human identities: agents, connectors and keys
5.1 From a user’s reach to standing access
So far the assistant has acted for a person and within that person’s rights. The next generation does not always do so. Agents run on a schedule or on a trigger, connectors synchronise whole systems, and automations call interfaces with a key. Each of these is an identity, and each has permissions. Our paper on agents that act argues that an agent must be governed as an actor; here we add what that means for data exposure.
There are two ways an agent can hold access, and they fail differently. In the delegated model the agent acts with the rights of the user who invokes it, so everything said above applies unchanged: the agent can reach what the user can reach. In the application model the agent or connector has an identity and rights of its own, typically granted once by an administrator and often broad (read all sites, read all mailboxes), because narrow scopes are more work to set up. An agent of the second kind that answers questions from many users is a permission bypass unless it re-applies each user’s rights itself. The same holds for a connector whose service account can read an entire source system and whose index is then offered to everyone.
Three habits make this worse in practice. Credentials are long-lived: client secrets and API keys that were issued for a pilot and never rotated. Ownership is unclear: the person who registered the application has moved on. And creation is easy: low-code tools let any employee build an agent grounded on a site or a mailbox and share it with colleagues, who then query that data through the agent. Microsoft’s SharePoint toolset now includes reports on agents created across sites and on what agents access, which says something about how quickly they multiply.
5.2 Prompt injection: an outsider borrows the user’s reach
A language model cannot reliably tell instructions from data. If text that the assistant retrieves contains something that reads like an instruction, the model may follow it. This is prompt injection, and for an assistant grounded on mail and documents it means that anyone who can place text in front of the assistant (by sending an email, sharing a file or editing a web page) can try to steer what it does with the user’s access.
The clearest public example is EchoLeak (CVE-2025-32711), a vulnerability in Microsoft 365 Copilot disclosed in June 2025 and analysed in a later academic case study. A single crafted email, which the recipient never had to open, could cause Copilot to gather data within the user’s reach and send it out through an automatically loaded image address, having passed Microsoft’s injection classifier and link redaction on the way. Microsoft fixed the flaw on its side and reported no evidence that it had been exploited. Researchers have reported injection weaknesses in other assistants as well, and both Microsoft and Google now describe layered defences in their documentation. They help. Neither vendor claims they are complete, and nor should a customer assume it.
The connection to our subject is direct. The damage an injection can do is bounded by what the assistant can reach on behalf of the victim. In a tenant where an ordinary user can open the HR site, a successful injection against any ordinary user reaches the HR site. Least privilege is therefore the control that holds when the injection defences do not. Two further measures reduce the opportunity: limiting which untrusted content the assistant will use as grounding (Microsoft’s option to exclude external mail is an example), and limiting the channels through which an assistant or agent can send data out.
5.3 Agent identity and scoped credentials
The remedy for standing access is to treat every non-human actor as an identity with an owner, a purpose and the smallest set of rights that serves the purpose. Concretely: keep an inventory of agents, connectors, application registrations and keys, with a named human owner for each. Prefer the delegated model wherever an agent answers to a person. Where an application identity is unavoidable, scope it to named sites, mailboxes or data sets and not to the tenant, a possibility the major platforms now offer for most of their interfaces. Use short-lived credentials issued by the platform in place of stored secrets. Include these identities in access reviews, and remove those that have not been used.
The platforms have started to provide the plumbing. Microsoft’s Entra Agent ID gives agents their own kind of identity in the directory, with templates, owners and sponsors; according to Microsoft it is available to all Entra customers, while extending conditional access, risk detection and governance to agents requires the separately licensed Agent 365, which is included in the top Microsoft 365 tier and sold as an add-on to others. Whatever the platform, the questions for the CISO are the same as for a human account. Who is this, who answers for it, what can it reach, and when was that last confirmed?
6. The legal frame
The law has little to say about assistants as such and a good deal to say about access to data. What follows is brief and limited to the European Union; it is not legal advice.
GDPR. Four provisions carry most of the weight. The principle of integrity and confidentiality in Article 5(1)(f), worked out in Article 32, obliges the controller to protect personal data against unauthorised access by appropriate technical and organisational measures, and Article 32(4) requires steps to ensure that people acting under the controller’s authority process personal data only on its instructions. Access by a colleague who has no need for it is unauthorised access in this sense, even though it happens inside the organisation. Article 25(2), data protection by default, asks for measures ensuring that by default personal data are not made accessible to an indefinite number of people; a personnel folder open to all staff is hard to square with it. Data minimisation in Article 5(1)© and storage limitation in Article 5(1)(e) bear on the stale content that makes up much of what an assistant can find: data that should have been deleted cannot be overshared. Purpose limitation in Article 5(1)(b) comes into play when an assistant recombines data collected for one purpose to serve another, for example when chat and mail history are summarised to assess an employee.
Two consequences deserve attention. If an employee obtains a colleague’s medical or disciplinary information through an assistant, that is a personal data breach as Article 4(12) defines it (unauthorised access), which must be assessed and, unless it is unlikely to result in a risk to the people concerned, notified to the supervisory authority within 72 hours under Article 33. HR files routinely contain special categories of data under Article 9, health data above all, which raises the stakes. And the introduction of an assistant that processes personal data across the organisation will generally call for a data protection impact assessment under Article 35; the Norwegian authority’s report says so explicitly. An assessment that describes the assistant and takes the permissions as given has missed the main risk. Nothing here depends on the assistant. The folder was unlawfully open before; the assistant makes the breach likely and visible.
NIS2. Directive (EU) 2022/2555 requires essential and important entities to take cybersecurity risk-management measures that include, in Article 21(2)(i), human resources security, access control policies and asset management, and in point (j) the use of multi-factor authentication where appropriate. Article 20 makes the management body responsible for approving and overseeing these measures. National transposition has been uneven, so the precise duties depend on the member state, but in substance an entity in scope must be able to show an access control policy that is applied. An access model known to be inaccurate, with an assistant deployed on top, is a difficult position in an audit or after an incident.
EU AI Act. Regulation (EU) 2024/1689 adds less than is often assumed. A general-purpose office assistant is not a high-risk system merely because it is used at work. Two points are relevant. The AI literacy duty of Article 4 already applies to every organisation that deploys AI, and it is reasonable to read it as covering what staff should understand about how an assistant finds its answers and what to do when it shows them something they should not see. And if an assistant or agent is used to make or prepare decisions about people in the employment context (recruitment, evaluation, allocation of tasks), the use may fall under the high-risk category of Annex III, whose obligations were deferred by the 2026 amendments. Our paper on the AI Act for mid-sized firms gives the timeline.
7. A phased readiness programme
The method has four phases: discover, contain quickly, fix at the root, keep it true. It can start before a single assistant licence is bought and it should not wait for the rollout, though in practice the two usually run side by side: the first weeks of containment make a limited pilot defensible, and the pilot keeps attention on the structural work.
7.1 A prioritisation rule: sensitivity times exposure
A mid-sized tenant holds more sites and shares than any team can review at once. The programme needs a rule that says where to start. We use the product of two scores, each on a scale of one to four.
Sensitivity asks what the worst content in the location is. One: public or trivial. Two: internal working material. Three: confidential (contracts, pricing, customer data, ordinary personal data). Four: strictly confidential (HR files, health and payroll data, board and merger material, credentials).
Exposure asks how wide the audience is. One: named individuals or a small team. Two: a department or a comparable group. Three: everyone in the organisation, whether through a broad group, a public team or domain-wide sharing. Four: beyond the organisation, through links for anyone or through guests.
The priority is sensitivity multiplied by exposure, which gives a value between 1 and 16. Locations scoring 12 or more are contained within days. Scores of 6 to 9 are scheduled for the structural phase within the quarter. Scores of 4 or less go to routine review. Where two locations tie, the one with more content, or with no owner, goes first. Table 3 works the rule through for seven typical findings. The scales are deliberately coarse and are our own; any organisation may substitute its classification scheme. What matters is that the rule is simple enough for a site owner to apply, and that it ranks by the combination, since a strictly confidential file held by three people needs no urgent action and the canteen menu may be read by the world.
Table 3. The prioritisation rule applied to seven illustrative findings. S is sensitivity, E is exposure, both from 1 to 4; the score is their product.
| Finding | S | E | Score | Action |
|---|---|---|---|---|
| Board papers reachable through links for anyone | 4 | 4 | 16 | Contain now |
| Payroll exports in a site granted to all staff | 4 | 3 | 12 | Contain now |
| Customer contracts in a team with six former guests | 3 | 4 | 12 | Contain now |
| Price lists in a public team | 3 | 3 | 9 | This quarter |
| Engineering wiki open to all staff | 2 | 3 | 6 | This quarter |
| HR case files limited to the HR team | 4 | 1 | 4 | Routine review |
| Canteen menu open to all staff | 1 | 3 | 3 | Routine review |
7.2 Phase 1: discover
The aim of the first phase is a ranked list. Three inputs produce it. The platform’s own reports show exposure: sites and drives granted to broad groups, links for anyone and for the organisation, public teams, guests and their access, ownerless and inactive sites. A classification scan shows sensitivity: where the patterns that indicate personal, financial and health data occur, labelled or not. And interviews with the owners of the obvious functions (HR, finance, legal, the management office) show where the sensitive material is supposed to live, which is a useful check on where it is found.
Two tests are worth more than any report. The first is to sign in as an ordinary new employee, with no special group memberships, and search for salary, dismissal, sick leave, the names of board members and the word “confidential”. The second, once a few assistant licences exist, is to give the same account an assistant and ask it the questions a curious colleague would ask. The results make the case to management better than any percentage. The same inventory should list the non-human identities of Section 5: applications with tenant-wide read rights, connectors, agents and keys.
7.3 Phase 2: contain quickly
Containment covers the locations that score 12 or more and aims to close them within days, accepting that the measures are blunt. Remove broad groups from the sites concerned. Disable links for anyone on sensitive sites and set an expiry on the rest. Restrict the HR, finance, legal and board sites to named groups. Exclude from the assistant’s scope the sites that cannot be fixed in time. Change the defaults, so that new links are for named people, new teams are private and external sharing is a deliberate act. Remove guests who have not signed in for a set period, and disable accounts of people who have left.
Two cautions apply. Containment breaks things: a process somewhere depends on the broad access, and the service desk should be warned and a fast route provided for restoring access that is legitimately needed. And the scope controls in this phase hide content from the assistant without closing the access, so every exclusion goes on a list with an owner and a date by which the access itself will be fixed.
7.4 Phase 3: fix at the root
The structural phase replaces the containment measures with a model that is right. It has four strands. Ownership: every site, shared drive and group has at least two owners who know they are owners, and ownerless locations are assigned or archived. Group design: access is granted through groups that follow the organisation (department, role, project), maintained from the HR system where possible, and the all-staff group is reserved for content that is truly for all staff. Classification: a short label scheme, four levels at most, with defaults per site, automatic labelling for the recognisable patterns and rules that attach protection to the top level. Lifecycle: retention and deletion for content that has outlived its purpose, and archiving of inactive sites, which reduces both exposure and noise in the assistant’s answers.
Site owners do most of this work, because only they know who should have access. The central team supplies the reports, the scoring rule, a deadline and help. An access review that is sent to an owner with no explanation is approved unread; a review that shows the owner the three broad grants and the eleven guests on their site, with a recommended action for each, gets done. Table 4 sets the quick measures against the structural ones.
Table 4. Quick wins against structural fixes for the commonest findings. The quick win reduces the exposure within days; the structural fix removes its cause. A programme that stops after the first column will find itself back at the start within a year or two.
| Finding | Quick win (days) | Structural fix (months) | What the quick win leaves open |
|---|---|---|---|
| Sensitive site granted to all staff | Remove the broad group; restrict the site to a named group | Role-based groups maintained from HR data; owners attest membership periodically | Other sites with the same pattern that the report did not rank |
| Links for anyone | Disable on sensitive sites; set expiry; default new links to named people | Label-driven sharing rules; external sharing only from designated sites | Existing links on sites that were not classified as sensitive |
| HR, finance, legal and board content | Exclude the sites from the assistant’s scope; verify membership by hand | Dedicated sites with restricted access, top-level label and encryption; no sensitive files outside them | Copies in personal storage, mail and chat |
| Ownerless and inactive sites | Exclude from scope; make read-only | Ownership policy with two owners; archive or delete after a set period of inactivity | The content is still there and still open |
| Unlabelled sensitive content | Default label per site for the known sensitive sites | Automatic labelling on patterns; labels drive DLP and scope | Sensitive files in unexpected places |
| Guests, departed staff and stale membership | Remove inactive guests; disable leavers’ accounts; transfer their files | Joiner, mover and leaver process driven from HR; guest access with an end date and a sponsor | Rights accumulated by long-serving staff |
| Agents, connectors and keys with broad standing access | Inventory; disable the unused; rotate old secrets | Named owner per identity; scoped rights; short-lived credentials; inclusion in access reviews | Agents built by employees since the inventory was taken |
7.5 Phase 4: keep it true
A permission model decays from the day it is fixed, at the rate at which people share, move and leave. The fourth phase makes the corrections part of normal operation. Defaults stay restrictive. Reviews recur: owners attest their sites and groups once or twice a year, and the sensitive ones more often. The discovery reports run on a schedule and their results are tracked. New sites, teams and agents are created through a route that assigns owners and a label at birth. The joiner, mover and leaver process is tested by sampling.
A few measures, reported quarterly to whoever is accountable, show whether the model is holding: the number of locations scoring 12 or more and their age; the share of sites and groups with two active owners; the share of content in the top two sensitivity levels that carries a label; the number of links for anyone and of active guests; the share of access reviews completed on time; and the number of non-human identities with tenant-wide rights. The trend is the result that matters. Individual values will never reach zero.
Users belong in the loop as well. An employee whom the assistant shows something they should not see ought to know that this is worth reporting, to whom, and that reporting it will not be held against them. Each such report is a free finding. It may also be a personal data breach that the organisation is obliged to assess, which is a second reason to make the reporting route short.
8. Conclusion
An AI assistant grounded on company data is, by design, as discreet as the permission model behind it. The vendors say so plainly: the assistant retrieves what the asking user may access, and getting that right is the customer’s task. In most organisations it is not right, for ordinary reasons that accumulated over years, and the published evidence, thin and partial as it is, gives no ground for assuming one’s own tenant is the exception.
We have argued that this makes identity and data hygiene the real AI readiness project. The controls are well known and mostly not new: least privilege, ownership, reviews, classification, lifecycle. The newer scope controls that hide content from the assistant are useful for gaining time and should be treated as temporary, as their own vendors recommend; one of them is already being retired. Agents and connectors extend the same question to identities that are not people, where broad standing access and long-lived credentials are the things to remove, and prompt injection gives the question an external edge, because whatever a user can reach, someone who manipulates that user’s assistant may reach too. The law adds no new duty here so much as a deadline on old ones: access to personal data by colleagues who have no need for it was a compliance problem before any assistant made it visible.
The programme we propose is modest in its parts: find the locations where sensitivity and exposure are both high, close those within days, repair the model behind them over months, and keep it repaired with defaults, reviews and a handful of measures. An organisation that does this gets a safer assistant with better answers. It also gets a tenant in which a stolen account reaches less and an audit finds less. Those benefits would justify the work if the assistant were never switched on.
Appendix A. A one-page checklist
A practical summary for the team preparing or reviewing the rollout of an AI assistant on company data.
Discover
-
List the sites, drives and shares granted to all staff, to public teams or through links for anyone, and the guests who can reach them.
-
Scan for personal, financial and health data, labelled or not, and ask HR, finance, legal and the board office where their sensitive material lives.
-
Sign in as an ordinary new employee and search, then ask the assistant, for salary, sick leave, dismissal and “confidential”.
-
Inventory agents, connectors, application registrations and keys, with their rights and owners.
-
Score each finding as sensitivity times exposure and rank the list.
Contain quickly
-
Close every location scoring 12 or more within days: remove broad groups, disable links for anyone, restrict to named groups.
-
Exclude from the assistant’s scope what cannot be fixed in time, and record each exclusion with an owner and an end date.
-
Set restrictive defaults for new links, new teams and external sharing.
-
Remove inactive guests and disable accounts of people who have left.
-
Warn the service desk and provide a fast route to restore legitimate access.
Fix at the root
-
Give every site, drive and group two owners; assign or archive the ownerless.
-
Grant access through role, department and project groups maintained from HR data.
-
Introduce a label scheme of at most four levels with defaults, automatic labelling and protection on the top level.
-
Apply retention and archiving so that stale content leaves the assistant’s reach.
-
For self-built retrieval: authenticate the user, store permissions on every passage, filter at query time, refresh, log and test.
-
Give every agent and connector an owner, scoped rights and short-lived credentials.
Keep it true
-
Recurring access reviews and site attestation, more often for sensitive locations.
-
Scheduled discovery reports with tracked results and a quarterly set of measures for management.
-
A data protection impact assessment that covers the permission model, and a breach procedure that covers internal exposure through the assistant.
-
A short reporting route for employees who are shown something they should not see.
-
A check of product names, features and licence terms before each decision, since they change often.
Appendix B. Glossary
-
Access review: a periodic confirmation by an owner of who should keep access to a group, site or application.
-
Non-human identity: an account that does not belong to a person, such as a service account, application registration, connector, agent or key.
-
Oversharing: access to content that is wider than the organisation intends.
-
Prompt injection: text placed in content the assistant reads that the model treats as an instruction.
-
Security trimming: removing from search results the items the asking user is not permitted to open.
-
Semantic index: an index of numerical representations of passages that finds content by meaning instead of by exact words.
-
Sensitivity label: a classification attached to a file, message or container that can drive protection such as encryption or exclusion.
References
Microsoft (2026). Data, Privacy, and Security for Microsoft Copilot. Microsoft Learn. https://learn.microsoft.com/en-us/copilot/plan/microsoft-365-copilot-privacy
Microsoft (2026). Semantic indexing for Microsoft Copilot. Microsoft Learn. https://learn.microsoft.com/en-us/microsoftsearch/semantic-index-for-copilot
Microsoft (2026). Get ready for Microsoft Copilot with SharePoint Advanced Management. Microsoft Learn. https://learn.microsoft.com/en-us/sharepoint/get-ready-copilot-sharepoint-advanced-management
Microsoft (2026). Restricted SharePoint Search. Microsoft Learn. https://learn.microsoft.com/en-us/sharepoint/restricted-sharepoint-search
Microsoft (2026). Restrict discovery of SharePoint sites and content. Microsoft Learn. https://learn.microsoft.com/en-us/sharepoint/restricted-content-discovery
Microsoft (2026). Microsoft Purview DLP for Microsoft 365 Copilot and Cowork. Microsoft Learn. https://learn.microsoft.com/en-us/purview/dlp-microsoft365-copilot-location-learn-about
Microsoft (2026). Learn about Microsoft Purview Data Security Posture Management (DSPM). Microsoft Learn. https://learn.microsoft.com/en-us/purview/data-security-posture-management-learn-about
Microsoft (2026). What is Microsoft Entra Agent ID? Microsoft Learn. https://learn.microsoft.com/en-us/entra/agent-id/what-is-microsoft-entra-agent-id
Microsoft (2026). Document-Level Access Control: Foundry IQ (Azure AI Search). Microsoft Learn. https://learn.microsoft.com/en-us/azure/search/search-document-level-access-overview
Google (2026). Generative AI in Google Workspace Privacy Hub. Google Workspace Admin Help. https://knowledge.workspace.google.com/admin/gemini/generative-ai-in-google-workspace-privacy-hub
Varonis (2025). 2025 State of Data Security Report: Quantifying AI’s Impact on Data Risk. https://www.varonis.com/blog/state-of-data-security-report
Finnegan, M. (2024). Microsoft 365 Copilot rollouts slowed by data security, ROI concerns (reporting a Gartner survey of June 2024). Computerworld, 27 September 2024. https://www.computerworld.com/article/3542000/microsoft-365-copilot-rollouts-slowed-by-data-security-roi-concerns.html
Datatilsynet (2024). NTNU, exit report: Copilot through the lens of data protection. Norwegian Data Protection Authority, 26 November 2024. https://www.datatilsynet.no/en/regulations-and-tools/reports-on-specific-subjects/reports/ntnu-copilot-through-the-lens-of-data-protection/
Reddy, P. and Gujral, A. S. (2025). EchoLeak: The First Real-World Zero-Click Prompt Injection Exploit in a Production LLM System. arXiv:2509.10540. https://arxiv.org/abs/2509.10540
European Parliament and Council (2016). Regulation (EU) 2016/679 (General Data Protection Regulation). https://eur-lex.europa.eu/eli/reg/2016/679/oj
European Parliament and Council (2022). Directive (EU) 2022/2555 on measures for a high common level of cybersecurity across the Union (NIS2). https://eur-lex.europa.eu/eli/dir/2022/2555/oj
