Torq
Connect Torq to Ploy to see everyone in your Torq workspace and the role each person holds, and to invite and remove users from Ploy.
Beta. The Torq integration is in beta. It was built from Torq's API documentation and has not yet been run against a live Torq workspace. Ploy watches every connection closely while it is in beta, so tell us if anything looks wrong.
Before you start
Each Ploy connection reads one Torq workspace. If you have several workspaces, connect each one separately.
You need permission to create API keys in the Torq workspace you want to connect.
A Torq API key acts with the role you give it when you create it. Give it a role that can list users, and that can invite and remove users if you want Ploy to do that.
Know which region your workspace is in. Torq runs separate United States and European Union deployments, and a key only works in its own region.
Step 1: Agree to the beta terms
The first page of the setup asks you to tick a box agreeing to share redacted error data. When Torq answers one of Ploy's requests with an error, Ploy keeps a copy of that error with names, email addresses, keys and other personal details removed, so we can fix problems quickly. Nothing is kept from successful requests.
Step 2: Create an API key in Torq
Sign in to Torq and open the workspace you want Ploy to read.
Open the account menu, then API Keys, and create a new key. Give it a recognisable name such as Ploy.
Choose the role the key acts with (see Before you start).
Copy the client ID and the client secret. Torq shows the secret only once.
Step 3: Connect Torq in Ploy
In Ploy, open Integrations, find Torq and click Connect.
Tick the beta consent box.
Under Select your Torq region, choose United States or European Union.
Paste the client ID into Torq API key client ID and the client secret into Torq API key client secret.
Click Next.
Optional: choose the Role for people Ploy invites. Ploy gives this role to people it invites when a flow does not name one. Leave it empty to use Torq's default role, Viewer.
Save. Ploy tests the connection by reading your workspace's users.
What Ploy reads
Every user in the workspace, with their email address.
The role each person holds. Every role in the workspace is listed, including custom roles and roles nobody holds yet.
Whether each person has accepted their invitation. People who have not are still shown with their access, because their seat is already allocated.
When each person last signed in to Torq.
When someone is removed from the workspace, Ploy picks this up on the next scan and closes their access.
What Ploy can change
Invite a person by email. The role is the one named in the flow, or the one chosen in setup, or Torq's default role. Torq emails them the invitation. Someone already in the workspace is left as they are.
Remove a user from the workspace. Torq deletes the user permanently.
Limitations
Torq's API cannot change the role of someone who is already in the workspace, so Ploy shows roles but does not change them. Change roles in Torq.
Torq has no suspended state for users, so offboarding removes the user.
If your workspace only allows SSO users, Torq does not accept invitations, so inviting from Ploy will fail. Provision those people through your identity provider instead.
Ploy does not read Torq API keys, SSO claim mappings, audit logs or workflows.