﻿# Dify workflow access and API access stop different knowledge consumers

Map Dify Agent Knowledge Base access by consumer: workflow nodes, published Agents, Service API and account-bound CLI reading have distinct controls and failure behavior.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-dify-knowledge-access-surfaces/
Language: en

## Start from the consumer being restricted

A team wants to stop an experimental workflow from reading a knowledge base while preserving a support Agent's access. “Disable knowledge” is too vague for this task. Dify Agent Knowledge Base exposes distinct access surfaces. Identify the actual consumer and desired result before using a setting whose name sounds like a universal shutdown.

## Understand Workflow access

The [connection guide](https://docs.dify.ai/en/cloud/use-dify/knowledge-base/use-knowledge-in-apps) says disabling Workflow access stops workflows, including test runs, from searching the base. Existing workflows fail at the retrieval node until access is restored. The [node reference](https://docs.dify.ai/en/cloud/use-dify/nodes/knowledge-retrieval-v2) also ties knowledge selection to the builder's viewing permission. Separate whether a collection appears during editing from whether a configured workflow can execute it later.

## Understand API access and the new Agent

The same connection guide says API access controls the Service API and published new Agents. An Agent can keep running while losing the ability to search that knowledge base. That differs from a workflow stopping at a failed node. When verifying a restriction, inspect whether search actually occurred; the Agent continuing to produce prose does not prove it retained the source or obtained equivalent evidence elsewhere.

## Keep account-based reading distinct

The documented CLI route lets a coding agent browse and read documents that the signed-in user can view. It is read-only and uses the selected Dify workspace; semantic search is a separate Service API path. Do not describe a developer API switch as proven universal revocation of every account-based reading route. Review the relevant account, resource permission, and selected workspace for the path actually used.

## Review resource permissions explicitly

The [creation guide](https://docs.dify.ai/en/cloud/use-dify/knowledge-base/create-knowledge-base) includes who may view the knowledge base and connect it to apps. Those audience choices belong alongside connection switches in an access inventory. A familiar application name is insufficient: record which base identifier and consumer path it uses. The [task-contract approach](/journal/learn-codex-task-contract/) makes a restriction reviewable by specifying the actor, resource, and permitted outcome.

## Verify both restriction and remaining function

For an authorized operational change, test the intended blocked route and a route meant to remain usable. Check source-specific behavior as well as interface availability. [Tool observations](/journal/learn-codex-tool-observation/) distinguish a running application from successful knowledge access. This article maps current Cloud documentation; it does not change permissions or claim that a single toggle covers every product surface.
