Hello @Liben, Michael
Thank you for posting your query on Microsoft Q&A.
As I understand you have query on API-driven provisioning to Microsoft Entra ID not filling Email Attribute.
To populate a personal email address, please ensure that it is entered in the "Other Emails" attribute of the user profile.
Please refer to the screenshot below for guidance.
How this can be achieved is via configuring attribute mappings like below:
The "mail" attribute cannot be modified via the inbound provisioning API or any of our inbound HR provisioning integrations.
This attribute is tied to the M365 license. When an M365 license is assigned to a user through a dynamic group or lifecycle workflow, a mailbox is automatically provisioned for the user, and the assigned UPN value is set in the "mail" attribute.
If you are looking to configure a personal email address in the user profile, please use the "otherMails" attribute instead.
For further clarification on how the "mail" attribute is calculated and why a license is required, please refer to the article linked below.
I hope this clarifies things. Please contact us if you have any additional questions.
If this answers your query, do click Accept Answer
and Yes
for "Was this answer helpful". And, if you have any further query do let us know.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Sakshi Devkante