Convert Rule To Action for Azure connect

Hello,

This thread is still relevant to me Convert rules to action help. Is there a way to convert the rule to an action now?

Rule:

function (user, context, callback) {
user.email = user.email || user.upn;
callback(null, user, context);
}