added functionality to return user profiles from store when passing an array of user ids