How can I detect distance of the user as a human via depth imaging.

I need to detect distance of user from camera using depth data. I am able to detect user using 2d image but how can i detect user using only depth data.