Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Defender for Endpoint on macOS: "No license found"

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

A Mac is being set up with Microsoft Defender for Endpoint. The Defender shield in the menu bar shows an x, and when you select it the product reports "No license found". This is a Defender licence and onboarding message, not a macOS or Apple message, and it comes from the Microsoft Defender app on the Mac.

What follows covers the four causes Microsoft names, the read-only checks that tell them apart, and Microsoft's fix for each. A second screen, "Sign in with your Microsoft account to get started", has a different cause and is covered at the end. Nothing before the Fix section changes anything.

What the error means

Microsoft's page "Troubleshoot license issues for Microsoft Defender for Endpoint on macOS" describes the symptom this way: when Microsoft Defender for Endpoint on macOS is being deployed, an error message with an x over the Microsoft Defender for Endpoint shield appears, and you select the x symbol. Selecting it shows options, and when you select Action needed you get the error message. The page shows these screens as pictures, so the full wording of the message beyond its title, "No license found", is not given as text there.

Microsoft says you can reach the same message another way: using the terminal to enter mdatp health. The page's wording of that sentence is "If you're using the terminal to enter mdatp health without the double quotes, the message as shown in the following screenshot is displayed". The output is again a screenshot, so what mdatp health prints is not quoted here.

In plain terms, the product is installed but it has no licence information: the onboarding package, which carries the licence settings, has not reached the device, or the user or device is not licensed.

Likely causes

Microsoft lists four, and does not rank them:

Cause What Microsoft says Where to look
The configuration script was not run You "might not have run the configuration script that contains the license settings" after deploying or installing the package Onboarding package deployment
The agent is out of date "the Microsoft Defender for Endpoint on macOS agent isn't up to date" The installed version of the agent
The device was offboarded and onboarded again A file left by the offboarding script prevents onboarding again /Library/Application Support/Microsoft/Defender/
No licence assigned to the user "a license isn't assigned to a user" The Microsoft 365 admin center

For the third row, Microsoft says that when the offboarding script is executed on the macOS it saves a file in /Library/Application Support/Microsoft/Defender/ named com.microsoft.wdav.atp.offboarding.plist, and "If the file exists, it prevents the macOS from being onboarded again."

For deployments with Microsoft Intune, Microsoft's deployment page gives the same issue its own troubleshooting entry: "Defender for Endpoint reports that no license was found." The cause there is "Device onboarding isn't complete", and the resolution is to download the onboarding package as described in its step 13 and deploy it as described in step 14.

Prove the cause before changing anything

Everything in this section reads only.

  1. Find the deployment method. Microsoft's page lists a table of license deployment instructions (onboarding instructions) for each management tool: Intune, JamF, other MDM, and manual installation. Which one applies decides where the onboarding package should have come from.

  2. Check that the onboarding package reached the Mac. For Intune, Microsoft's deployment page tells you to open System Settings > General > Device Management on the Mac and verify that the configuration profiles are present and installed, including WindowsDefenderATPOnboarding.xml, which it describes as "the Defender for Endpoint onboarding package". Microsoft also says to use the policy report in the Intune admin center: select a policy on the Devices | Configuration page, then Device and user check-in status > View report. For the device itself, the All devices page in the Intune admin center should list it after enrolment.

  3. Check for the licence information file. Microsoft's note on its license page says: "If the onboarding package runs correctly, the licensing information is located in /Library/Application Support/Microsoft/Defender/com.microsoft.wdav.atp.plist." The page gives no command for the check. As general advice, not a statement on Microsoft's page, look for that file in Finder or with your management tool, and for the offboarding file named in the previous section; read it, do not edit it.

  4. Ask the product directly, read-only. Microsoft's resources page for Defender for Endpoint on macOS lists two commands under Health: mdatp health for the product's health, and mdatp health --field [attribute] for a specific attribute, "such as healthy, licensed, or engine_version". So the licensed attribute can be read with:

mdatp health --field licensed

What the command prints is not shown as text on Microsoft's pages, so compare it against what a licensed Mac of yours prints rather than a value taken from here.

  1. Check the licence assignment. In the Microsoft Defender portal (security.microsoft.com), Microsoft's route is Settings, then Endpoints, then Licenses. A person who can see licence assignments in the Microsoft 365 admin center can confirm whether the affected user holds Microsoft Defender for Endpoint.

Example (illustrative): at contoso.com.au a new MacBook is enrolled in Intune and the Defender app is installed, but the shield shows an x. System Settings > General > Device Management lists the management profile and several configuration profiles, but not WindowsDefenderATPOnboarding.xml. That matches the Intune entry: device onboarding isn't complete, and the onboarding package from step 14 of the deployment page is missing.

