How to Map 'email_verified' Attribute from AD/LDAP Connector

Problem statement

Is it possible to map an AD/LDAP profile attribute to the Auth0 ‘email_verified_ user profile attribute’?

Solution

This can be configured in the LDAP Connector itself. There is a line in the profileMapper.js file to allow mapping the ‘email_verified’ attribute:

// if your LDAP service provides verified email addresses, uncomment this: 
// profile['email_verified'] = true;

Source: ad-ldap-connector/lib/profileMapper.js at master · auth0/ad-ldap-connector · GitHub

This change would require re-installing the connector on the target server once this code change has been made.