trying this works but the doc is not clear on this, can we date the docs up to date on how to use updateAppMetadata please?
var params = { id: userRecord.user_id };
var metadata = {
accountStatus: "ACTIVE",
};
management.updateAppMetadata(params, metadata, function (err, user) {
if (err) {
console.error(err);
}
if (user) {
console.log(JSON.stringify(user));
}
});