Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to normalize email domains before user resolution in inbound email

Anjan 2025
Tera Contributor

Hi,
I have a scenario where few employees has two mail ID,

*@company.com         *@XYZ.company.com

For few only one ID is stored in sys_user table, eg :  ABC@company.com is present in sys_user table and ABC@XYZ.company.com doesn't exist in sys_user table. So when mail sent from ABC@XYZ.company.com servicenow doesn't recognize them and treat them as Guest.
 I want both the domain to be considered without doing any changes in sys_user table.  Ideally, when an email comes from @XYZ.company.co, it should be normalized to @company.com before inbound email action run since the “User ID” is already being populated in the Email Log before my actions can handle it.
I couldn't find any Script Include which is populating "User ID" field in sys_email table. Please guide me on this.

Thanks in advance

0 REPLIES 0