Link Microsoft Purview
Step by step: apply your Microsoft Purview DLP policies to text Deliverd screens, with where to find each value in Entra, the PowerShell for the DLP policy, and what to do when it fails.
Linking Purview makes Deliverd ask your Purview DLP policies about every text it screens for an agent, the Screener page, or a no-code tool, before it answers. A Purview block refuses the text; a warning puts it to a person. It takes about 15 minutes, and a global administrator of your Microsoft tenant for two of the steps. The form is at Agents → Data screening, under Microsoft Purview.
What you need
- A global administrator, for admin consent. A Compliance administrator can create the DLP policy.
- Purview DLP licensing for the user in step 2: Microsoft 365 E5, E5 Compliance, or the Purview trial (Purview portal → Trials). Business Standard, Business Premium and E3 do not apply DLP to an app like Deliverd's. Without the licence the link saves and the calls succeed, but Purview never blocks anything.
- Purview pay-as-you-go billing, which Microsoft requires before it applies DLP to an app it doesn't make. In the Purview portal, open Settings → Account → Upgrade account and link an Azure subscription in the same tenant, on which you are Owner or Contributor. Microsoft bills the use to that subscription. While the account type says Free, the calls succeed but Purview never blocks anything.
- PowerShell 7 and the ExchangeOnlineManagement module, for step 5.
1. Your tenant ID
In the Entra admin center, open Overview. Copy Tenant ID, a value like 00000000-0000-0000-0000-000000000000. This tells Deliverd which Microsoft tenant's policies to ask.
2. The user Purview checks the text as
Purview applies DLP policies to a person, never to an app alone, so Deliverd checks every text as one user in your tenant. Use a service account (for example ai-screening@yourcompany.com), or whoever owns your automations. That user needs the licence above, and your DLP policy must include them.
In the Entra admin center: Users → All users, open that user, and on Overview copy Object ID. It is not the user's email, the tenant ID, or any app's ID.
3. Link the tenant in Deliverd
At Agents → Data screening, under Microsoft Purview, enter the tenant ID and the user's object ID, choose what happens when Purview cannot be reached (ask a person is the default), and press Link Purview.
4. Grant admin consent
Once linked, a grant admin consent link appears in step 4 on the page. A global administrator opens it and accepts. It lets Deliverd's app, Deliverd Data Screening, call Microsoft Graph in your tenant with these application permissions:
| Permission | What it is for |
|---|---|
| Content.Process.All | Ask Purview about a text before Deliverd answers. Every plan. |
| ProtectionScopes.Compute.All | Ask Purview which DLP policies cover Deliverd's app for that user, about once an hour, so Purview evaluates the text against them. Every plan. |
| SensitivityLabel.Read | Load your sensitivity labels for the policy engine. Screener Pro, on Enterprise. |
| ContentActivity.Write | Record each check in Purview Audit. Screener Pro, on Enterprise. |
If you granted consent before Deliverd added a permission, grant it again: the same link asks only for what is new.
5. A DLP policy for Deliverd's app
Purview applies a DLP policy to an Entra app only when the policy names the app, and the Purview portal cannot yet create one like that. Two commands in Security & Compliance PowerShell do it. Replace APP_ID with Deliverd's application (client) ID, shown in step 5 on the Data screening page, and admin@yourcompany.com with your own sign-in.
Install-Module ExchangeOnlineManagement -Scope CurrentUser
Connect-IPPSSession -UserPrincipalName admin@yourcompany.com
$app = "APP_ID"
$locations = ConvertTo-Json -Compress -Depth 5 @(@{
Workload = "Applications"; Location = $app; LocationDisplayName = "Deliverd Data Screening"
LocationSource = "Entra"; LocationType = "Individual"
Inclusions = @(@{ Type = "Tenant"; Identity = "All" })
})
New-DlpCompliancePolicy -Name "Deliverd data screening" -Mode Enable `
-Locations $locations -EnforcementPlanes @("Application")
New-DlpComplianceRule -Name "Deliverd - block card and bank numbers" -Policy "Deliverd data screening" `
-ContentContainsSensitiveInformation @(@{ Name = "Credit Card Number" }, @{ Name = "International Banking Account Number (IBAN)" }) `
-RestrictAccess @(@{ setting = "UploadText"; value = "Block" })Change the sensitive information types to the ones your organisation cares about, or use -Mode TestWithNotifications to try the policy without blocking. A new policy can take up to an hour to apply.
6. Test it
After an hour, paste a test card number such as 4111 1111 1111 1111 into Try a text, or into the Screener on Enterprise. Try a text checks in your browser and never asks Purview, so use the API, the MCP screen_data tool or the Screener. A blocked check shows Purview's answer in its reasons and under Recent checks.
When it does not work
| What you see | What to do |
|---|---|
| Purview could not be reached, every time | Admin consent is missing or out of date. Grant it again from step 4 on the page. |
| Microsoft refused, naming SensitivityLabel.Read | Grant admin consent again; the label permission was added after you first consented. |
| Calls succeed but nothing is ever blocked | Purview's account type is still Free (turn on pay-as-you-go, under What you need), the user in step 2 has no E5 or E5 Compliance licence, the policy was made in the Purview portal instead of PowerShell, the policy does not include them, or the policy is under an hour old. |
| Upgrade account lists no subscriptions | The subscription is in another tenant, or you have no role on it. Use a subscription in the same tenant, where you are Owner or Contributor. |
| Connect-IPPSSession fails to sign in | Sign in as a Compliance or Global administrator, and update the ExchangeOnlineManagement module. |
| Object ID rejected by the form | It must be the user's Object ID, a GUID, from Users → the user → Overview. |
Try it on your own agent.
Free to start, no card. Sign up with Google, Microsoft or GitHub, and the first page after hands you an API key.