Unfortunately, this is very difficult to do, and is rarely accomplished correctly. Many consumers install a grab bar with only one or two screws passing into the wall studs, creating an installation that's not solid or secure.
Traditional grab bars require that three screws be installed directly into wall studs or wood blocking for a secure and safe installation.