I am using the GraphServiceClient with .Net Core 2. I am trying to add AdditionalData to my Users using the following code
var updated = new User()
{
AdditionalData = new Dictionary<string, object>
{
{"OtherEmail", otherEmail},
{"OtherRole", otherRole}
},
};
await _graphClient.Users[user.Id].Request().UpdateAsync(updated);
When this executes I get the following error
Microsoft.Graph.ServiceException : Code: Request_BadRequest Message: One or more property values specified are invalid.
Does anyone know what I am doing wrong ?
Also if anyone can please tell me how I can just save some of my own metadata against a user it would be really appreciated. I have also tried using the extensions, but I am having this problem.