Skip to main content

DrataDrata

The Drata integration sends XFA device information to Drata for compliance monitoring and evidence. Use it to keep Drata updated with device posture collected by XFA, while enforcement decisions still happen through XFA policies and sign-in flows. Use it to connect the tool and confirm the data sync is working. Drata can also be a training source (beta): XFA warns or blocks people at sign-in who haven't finished their security training or accepted your compliance policies, see User training.

Overview

The XFA-Drata integration enables automated device information sharing for compliance monitoring. This integration automatically collects and uploads device data to your Drata dashboard.

Prerequisites

  • Active XFA account
  • Drata account with API access
  • Enrolled devices in XFA

Setup Guide

  1. In the XFA dashboard, open Integrations and select Drata.
  2. In Drata, open Connections, select MDM, open Available Connections, search for XFA and click + Connect.
  3. Under Setup your Public API Key, select Create an API key.
  4. Give the key these permissions and leave every other permission on No access:
    • List Personnel (Personnel & Users): XFA matches devices to the people in Drata.
    • List Connections (Connections): read-only. XFA uses it once to find the XFA connection, so you don't have to copy its ID.
    • Create Device (Devices): XFA uploads devices to the XFA connection.
  5. Click Create, copy the API key and paste it into XFA.
  6. Select the region your Drata account is in: EU if the address of your Drata app contains /EU/, otherwise US.
  7. Click Connect.

XFA then sends device information to Drata automatically.

What Data is Shared

The integration shares the following device information with Drata:

  • Device name and identifier
  • Operating system version
  • Security status
  • Last check-in time
  • Compliance status
  • Device ownership information

Troubleshooting

When the connection fails, XFA shows why, with Drata's own message:

  • The API key is missing a permission: Drata names it (for example connections-get is List Connections). Add it to the key in Drata and connect again.
  • The API key was rejected: copy the key again, and check the region.
  • There is no XFA connection in Drata yet: do step 2 above, then connect again.

For additional support, please contact our support team.

User training

Drata can be a training source for User training: XFA warns or blocks people at sign-in who haven't finished their security training or accepted your compliance policies in Drata. Drata as a training source is in beta, and not every organization sees it yet. User training comes with the Max and Enterprise plans.

User training uses its own Drata API key, not the export key above. You can use it without the export.

What XFA reads from Drata

XFA finds each person in Drata by the email they sign in with. It reads only:

  • Whether their security training passes in Drata
  • Whether their policy acceptance passes in Drata
  • The due date of a check that fails
  • Whether they still work for you in Drata

It never reads other personnel details, and it changes nothing in Drata.

Connect Drata as a training source

  1. In the XFA dashboard, open User training. Under Training sources, click Add source and choose Drata.
  2. In Drata, open Settings → API Keys and create a key with Custom access. Give it only Personnel & Users: Get Personnel Details.
  3. Copy the key. Drata shows it only once.
  4. In the dialog, choose the region your Drata account is in (US, EU or APAC), paste the key under API key and click Connect.

XFA checks the key with Drata right away:

  • Drata accepts it: the connection is saved and shows Connected.
  • Drata refuses it: nothing is saved. Check that you copied all of it and picked your account's region, or make a new key. Drata also refuses a key that expired, or when Drata's API terms are not accepted in Drata.
  • The key lacks Get Personnel Details: nothing is saved. Make a new key with that permission.
  • Drata doesn't answer in time: the connection is saved and shows Couldn't reach Drata yet. XFA tries again at the next sign-in that uses the check.

XFA stores the key encrypted and never shows it again. A key works only in its own region: to change the region, make a new key and paste it with the new region. Drata stops a key when it expires, so make a new one before then and click Replace the API key on the connection.

To remove the connection, open it and click Remove. While a policy still uses it, XFA refuses: click See policies and remove it from those policies first.

Next, turn on the checks in a policy and make sure Drata is ticked under Training source. The User training guide has what each connection status means and what people see at sign-in. On their card, Open Drata opens Drata, where they open My Drata from their profile menu.

Drata-specific notes

  • Passed or excluded: a check that passes in Drata, or that excludes the person, counts as done.
  • Failed: a failed check with a due date still ahead shows as due soon. A failed check past its due date, or without one, is overdue.
  • Person not found, or no longer working for you in Drata: At sign-in they see nothing about training and are never blocked by it; in Sign-in Activity the badge reads Training not checked or Compliance policies not checked. The same goes for a check Drata hasn't assessed for them. XFA remembers a done or "not found" answer for up to 10 minutes, so for a person just added to Drata the check can take up to 10 minutes to start.
  • Different email in Drata: if Drata has another email for the person than the one they sign in with, XFA doesn't find them.