Threat Management Policies break and cannot be edited or deleted if policy name contains invalid characters.
Example: Name an ATP Anti-phishing policy with comma "," characters:
Example Policy Name that works: Name01 Name02 Name03
Example Policy Name that breaks edit and delete: "Name01, Name02, Name03"
Repro Steps:
1. Login to Security and Compliance Center: (https://protection.office.com/#/)
2. Click on "Threat Management"
3. Click on "Policy"
4. Click on "ATP anti-phishing" (https://protection.office.com/#/antiphishing)
5. Click "Create"
6. Name your policy: Name01, Name02, Name03
7. Continue with Policy Wizard and click "Create this policy".
8. Once policy has been created, check box the policy "Name01, Name02, Name03"
9. When pop-up menu appears, click "Edit policy".
Error: "identity is not a valid format"
Error Details:
Request: /api/antiphishpolicy?identity=Name01%2C%20Name02%2C%20Name03,Name01%2C%20Name02%2C%20Name03
Status code: 500
Exception: System.ArgumentException
10. When pop-up menu appears, click "Delete policy".
Prompted with Pop-up: Are you sure you want to delete the selected object(s)?
Click "Yes"
Error: "The operation couldn't be performed because object 'Name01' couldn't be found on .....
Error Details:
Request: /api/antiphishpolicy?identity=Name01%2C%20Name02%2C%20Name03,Name01%2C%20Name02%2C%20Name03
Status code: 500
Exception: Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFound
Expected Results:
9. "Edit impersonation policy" popup wizard should appear to edit policy.
10. Prompted "Are you sure you want to delete the selected object(s)?" Click "Yes" Policy is removed successfully.
