We are having hundreds of agents which contain e.g. outdated email addresses and/or inactive AD users (due to different reasons). Now want to fully remove the recipients from the list of recipients. Within the xml I noticed two tags, specificRecipients and emailRecipients. Example:
unsafe:saw:specificRecipients
<saw:user name="good.employee" guid="good.employee"/>
<saw:user name="good.employeeleft" guid="good.employeeleft"/> ← REMOVE
<saw:user name="anothergood.employee" guid="anothergood.employee"/>
</saw:specificRecipients>
unsafe:saw:emailRecipients
<saw:emailRecipient address="mail@somewhere.com" type="HTML"/>
<saw:emailRecipient address="outdatedmail@somewhere.com" type="HTML"/> ← REMOVE
<saw:emailRecipient address="mail@somewhere.com" type="HTML"/>
</saw:emailRecipients>
So, in this example we want to remove:
- good.employeeleft and
- outdatedmail@somewhere.com
via command line, I guess there is no other option. We need to execute this for hundreds of agents. I used runcat replace but this is just replacement (error logs are still messing up with errors). Do you know a better way to remove users/email-addresses from the agent xml?