We can create a csv file and in that file we give usernames,passwords as column names and add some rows of data to those columns
We use csv data set config to read data from that csv file
Then in any of our requests in a thread group instead of hardcoding the username,password etc we read values from config element , like ${username} ,${password}
Where username,password etc are names we gave to our variables in data config.