Forum Discussion
bellinghamlady
Mar 17, 2021Copper Contributor
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".
- bellinghamladyCopper ContributorI 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....- akakakCopper 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.
- akakakCopper ContributorI'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".
- rockypabilloreBrass ContributorHello,
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- bellinghamladyCopper ContributorYes, 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.
- bellinghamladyCopper ContributorThe issue was the "ExampleTag" was deployed via Jamf. Thank you akakak!