How to show a list of items created by a user on their profile page

Hi everyone! I am wondering if there is a way for a user to click into someone else’s profile and see a list of only items they have made. I know I can restrict a list of items to only show what the logged-in user has created but I can’t figure out how to do it for other users.

An example of this would be when you go to Instagram, you click on someone’s name, and then you can see all the images they have posted.

Thank you!