I’m trying to update the user_metadata using the .NET ManagementApi client. I see the UserMetadata property, and can get the values. However, I’m not seeing how to set the values. When I try to update it directly, like below, I get the following error: RuntimeBinderException: Cannot perform runtime binding on a null reference
Anyone have any examples of how they do this?
-
Which SDK this is regarding: e.g. auth0-node
.NET Package, Auth0.ManagementApi -
SDK Version: e.g. 2.29.0
7.12.0 -
Platform Version: e.g. Node 12.19.0
.NET 6 -
Code Snippets/Error Messages/Supporting Details/Screenshots:
var userUpdateRequest = new UserUpdateRequest()
{
FirstName = firstName,
LastName = lastName
};
userUpdateRequest.UserMetadata.PhoneNumber = phoneNumber;
return await _auth0ManagementClient.Users.UpdateAsync(userId, userUpdateRequest);
Is this a feature request or bug report? If so, please create an issue directly in the corresponding GitHub repo. The Community SDK category is for general discussion and support.
Nope