Myownprofile macro is not working in confluence cloud

Need same functionality macro in confluence cloud . This template of myownprofile macro from server confluence.

@param attibute:title=Attibute|type=enum|enumValues=fullName,email 2 3#if ($paramattibute == “fullName”) 4#set( $value= “$action.remoteUser.fullName”) 5#end 6#if ($paramattibute == “email”) 7#set( $value= “$action.remoteUser.email”) 8#end 9$value.

Need the same functionality in cloud .