User app_metadata properties missing after an update

Problem Statement:

Existing attributes in user app_metadata are deleted unexpectedly after a user profile update operation.

Solution:

When updating the attributes in the app_metadata, we need to export the app_metadata details first and then add the new attribute to the import file.

Please be noted, this issue only happens the first time we update the user app_metadata. In other words, after the first update, the subsequent updates will not exhibit this issue.