Forum Discussion

bellinghamlady's avatar
bellinghamlady
Copper Contributor
Mar 17, 2021
Solved

Cannot remove tags

I have a few tags appearing Microsoft Defender Security Center.  I cannot remove them either in the UI or using the Add/Remove tag API.  I don't see them in the registry key either.  These tags appear in grey versus the usual blue color.  I cannot find any information on this problem.  Has anyone ever seen this and know a fix?  I have added a screen shot showing the problem.

  • I'd also suspect that someone has taken the sample Jamf/Intune property lists on the following page a bit too literally.
    https://docs.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-atp/mac-preferences
    Those do indeed set a tag named "ExampleTag".

6 Replies

  • rockypabillore's avatar
    rockypabillore
    Copper Contributor
    Hello,

    On my Defender Portal, I am able to "manage tags" do you have the right permissions? how are you authenticating to Defender API?
    Can you find this "manage tags" on a device? and see if you can remove it manually?

    https://imgur.com/rxzhg59
    • bellinghamlady's avatar
      bellinghamlady
      Copper Contributor
      Yes, I can see and add/remove most tags. I have just found two tags that have that grey color and I cannot seem to remove. I will pursue the Jamf and mdatp suggestions.
      • bellinghamlady's avatar
        bellinghamlady
        Copper Contributor
        The issue was the "ExampleTag" was deployed via Jamf. Thank you akakak!
  • bellinghamlady's avatar
    bellinghamlady
    Copper Contributor
    I also get this message from the API:

    "error":{"code":"InvalidInput","message":"The Tag ExampleTag is a device tag and cannot be removed from the API","target":"dxxxx....
    • akakak's avatar
      akakak
      Copper Contributor

      From the machine name I'd guess this is a MacBook Pro.

       

      In that case, the tag was probably set using the mdatp command, and would work similarly to the Registry based tags on Windows. You'll probably need to run the mdatp command on the machine to remove it.

      • akakak's avatar
        akakak
        Copper Contributor
        I'd also suspect that someone has taken the sample Jamf/Intune property lists on the following page a bit too literally.
        https://docs.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-atp/mac-preferences
        Those do indeed set a tag named "ExampleTag".

Resources