ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Email Data Feed - 401 Unauthorized Error


Article ID: 172917


Updated On:


Email Email Threat Detection and Response


Unable to generate metadata produced by the Email Data Feed service. Sample Python script gets executed and generates a .json log file containg error "401 Unauthorized". 

{"timestamp":1512541276114,"status":401,"error":"Unauthorized","message":"Unable to authenticate","path":"/all"}


Unauthorized - authentication error. This error code is returned if no login credentials are provided or login credentials are invalid. 


Email Threat Detection and Response


Ensure that your Email portal administrator has created at least one new user account in the portal for authentication to the Email Data Feed service. The user
account must have View Statistics permissions for the Advanced Threat Protection service.

Enter valid Username and Password into NdfConfig.json configuation file. Then run the script again to generate log files.