Set up Duo
1
Add an Admin API application
In the Duo Admin Panel for your main account, go to Applications → Application Catalog, find Admin API and click + Add. You don’t need one per subaccount.
2
Grant subaccount permissions
Under Subaccount permissions, tick what your workflows need and click Save. If you fill in Networks for API Access, include Triggr’s outbound IP addresses.
3
Copy the application details
Copy the Integration key, Secret key and API hostname from Details.
Connect it in Triggr
1
Open the integration
Go to Integrations > Duo Accounts and click Configure on the Base Configuration card.

2
Enter the application details
Enter Hostname as 
https:// plus the API hostname, with no trailing / or path (for example https://api-XXXXXXXX.duosecurity.com), add the SecretKey and IntegrationKey, then click Save Configuration.
Map your clients
On the Client Mapping card, click Apply 100% Matches, then choose the subaccount in Mapped to for anyone left. Triggr saves each match as the client’sduoAccountId (the subaccount’s account ID, starting DA) and duoApiHostname variables.

The Client Mapping card, shown here for ConnectWise Manage as an example.
{{ ctx.client.duoAccountId }}. Without it, Duo answers for your main account.
Troubleshooting
Client mapping shows no subaccounts
Client mapping shows no subaccounts
Check the application has Grant accounts - Read and its keys come from your main account, not a subaccount. Then click Refresh on Client Mapping.
401 errors
401 errors
40102 means IntegrationKey is wrong or from a different account to Hostname. 40103 means SecretKey is wrong (perhaps reset in Duo) or Hostname has a trailing
/ or path.403 errors
403 errors
Tick the subaccount permission the action needs in the Duo Admin Panel and click Save.
An action returns data for the wrong account
An action returns data for the wrong account
Set the action’s Duo Account Id or Account Id to
{{ ctx.client.duoAccountId }} and check the client is mapped.Requests are blocked
Requests are blocked
Add Triggr’s outbound IP addresses to the application’s Networks for API Access.

