Hi @Abhay Chandramouli , I don't have any samples for this currently available bit I can help walk you through it. You would need to use the Graph API for this. This thread details how you can set this up. An example of a call you can make to update a user's email follows:
PATCH https://graph.microsoft.com/v1.0/users/{id-or-upn}
{
"identities": [
{
"signInType": "emailAddress",
"issuer": "{tenant-name}",
"issuerAssignedId": "{user-signIn-email}"
}
]
}
as detailed here. Please let me know what questions you have about this and I can help you further.
Thank you,
James