The name of the product that allows you to do this is a tub transfer bench.
While the name of this product may not be commonly known, there are a lot of great options out there.
There are some which are more basic and allow the user to simply get in and out of the bath tub, while others may have extra features like swivel and adjustable arms and legs.