I don’t know shallots, but I know green onions by their somewhat more formal name, “scallions”.
And as far as scallions go, I use every part but the very bottom containing the root fibers, and all of the stalk / leaves except any that are discolored or in any way decayed.
A photo of shallots and scallions