You asked

Which canon rf body would work best with the 50mm f 1 8 stm for a beginner doing portraits?

The guide can't name a best Canon RF body for this lens. Its page lists the 50mm f/1.8 STM as a Canon RF mount lens for full frame sensors, but it doesn't say which RF bodies it fits, so this answer can't rank them. Any RF body should accept it, so the choice comes down to your budget and what else the body offers.

The first camera guide advises spending about as much on lenses as on the body. A modest body with a good lens takes better portraits than a stronger body with a cheap zoom. The portraits page calls the 50mm f/1.8 the cheapest great portrait lens and says it gives a natural, slightly tight view on full frame. Note that the portraits page's APS-C comparison is general, not Canon-specific, so check the framing on the body you pick.

The Canon RF 24-50mm kit zoom is sold with the R8 and R8 Mark II. The guide doesn't say how that body pairs with the 50mm, but it's a sensible place to start if you want a small, affordable kit. For the full lens list, see the Canon RF 50mm page and the lenses guide, which suggests starting with a standard zoom and adding a fast 50mm.

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}.