Source permissions
Source permissions restrict retrieval according to access in the connected source service. Use them when a shared knowledge base contains documents with different access requirements.
Before you start
Use a connected knowledge base with a supported provider and an Admin role on that base. Current supported source providers are Google Drive, OneDrive, and SharePoint. OneDrive and SharePoint imports can use delegated OAuth or application credentials, but each reader still needs their own delegated OAuth account for permission checks. Website and mixed website/source knowledge bases do not support this setting.
Each reader needs knowledge-base access and a connected provider account that can read the intended files. The check uses the authenticated reader's provider authorization, not the importing account's permissions. A missing verified reader or unavailable provider check does not grant access. See Create and manage connections and End user connections for account authorization.
Use users with different source access to check enforcement. Identify a document both users can read and one restricted to only one user. Verify these permissions directly in the provider before checking access in StackAI.
Enable source permission checks
Open More Options → Update Settings and enable Enforce source permissions. If the control is absent, confirm that you are an Admin on the base and that its connected provider supports source checks; ask the knowledge-base owner to review the configuration.

Users need the required knowledge-base access as well as access to the underlying source files.
Review access for an authorized user
Sign in as the user who can read the restricted source and query a source that account is authorized to read. If prompted to connect the source account, complete the authorization with that user’s own Google or Microsoft account, then rerun the query.

Inspect the returned passage and filename to confirm the source is indexed and retrievable for that account.
Review another user’s permitted sources
Use a separate browser profile or signed-out session for the user with more limited source access. Authorize that user's own provider account and query the document both users can read.

Confirm that accessible sources still return relevant passages when permission checks are enabled.
Check restricted sources
With the same account, query information in a source the user cannot access.

Inspect all returned filenames and passages to confirm that restricted source content is absent.
Check the published experience and recover
Repeat the permitted and restricted questions through the published interface with both users. Configure authenticated access so the application can identify each reader; a password by itself is not a user identity. A successful builder test does not establish what a different published user can retrieve.
If StackAI asks for a source connection, connect or reconnect the prompted account and retry. If a known permitted file remains missing, confirm that the same account can open it in the source service, then check the file's indexing status and the workflow's filters. Do not disable enforcement to make a missing result appear. If the provider is unavailable, retry after its access is restored.
Important behavior
A user needs access to the knowledge base and permission to read the underlying source. Knowledge-base sharing alone does not grant source access.
Continue
Last updated
Was this helpful?