Fix

Choose the section that matches the proof. Each of these changes how a security product is licensed or deployed, so each is described from Microsoft's page and none is scripted here.

If you didn't run the configuration script

This is Microsoft's description, not a step to run. Microsoft says the error can be caused by the configuration script not being run, since the script contains the licence settings when the package is installed and deployed, and that you should follow the instructions for your management tool to onboard the package, which registers the licence. Its table points to its own page for each tool: Intune (Check Device and Configuration status), JamF (Get the Microsoft Defender for Endpoint onboarding package), other MDM (License settings), and manual installation (Download installation and onboarding packages, and the onboarding package). For Intune, the page's troubleshooting entry says to download the onboarding package from the Microsoft Defender portal as in step 13, and deploy it as in step 14. Step 13 selects macOS as the operating system, confirms Streamlined connectivity, selects Mobile Device Management / Microsoft Intune as the deployment method, and downloads the package. Microsoft's deployment page also says to deploy the required configuration profiles before you deploy the Defender for Endpoint app and onboarding package.

If Microsoft Defender for Endpoint on macOS isn't up to date

Microsoft says that where the agent is not up to date, "you need to update the agent." The licence page gives no command or setting for the update; Microsoft's Intune deployment page covers a Microsoft AutoUpdate profile. Confirm the update path your management tool uses before acting.

If the device was offboarded

Risk: the step Microsoft describes next removes a file that blocks onboarding, then onboards the device again. The page gives no command for removing the file, no save step for it, and no way to undo either part. Onboarding connects the device to the tenant the package belongs to, so use a package from your own organisation, and leave the file in place until you have confirmed it is the one named below.

Microsoft's text, which is printed in a garbled form on the page, says the file com.microsoft.wdav.atp.offboarding.plist in /Library/Application Support/Microsoft/Defender/ prevents the Mac being onboarded again, and that the file should be deleted and the onboarding script run again. This is a description of the vendor's page, not a command to run here.

If a license isn't assigned to a user

Risk: the route Microsoft describes can involve buying a licence. The page's own wording is "Check the checkbox of the license you want to purchase from Microsoft", which has a cost. Licence terms and prices are Microsoft's to state, so check Microsoft's current licensing pages before acting. Microsoft's page gives no way to undo a purchase.

Microsoft's route, described and not a step to run: in the Microsoft Defender portal select Settings, then Endpoints, then Licenses, then View and purchase licenses in the Microsoft 365 admin center. Select the licence, choose the Assign licenses link, then + Assign licenses, and enter the name or email address of the person. Microsoft's page then says to check the boxes for Microsoft 365 Advanced Auditing, Microsoft Defender XDR and Microsoft Defender for Endpoint, and select Save.

The screen "Sign in with your Microsoft account to get started"

A different screen can look like a licence fault. The message reads "Sign in with your Microsoft account to get started. Create new account or Switch to enterprise app." Microsoft's cause is that you "downloaded and installed Microsoft Defender for individuals on macOS on top of previously installed Microsoft Defender for Endpoint." Its solution is to select Switch to enterprise app. On Macs enrolled in a management tool, Microsoft also describes suppressing the switch screen by including userInterface / consumerExperience in the Defender settings, with the value disabled; its example is a dict with the key consumerExperience and the string disabled. That is a settings change in your management tool and belongs in its normal change process.

Confirm the fix

  • Microsoft says that once either solution has resolved the licensing issue and you run mdatp health, "you should see the following results". The page shows those results as a picture, so compare against a Mac that you know is licensed.
  • The shield no longer shows the x, and Action needed no longer lists a licence message.
  • The device appears in the Microsoft Defender portal after onboarding. Microsoft's deployment page includes antimalware and EDR detection tests to verify that the device is onboarded and reporting correctly.

What to watch afterwards

  • New Macs deployed from a management tool. Microsoft's order of deployment is configuration profiles first, then the app and onboarding package.
  • Offboarded devices. A device returned and reissued can carry the offboarding file that blocks onboarding.
  • Licence assignment for new staff.
  • Updates to the agent, since an out-of-date agent is one of the four named causes.

Risks and limits

These steps have not been run or lab-tested.

Microsoft's page shows the messages and results as screenshots, so only the title "No license found" and the sign-in text are quoted as text. Its sentence about the offboarding file is garbled in print, and the page gives no command for removing it. The page gives no macOS version range. The commands mdatp health and mdatp health --field [attribute] come from Microsoft's resources page, which does not state what they print for an unlicensed Mac.

Sources