How to get user ID of profile that you are currently viewing

Hi Matthew
Did you succeed in getting the ID of the user’s profile being viewed. I need to do the same to implement a filter.
Many thanks