How To: Override User Permissions on a Link Field

You might encounter situations where the “Ignore User Permissions” field option checkbox doesn’t work as expected for a link field.

A workaround is to add ignore_user_permissions as a set_query parameter in a client script/js.

    frm.set_query('employee', function() {
		return {
			filters: {},
			ignore_user_permissions: true
		};
	});

in my case, i can now select any employee even after applying this user permission which was previously restricting me to one value.