I wouldn't recommend not doing this by code, this can be achieved using built-in configuration settings, by using a second block with proper rules. Try this:

 1. Go to `Structure > Block layout` 
 2. Select your theme
 3. Place a second tabs block where-ever you want it
 4. Limit the visibility on the block fitting your requirements
    * Most likely limit `Pages` to something like `user/*`
    * and by `Roles`, e.g. `Authenticated user`
    * (remember that administrators are authenticated users too, so you might need more specific roles to to prevent admins seeing tabs block twice)