How to change a query_reports field property according to condition

ex:
{
fieldname: “User”,
label: __(“User”),
fieldtype: “Link”,
options: “User”,

}