I am trying to add an alternate email with Microsoft Graph API from a.Net Core app.
The user
class in Microsoft Graph does not provide a property for adding an additional mail id.
I am trying to add an alternate email with Microsoft Graph API from a.Net Core app.
The user
class in Microsoft Graph does not provide a property for adding an additional mail id.
You can using Azure AD Graph to add the mail id to the otherMails
. Here is sample to update the this property:
PATCH: https://graph.windows.net/{tenant}/me?api-version=1.6
authorization: bearer {access_token}
{
"otherMails":["[email protected]"]
}
Refer the links below for the user entity and update user REST: