How to export data from Twingate starts with what the admin interfaces return
The configuration can be read through Twingate's GraphQL Admin API with a read-only token, or through the Twingate Terraform provider, and either route gives you the structure you need to rebuild access on another platform. Set your expectations before you plan. Connector secrets, credentials and user authentication factors do not come out in usable form, so the export is an inventory of what exists, not a restorable backup of the tenant. Plan to issue new Connector credentials on the replacement platform, re-enroll users through your identity provider and re-register any MFA factors the new system requires. Record in your change ticket which fields you captured and which items you will rebuild by hand.
Start with the objects that define who can reach what: remote networks, resources, groups, security policies and service accounts. Remote networks and resources show where private services live and which Connectors serve them. Groups show which people and service accounts each grant applies to, and security policies show the conditions attached to access. Pull these through the Admin API first, saving each raw response with a timestamp so the copy can be reproduced later. If you also use Terraform, treat the state file as a second source, but expect it to cover only what the provider manages. Compare its contents with the API output, reconcile object counts, and resolve every item that appears in one source but not the other. Confirm also whether group membership comes from an identity provider sync or is set directly in Twingate, because that decides where membership must be rebuilt.
This page covers the export sequence, how the captured objects map to NetBird or OpenZiti, and the cost and migration decisions that follow. Before scheduling any export, confirm in Twingate's current Admin API and Terraform provider documentation the query and resource names, field names, pagination behavior, rate limits, token permissions and output formats, since these can change between releases and this page does not fix them. Create the read-only token, run a test export against a small or non-production network, and compare its counts with what the admin console shows. Export well ahead of the renewal or licensing date so there is time to close gaps before any access is switched off.
What you can export from Twingate through its documented admin paths
This table lists the five Twingate object types you need to carry into a self-hosted ZTNA platform, with the export path for each. It shows what to expect from the GraphQL Admin API or the Terraform provider and what you must confirm in Twingate's own documentation before planning the migration. The main takeaway is that output formats and paging limits are not fixed here, so check them against your tenant before you schedule any cutover work.
| Object type | Export path | Documented output format | Limits to confirm |
|---|---|---|---|
| Remote networks | GraphQL Admin API query with a read-only token, or Terraform provider state | Confirm the response fields in the Admin API schema and the provider's state attributes | Confirm pagination arguments and any maximum page size in the Admin API reference |
| Resources | GraphQL Admin API query with a read-only token, or Terraform provider state | Confirm how addresses, ports and protocols are returned, and whether they are nested objects | Confirm whether resource lists page, and how many items one query can return |
| Groups | GraphQL Admin API query with a read-only token, or Terraform provider state | Confirm how group membership is returned, whether as IDs or as user objects | Confirm whether membership lists are paged separately from the group list |
| Security policies | GraphQL Admin API query with a read-only token, or Terraform provider state | Confirm the schema and whether the policy assignments to groups and resources are included | Confirm whether this object is available on your plan and in your token's scope |
| Service accounts | GraphQL Admin API query with a read-only token, or Terraform provider state | Confirm the fields returned and whether any key or secret material is exported at all | Confirm whether the API exposes service accounts and any limits on their key listings |
What does not export from Twingate and how to plan for each gap
Configuration export captures the structure of your Twingate tenant, but several items live with the tenant, the client devices or your identity provider. Each gap below needs a named owner and a workaround agreed before the tenant is closed.
Connector deployment secrets and tokens
Each Twingate Connector authenticates to your tenant with credentials that belong to that deployment, so an export cannot carry them to a new platform. Treat every Connector as a host you will rebuild. On the target side, deploy NetBird routing peers or OpenZiti edge routers and tunnelers, then issue new enrollment credentials. Confirm in Twingate's current documentation whether any connector secret can be read back through the Admin API or Terraform state, and record which hosts run Connectors so none is left unreachable at cutover. Keep the old Connectors running until traffic moves.
User passwords and MFA enrollments
Passwords and authenticator enrollments are held by your identity provider or by Twingate's own login flow, and no export carries them to a new platform. Plan for re-enrollment through the new platform's SSO rather than copying anything. Confirm which sign-in method each group uses today, whether any local Twingate accounts exist outside your IdP, and whether users need to re-register MFA with the new SSO connection. Give users a dated notice and a support path, because a user who cannot sign in on cutover day is the most common source of delay.
Identity provider configuration held outside Twingate
The connection between Twingate and your identity provider, including the application registration, group sync and any SCIM provisioning, is configured in the IdP and in the Twingate tenant rather than in a file you can export. Before closing the tenant, record the application settings, redirect URIs, claim mappings and group names from the IdP console. On the target side, NetBird can add external SSO providers such as Google, Microsoft or Okta through its embedded identity provider, so rebuild those connections there and test them with a pilot group.
Session and access history beyond the console
Audit history that the Twingate admin console displays may not match the full record you need for an access review or an incident investigation. Before the tenant is closed, confirm in Twingate's documentation how far back activity and audit events can be retrieved and how they can be exported. Pull the records your compliance team relies on from your identity provider and SIEM, which usually hold sign-in and authorization events for longer. Store the extracts under your retention policy and document where each record set now lives.
Objects the API does not expose
The GraphQL Admin API and the Terraform provider cover the objects Twingate chooses to expose, and some settings, such as certain display options, notifications or account-level preferences, may appear only in the admin console. Compare the console against your export. For each object you find that is missing from the export, screenshot it and write down the value in your migration record. Confirm the current schema in Twingate's documentation before you assume the export is complete, and re-run the comparison after any change made during the migration window.
Client installations and device enrollments
The Twingate client on each laptop, phone or server is enrolled to your tenant and will stop working once the tenant is closed. Nothing in the export moves that enrollment. Build an inventory of managed devices from your MDM or endpoint tool, and plan the NetBird or OpenZiti client rollout per platform, including any device posture checks you intend to keep. Confirm with your MDM team which devices need a push, which need a user action, and which are headless servers that need a service-level install.
GraphQL Admin API or Terraform state: which export path fits your team
The GraphQL Admin API path suits a tenant that was configured in the admin console and has no infrastructure-as-code record. An administrator creates a token for the export job, and a script reads remote networks, resources, groups, security policies and service accounts without changing anything. Confirm in Twingate's admin documentation which role or permission set a read-only token can hold before you create it, because the available scopes determine what the export can see.
- Who creates it: An account owner or admin creates the token in the admin console, under a named service identity so the export stays traceable after staff changes.
- How it is scoped: Grant the narrowest role the console offers, and confirm that it can read every object type you need, including service accounts and policies.
- How queries are scripted: Keep one query file per object type in version control, and run the script from a controlled host with the token supplied through an environment variable or secrets manager, never written into a file or shell history.
- How output is saved: Write each response as timestamped JSON, record the script version and tenant identifier beside it, and store the files in access-logged storage.
Check that the object count for each type matches what the admin console shows before you revoke the token.
The Terraform path suits a team that already manages Twingate with Terraform, or a tenant built partly by hand that you want to capture in state. Objects created in the console can be brought under management with import blocks or the import command, and the resulting state then describes the configuration you need. Confirm the provider's resource names and import identifiers in its documentation for your provider version, because this page does not record them.
- Whether you already use it: If the Twingate resources are defined in code and the state is current, the code itself is the export, and you can read it without calling the API.
- How objects enter state: For console-created objects, write import blocks, run a plan, and confirm that the plan shows no changes before you treat the state as complete.
- Drift check: Run a plan against the live tenant and review every difference, because a manual change in the console is invisible to code that was never updated.
- Sensitive values in state: State files can hold secrets and other sensitive attributes in plain text, so store state in an encrypted remote backend with restricted access and keep no copies on laptops.
- Retention: Keep the state version and the code commit that match the export date, so the configuration can be reproduced after the tenant is retired.
Before you share any state file with a migration partner, confirm which attributes the provider marks as sensitive for each resource type.
Choose the path that matches how the tenant was built. A tenant managed in code should be exported from the repository and state, with one API read used to confirm that the live tenant matches. A tenant built in the console is best exported through scripted API queries, with the Terraform route used only if you want the export expressed as code for the new platform. Either way, keep the raw output as the evidence copy.
- Built in code: Export from the repository and state, then use one API read to confirm there is no drift.
- Built in the console: Export through scripted API queries, and record who ran them and when.
- Mixed history: Use the API for a full inventory, then compare it with state for objects that were imported or created by hand.
- Evidence copy: Keep the unmodified raw responses or state files in restricted storage, with a checksum recorded, since the migration record and any later audit may need the original.
- Revocation: Remove the read-only token or service identity after the export, and note the revocation date in the migration record.
Ask your internal lead or migration partner to check the export inventory against the raw copy before any object is rebuilt on the new platform.
How to export data from Twingate in the right order
This sequence produces a complete, dated copy of your Twingate configuration while the tenant is still active, so you can rebuild remote networks, resources, groups, policies and service accounts on the new platform. Each step closes with a check you can repeat later.
Create a read-only admin API token
A Twingate admin creates a token for this export only, using the narrowest read scope that Twingate's Admin API documentation lists. Confirm the scope name in the current docs before you create the token, and record its name, creation date and owner in your change log. Test it with one simple read query, then attempt one write operation and confirm Twingate refuses it. Done when the read succeeds and the write is refused.
Inventory remote networks first
Run the GraphQL Admin API query or read the Terraform provider state to list every remote network in the tenant, with its name, location and identifier. Connectors and resources attach to these networks, so this list sets the order for the rest of the export. Run this step and every later step while the tenant and its connectors are still active. Check: the count of networks in your export matches the count shown in the admin console.
Export resources with their network links
Export each private resource with its address, ports, protocol and the remote network it belongs to. Keep the resource identifiers, because group assignments and policies refer to them later. Note any resource that uses a wildcard or a DNS name, since those need a different target on the new platform. Check: every resource appears once, each has a parent network, and the total matches the admin console for a sample of three networks.
Export groups and their assignments
Export each group with its members and the resources it can reach. Record group names and identifiers exactly as the API returns them, because your identity provider and new access policies will map to them. Check: pick three users with different group memberships and confirm their groups and resource assignments in the export match what the admin console shows for each user.
Export security policies and service accounts
Export the security policies and posture-related settings that the API exposes, along with each service account and the resources it can access. Confirm with Twingate's documentation which credential values the API returns, since you will likely need to reissue service account secrets on the new platform rather than copy them. Check: each service account appears with its resource grants, and each policy in the export is listed in the admin console.
Store each output in a dated, access-controlled location
Save each export as a separate file named with the export date and the object type, then place the files in a restricted location that only the migration team can read. Generate a checksum for each file and store the checksums alongside them, so later copies can be verified. Check: a second team member can open each file, the checksums recompute correctly, and access logs show only the expected users.
Record tenant state and then revoke the token
Write a short record of the tenant at export time: the export timestamp, the number of remote networks, resources, groups, policies and service accounts, the connector list with versions, and a screenshot or saved view of the admin console. Keep connectors running until this record and all exports are verified. Once they are, rotate and revoke the read-only token, then confirm the revoked token no longer authenticates. Done when the token fails a test read.
How to verify a Twingate export is complete before you cancel
Do not cancel the Twingate subscription or switch off a Connector until the export has been proven complete. The export is only useful as migration evidence if you can show that every remote network, resource, group, security policy and service account in the admin console is present in the file. Start by counting objects in the Twingate admin console for each type and recording those counts beside the counts your export script produced. Any mismatch is a stop condition, not a rounding difference. Confirm the console counts are taken from the same tenant and the same point in time as the export, because a resource added or removed in between will show up as a false gap.
Next, compare the content, not just the totals. Run a second query, ideally through a different path such as the Terraform provider if you already manage the tenant with it, and diff the resource addresses and group memberships between the two outputs. Check that every paginated GraphQL result was read to the last page by confirming the returned cursor is empty and that the record count matches the total reported by the API. Confirm that every service account and every security policy appears in the export, including ones that are disabled or unassigned, since those are the easiest to drop silently. Use the Terraform plan as a read-only check: a plan against the exported state should show no creates, and any proposed deletions should be explained before you proceed.
Keep the export file, the query scripts with their exact versions and parameters, the read-only token's scope (without the token value itself), and a signed record naming who ran each step and when. This package becomes the evidence in the migration file and the baseline for any later audit of how access was granted and removed. Store it in a location that the security and compliance teams can review, and confirm your retention requirements with them before deleting the source tenant.
How exported Twingate objects move into a self-hosted target
The export starts in the Twingate tenant, where a read-only API token is used to query remote networks, resources, groups, security policies and service accounts through the GraphQL Admin API or a Terraform state read. The export workspace stores those outputs and runs verification checks against them, but it never writes back to the tenant. Only the object definitions cross into the target platform, while credentials, user factors and SSO enrollments stop at the boundary and are re-created on the target side. Verification against the target happens before the Twingate tenant is closed, so groups and resources are not lost in the cutover.
Export reads from Twingate, verifies offline, and rebuilds objects on the target side only.
Where exported Twingate objects land in NetBird
Twingate resources do not move one-to-one into NetBird. In NetBird, access is decided by groups and rules on a peer-to-peer WireGuard overlay, so each exported Twingate resource has to be translated into a network route or an access rule that points at a routing peer, and each Twingate group has to become a NetBird group with the right rules attached. The export tells you what existed. It does not decide how the NetBird groups, routes and rules should be shaped, so that mapping must be designed as a step in the migration project and reviewed by the people who own each resource, not generated automatically from the export file.
Identity is the second decision. NetBird's self-hosted quickstart runs an embedded Dex identity provider, and it can add external SSO providers such as Google, Microsoft or Okta. Before you recreate users and groups, confirm which identity provider holds the authoritative user list, whether MFA is enforced there, and how group membership will reach NetBird. NetBird's pricing page places SSO and MFA with an enterprise identity provider and SCIM provisioning in its Team tier, so confirm with NetBird which features your chosen deployment and plan provide before you rely on them. Twingate's exported group and user data should be reconciled against that source of truth rather than copied across as is.
For recreating objects, NetBird's public API and Terraform provider are the documented routes, and the Terraform provider fits well if you already keep infrastructure definitions in code. Setup keys are the documented way to enroll peers, including Connector replacements, so plan which machines will become routing peers and which users will enroll through SSO. The same Twingate export also informs an OpenZiti migration, where Twingate resources map to OpenZiti services and policies instead of routes and rules. Keep the exported inventory as a neutral record so both target designs can be compared against it.
What to plan before the Twingate contract ends
The export is the easy part to start and the hardest part to finish on time. The items below set the dates, people, overlap period, and records that decide whether the move from Twingate to a self-hosted platform stays under control.
Export completion date against notice
Work backward from the notice deadline or renewal date in your Twingate agreement, not from the day you plan to switch. Leave time after the export to review the data, rebuild policies, and fix gaps before the account stops being usable. Notice periods and termination terms are not stated on this page, so confirm them with Twingate in writing and record the dates your team will work to.
Owner of the read-only token
Name one person who creates the Admin API token, keeps it in a secrets store, and is accountable for when it is revoked. Set the approver for its use, such as the security lead or IT owner, and write down who may run the export script. Confirm with Twingate which role grants read-only access in your tenant before anyone generates a token, and record the token's revocation as the final step of the export.
Parallel-run window
Plan a period in which Twingate Connectors and the new routing peers or edge routers both stay up, so users and services can move one group at a time. Decide which resources cut over first and how you will roll back a single resource without touching the rest. Ask Twingate how long Connectors keep working after a subscription ends, because that limit sets how long the overlap can safely last.
Users and service accounts to re-enroll
Build the list of human users, groups, and service accounts that must enroll again on the new platform, drawn from the exported group assignments. Service accounts and automated jobs often hold Twingate-issued access that no person watches, so inventory them separately. Include the SSO and MFA setup each identity needs, and schedule re-enrollment so help desk capacity matches the cutover waves.
Retention rules for exported data
Exported configuration names internal hosts, network ranges, group membership, and access policies, which makes it sensitive. Decide how long the JSON or Terraform state is kept, where it is stored, who can read it, and when it is deleted. Align these rules with your data classification and records policy, and confirm them with your legal or compliance team rather than assuming the default storage location is acceptable.
Closure record after verification
Keep a signed record showing that each exported resource, group, and policy was matched to a target configuration and tested, and that the Twingate tenant was closed only after that check. Include the token revocation time, the final export file hash, and the approver's name. Auditors and assessors reviewing remote access controls often ask for this evidence, so store it with your change records instead of in a single engineer's notes.
Can we export data from Twingate ourselves, and what does it cost in effort
Can our own engineers export Twingate configuration without outside help?
Usually yes, if the engineer has working experience with GraphQL queries and Terraform state, and an administrator can create a read-only token. Pulling the data is the easier half. The harder half is reading it correctly: deciding which Connectors back which remote networks, how group membership feeds each resource's access rule, and which service accounts still hold live access. An engineer who has only run the query may miss a resource that inherits access through a nested group. Ask whether the person doing the work can also review the output against the live Twingate admin console and document each gap. If that skill is not already in-house, treat the export as the first step of a plan and expect a review pass before anyone calls it complete.
What makes a Twingate export take more effort?
Effort rises with the size and shape of the tenant. The main drivers are:
- Number of resources and remote networks, since each one needs a mapped target object and a test
- Nested group logic, where access arrives through several layers of group membership and must be reproduced carefully
- Service accounts and their tokens, which often sit outside normal user review
- Terraform use, where the state file may lag the live tenant, drift needs reconciling and modules can hide values
- Number of target environments, such as separate staging and production tenants or several business units, each needing its own export and sign-off
Each driver adds review work. A small tenant with flat groups is quick to export, while a large one with years of layered policy takes considerably more checking.
What does our team need to provide for a Twingate export?
The company must provide three things before work starts. First, an administrator who can create a read-only API token in Twingate and record who issued it, so the export never needs write access. Second, a named owner who signs off the verification, compares the inventory with the live environment and decides when the export is complete. Third, access to the identity provider, because group membership drives Twingate's access rules and the new platform will rely on the same identities through SSO. Without the identity provider, the export shows group names but not who belongs to them. Agree in advance who holds the token and who revokes it once the export finishes.
How long does a Twingate configuration export take?
No reliable duration can be given without first inventorying the tenant. Time depends on the number of resources, groups, service accounts and Terraform modules, how many environments are in scope, how clean the existing configuration is, and how much verification the named owner requires. A single environment with flat groups will take far less time than a large estate with layered policy across several environments. Ask for a written plan that states the scope, the assumptions about tenant size, the dependencies on your administrators and identity provider, and the due date for each deliverable. Treat any figure offered before the inventory is complete as an estimate to be confirmed against the plan.
What would a fixed-scope Twingate export engagement cover?
A fixed-scope engagement sets the scope, deliverables and timeline in writing before work starts. DeployOpen plans and documents migrations to self-hosted open-source platforms in the client's own infrastructure. Subject to the agreed scope, an export engagement would typically cover:
- Read-only extraction of remote networks, resources, groups, security policies and service accounts, with the method recorded
- A normalized inventory that shows dependencies, such as which group grants access to which resource
- A mapping document from the Twingate model to the chosen target platform, with the mapping step's scope confirmed in writing
- A verification pass against the live tenant, with a sign-off record from the named owner
- Token revocation and a handover note
Ongoing upgrades, backups and continuous support are available as retainers. DeployOpen does not publish a price list, and a quote follows from the written scope.
How do we verify a Twingate export is complete?
Verify by reconciling counts and relationships, not by confirming that a file exists. Compare the number of remote networks, resources, groups, policies and service accounts in the export with the Twingate admin console. Sample several resources and trace each one from group to policy to resource, confirming the access path matches the live tenant. Check that nested groups were expanded correctly and that service accounts with long-lived tokens appear in the output. Confirm the export ran with a read-only token and that the token was revoked afterward. Record every mismatch with its cause. An export that cannot be reconciled is a gap to close before migration, and the named owner should not sign it off until it is.
How DeployOpen scopes and delivers a Twingate data export and exit
DeployOpen plans and delivers the export of your Twingate configuration as part of a fixed-scope engagement, with the scope, deliverables and timeline agreed in writing before work starts. The export is then used to rebuild your remote networks, resources, groups and policies inside a self-hosted ZTNA platform that runs in your own infrastructure.
How we scope
- Confirm which Twingate remote networks, resources, groups, security policies and service accounts are in the export.
- Agree with you whether the read-only API token or the Terraform provider state is the source for the export.
- Record in writing who approves the token, where exported files are stored and who may access them.
How we build
- Run the export with a read-only token and save each object type to a separate, versioned file.
- Map exported resources and groups to the target platform's routes, groups and access policies, and flag any gaps.
- Remove or rotate the export token once the export is verified, and record that step in the change log.
How we hand over
- Deliver the exported configuration files, a mapping document and a list of items that could not be carried over.
- Document each export query or Terraform command so your team can repeat the export later.
- Provide a checklist for re-enrolling users through SSO and confirming each migrated resource before cutover.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Re-run the export and compare it with the earlier snapshot if policies change during the migration window.
- Confirm with your team and the vendor which exports are still needed once the old Twingate tenant is retired.

