You asked

Would a 50mm lens on the z8 be enough for a beginner shooting portraits indoors?

Yes, a 50mm can be enough for indoor portraits, and the Z8 suits it. The Z8 has a full frame sensor, so a 50mm frames exactly as marked, with no crop (Focal lengths on it).

For a first portrait lens, the guide recommends a fast standard prime, a 50mm f/1.8 on full frame, for low light, people and food (Your first lenses). The wide aperture gives you a brighter image indoors and a softer background. This page doesn't name specific Nikon Z 50mm lenses or give prices, so the guide can't say which one to buy or what it costs. Check the Z8 page and the Nikon Z mount page for the lenses that fit.

The Z8 is a full frame camera, and the guide says full frame earns its cost for low light and very shallow depth of field (Is full frame worth it?). The same page says a good APS-C camera with good lenses is enough for most hobby photography, and that lenses and light matter more than the last step of sensor performance. For indoor portraits, the lens's aperture matters more than the camera's stabilisation, which steadies your hand but not a moving subject.

If you want more reach for portraits later, the guide suggests an 85mm (portraits).

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.