Leeks can provide some of the same flavors as onions, but the flavors are lower intensity than onions.
cooking.stackexchange.com/users/1685/KatieK
With the exception of dishes with "onion" in their names, more often than not you can omit onion as an ingredient.
My advice would be to first try leaving the onion out entirely, see how the dish is.
If it is missing something, then experiment with: Onion powder
: see how much you can get away with before your audience notices.
Garlic: add more to compensate.
Shallots and other onion-like vegetation
: give it a try to see how that goes over.
It is going to require some experiment and trial & (lots of) error on your part, but you should be able to strike a nice balance in a few attempts.
cooking.stackexchange.com/users/2832/Sean Hart
In India, some Brahmin caste cooks and Jains aren't allowed to use onions or garlic in their cooking, and so they substitute Asafoetida spice instead.
cooking.stackexchange.com/users/8880/Rob Paterson
I can't stand onions due to texture issues unless very finely chopped, but I find that shallots have similar effects on the flavor of many foods.
cooking.stackexchange.com/users/3819/Dave Griffith
In addition to the other suggestions such as shallots, garlic, or green onions, another avenue to explore would be using a sweet yellow onion instead of a white onion or purple onion.
Their flavor is a bit milder and may be more palatable compared to a white onion, though if texture is the primary problem, grinding the onion up in a food processor until it is finely chopped may be a better choice.
cooking.stackexchange.com/users/6992/Jessica Brown
You may cut the stem of some vegetables in thin slice (e.g. reddish, Chinese vegetables with long rod-like stem).
They feel like onion when you chew them but taste like normal green.
cooking.stackexchange.com/users/8434/KMC
I love onions; however, someone that I cook for does not.  Absolutely hates them and can tell whenever they are in the dish.   That said, so many recipes call for onion to be added. What can I use instead that would have a similar but less intense/noticeable effect?
What can I substitute for onions?
cooking.stackexchange.com
<substitutions><onions>
cooking.stackexchange.com/questions/20717
cooking.stackexchange.com/users/4239/ist_lion
Some vegetables like leeks, garlic, shallots or green onions have similar flavours, or you could try using a sweet yellow onion rather than red or white. You could also try omiting the onion entirely, or substituting with Asafoetida spice. You can use other ingredients like leeks or shallots instead. You can also try Asafoetida spice or leave out the onions altogether.
Leeks, garlic and shallots can be used instead of onions. You can also use a sweeter onion instead or more garlic. Try leaving the onions out altogether. You can use Asafoetida spice instead.