Find the following steps to get the user from database and pass the user as parameter for filtering the data from database.