Skip to main content
Cognee Cloud enforces access control at the dataset level. Each dataset gets its own Ladybug graph database and LanceDB vector store, ensuring complete data isolation. For the full permissions system documentation, see Cognee Permissions System.

Dataset isolation

  • Each dataset maintains separate storage namespaces.
  • Search queries only return results from datasets the user has access to.
  • Scoped search (single dataset) and combined search (across accessible datasets) are both supported.

Managing members from the UI

The Members page (open the Profile menu in the top-right corner and select Members) lists everyone in the current tenant. From this page the tenant owner can:
  • Invite new members by email — either one at a time or multiple addresses at once.
  • Remove existing members from the tenant.
Non-owner members see the same list of tenant members but cannot invite or remove anyone — the invite card and the per-row remove control are only shown to the owner.

Switching tenants

If your account belongs to more than one tenant, use the tenant switcher in the top bar to move between them. The selected tenant is remembered in your browser and used as the active workspace for datasets, search, and ingestion until you switch again.

Tenant management

Tenants group users and resources. Each Cognee Cloud workspace operates as a tenant. Platform API (api.aws.cognee.ai):

Tenant selection and membership

These endpoints back the in-app workspace switcher and the Members page. Owners use the Members page to invite and remove teammates; non-owners see the roster but not the invite or remove controls. Users who belong to multiple tenants can switch between them without signing out — the selected tenant is persisted in the cognee_selected_tenant cookie.

Roles

Roles define what actions a user can perform within a tenant.

Dataset permissions

Grant access to datasets for specific users or agents. POST /api/v1/permissions/datasets/{principal_id} — Grant dataset permissions to a principal. The principal_id is the UUID of any entity that can hold permissions — this includes both users and agents. The same endpoint is used regardless of whether you are granting access to a human user or to an agent service account. The permission_name query parameter controls the access level: read, write, or delete.
This is the same mechanism used by the Connections UI when you share a dataset with an agent. This endpoint only adds a permission; to set exactly what one of your agents holds on a dataset, replacing what it had, use PUT .../principals/{agent_id}/datasets/{dataset_id}.

Roles vs. direct permissions

Roles and direct dataset permissions work together:
  • Roles define a reusable set of capabilities within a tenant (e.g., “viewer”, “editor”). Assign a role to a user via POST /api/v1/permissions/users/{user_id}/roles, and that user inherits the role’s permissions across the tenant.
  • Direct dataset permissions grant access to specific datasets for a specific principal. Use the datasets/{principal_id} endpoint above to give a user or agent access to individual datasets, independent of their role.
Both mechanisms can be combined: a user can have a tenant-level role and additional per-dataset grants.

Agents

An agent is a sub-user of your account with its own API key. Every route below only sees your own agents. For a step-by-step setup that uses an agent’s key, see Connecting an agent.

Scope an agent’s datasets

PUT /api/v1/permissions/principals/{agent_id}/datasets/{dataset_id} sets exactly what the agent holds on one dataset: listed permissions are granted, anything not listed is revoked, and an empty list takes the dataset away. Valid permissions are read, write, delete and share; any other name is refused with 400. You need share on the dataset yourself to change who can reach it.
  • Only the agent’s owner can change it. Anyone else who can share the dataset, including a workspace admin, gets 403 “Only the agent’s owner can change what it reaches”.
  • An agent never gets more than you have. Asking for a permission you do not hold yourself on that dataset is refused with 403 “An agent cannot have more access than you do”. The check runs when you grant; if your own access is later reduced, the agent’s existing grants are not narrowed automatically yet.
  • A dataset the agent owns cannot be scoped. If the agent created the dataset, the request is refused with 403, because a dataset’s owner always keeps its own access.
  • The same endpoint also accepts a group, a member, or the workspace id as the principal. GET /api/v1/datasets/access lists current grants, including agent grants with their parentUserId; the sharedWith list is only filled in for datasets you hold share on.
For a complete walkthrough of permission patterns, see Permission Snippets and the Cognee Permissions System.