Invisible wall, but with shadow effect

Hello everyone, hope i post this in the right group. I would like to render a picture with a HDRI background, with people against a wall thats on the HDRI, is there a way to just get the shadows when i make the wall invisbile, so it it looks like my character leans against the wall in the HDRI background?
Comments
Have a read here which might help.
https://www.daz3d.com/forums/discussion/56978/shadowcatch-surface-iray#latest
and a video.
Create a primitive plane, line it up with the wall and use the shader mixer to create a shadowcaster material,
apply it to the plane.
shadowcaster tutorial
Thnak you so much, that did the trick :)