Join our Newsletter — 33% off our NHI Course

Bulk Export Relationships

Bulk Export Relationships is the high-volume retrieval API for extracting many authorization relationships from SpiceDB efficiently. It supports backup creation, migration, and system inspection by moving relationship data in bulk rather than one record at a time. The API is suited to operational workflows that need complete, consistent exports.

What Bulk Export Relationships Is For

Bulk Export Relationships is a retrieval mechanism, not a policy engine. Its value is in moving a large set of relationship records efficiently for backup, migration, audit review, or system inspection, while preserving the integrity of the exported relationship graph.

Because the API returns relationship data in bulk, it is most useful when teams need a consistent snapshot or a complete operational export rather than ad hoc lookups. That makes it a practical part of data portability, recovery planning, and platform administration around authorization state.

How It Differs From Record-by-Record Access

The key distinction is scale and operational shape. Single-record reads are designed for interactive authorization checks, while bulk export is designed for high-volume extraction of many relationships at once. That changes the performance profile, the failure modes, and the type of workflow it supports.

In practice, bulk export is typically used when the answer needs to reflect the whole relationship set, such as before a migration or when validating that an authorization store has been replicated correctly. For related control thinking around access-data handling, OWASP API Security Top 10 is useful context because export endpoints can expose unusually large response surfaces if they are not constrained and monitored.

For a broader governance lens on how this fits into security operations, the NIST Cybersecurity Framework 2.0 helps place bulk export inside identify, protect, detect, respond, and recover activities.

Operational Uses and Security Implications

Teams usually reach for bulk export when they need a dependable copy of relationship state for recovery, validation, analysis, or cross-system movement. Those are legitimate administrative use cases, but they also mean the output can become sensitive very quickly because relationship data often reveals who or what can act on which resources.

A bulk export may therefore carry more exposure than a normal lookup path. Even when the exported content contains no secrets, the structure of the relationships can still disclose permissions, trust boundaries, tenant topology, and privileged access paths. In that sense, the export is operationally valuable and security-significant at the same time.

If you are mapping the control environment around the API itself, the most relevant security expectations are strong access control, auditability, and controlled handling of the exported file or stream. NIST SP 800-53 Rev 5 Security and Privacy Controls is a strong reference point for access control, audit logging, and configuration management expectations around sensitive operational interfaces.

Risk and Threat Considerations

Bulk export concentrates authorization data into one high-value response, so the main risk is not just availability, but disclosure at scale. If the endpoint is overexposed, abused, or its output is mishandled, an attacker or insider can learn how access is structured across many resources much faster than by querying one relationship at a time.

Failure mechanism: excessive access to the export function, weak output handling, or poor audit visibility allows broad relationship data to be exfiltrated or replicated outside intended control boundaries.

Impact: exposure can support privilege discovery, lateral movement planning, tenant mapping, and accelerated abuse of authorization relationships, especially where the exported dataset includes sensitive operational or tenancy patterns.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
CIS Controls v8 6 — Access Control Management Bulk exports need controlled access to sensitive relationship data.
8 — Audit Log Management Export activity should be logged because it reveals large-scale authorization data movement.
3 — Data Protection Exported relationship data can disclose sensitive access structure and must be handled carefully.
Recommendation — Restrict export access to approved operators and review those permissions regularly. Log bulk export requests and review them for unusual volume or timing. Protect exported relationship data in transit, at rest, and during transfer to backup or migration targets.
NIST CSF 2.0 PR.AC-1 — Identities and Credentials Issued, Managed, Verified, Revoked Export endpoints are part of controlled authorization state handling.
DE.AE-3 — Anomalies and Events Detected Large export jobs can signal unusual access or data movement patterns.
RS.MI-1 — Incidents Managed Unauthorized bulk export may require containment and response.
Recommendation — Limit export capability to managed operators and revoke access promptly when roles change. Detect and triage export volume anomalies as potential misuse or compromise indicators. Contain unauthorized export activity and preserve logs for investigation.

Practitioner Guidance

What to watch for: treat bulk export as a privileged administrative capability and distinguish it from ordinary read access. The main governance question is not whether the API works, but who may invoke it, how often, what volume is normal, and where the exported data is allowed to go.

Practitioner takeaway: if the export is part of your backup or migration process, make its authorization, logging, and downstream storage controls as deliberate as the relationship model itself.