Twingate
Connect Twingate to Ploy to see every user in your Twingate network, the admin role each one holds and the groups they belong to. Ploy can also invite users, disable and re-enable them, change their admin role, add them to and remove them from groups, and delete them.
This integration is in beta
The Twingate integration is in beta. It was built from Twingate's API documentation and has not yet been run against a real Twingate network, so the Ploy team watches the first connections closely. Beta does not limit what the integration can do.
The first step of setup is a consent checkbox. Ticking it lets Ploy capture redacted error data when a request to Twingate fails: the error response Twingate sends back, with names, emails, tokens and other secrets removed. Ploy uses it only to fix problems with this integration. You must tick the box to continue.
What Ploy shows
Every user in your Twingate network, with their email address and name.
Each user's admin role: Admin, DevOps, Helpdesk, Support, Access reviewer, Billing or Member. A user holds exactly one.
Disabled users show as inactive, with their access removed.
Users you have invited who have not signed up yet show as pending and keep their access.
Every Twingate group and who belongs to it, including groups synced from your identity provider.
Ploy does not yet show Twingate resources, which groups can reach them, service accounts or access requests. Twingate does not report sign-in times or two-factor status per user.
What Ploy can change
Invite a user by email. They get the Member role unless the flow step names another admin role. Someone who already has that email counts as done.
Disable and re-enable a user.
Give, remove or swap a user's admin role from the network's page in Ploy, or change it in a flow. Removing the role someone holds makes them a Member; it never removes them from Twingate.
Add a person to a group, or remove them from one.
Delete a user. Removing someone who is already gone counts as done.
Groups and users synced from your identity provider may be changed back by the next sync, so for those, make the change in your identity provider.
Before you start
You need to be a Twingate admin to create an API token.
Find your network name: it is the first part of your Admin Console address. For acme.twingate.com, the network name is acme.
Create an API token in Twingate
In the Twingate Admin Console, open Settings, then API.
Generate a new token and give it a name such as Ploy.
Choose the permission. Read only lets Ploy scan users, roles and groups. Choose Read & Write if Ploy should also invite, disable, remove and re-role users and change group membership.
If you restrict the token to IP ranges, include Ploy's egress IP addresses. Leave the ranges empty to allow any address.
Copy the token. Twingate shows it once.
Connect Twingate in Ploy
In Ploy, open Integrations and choose Twingate.
Tick the beta consent box.
Enter your network name, for example acme. You can also paste the whole address.
Paste the API token.
Save. Ploy tests the connection by listing your Twingate users.
If the test fails with a message about the token, check it was copied in full and has not been disabled. If it says Twingate refused the token, check its IP ranges include Ploy's egress addresses.
Invite a user from a flow
Add the Create user in integration step and choose your Twingate connection. To give the new user an admin role, enter it in Twingate admin role, for example DevOps. Leave it empty for Member, which has no Admin Console access. Twingate emails the person an invitation, and they show as pending until they sign up.