Get User ID from a Profile Page to use in a View
In this case, /user/testuser is just an alias of /user/n where n is the user ID.  Which means the user ID is available in the unaliased URL, allowing you to do this.