Filter criteria according to the get variable user/*
Here are the steps to achieve your requirement

Go to view and add contextual filter User: uid



Then select 'Provide default value' and select Type : 'Raw value from URL' and Path component: 2 (as URL is user/* .we select second component to get User ID)



That's it. I've tested this and working perfect.

Hope it helps.